]> git.pld-linux.org Git - packages/openssh.git/blob - openssh.spec
- adapterized.
[packages/openssh.git] / openssh.spec
1 Summary:        OpenSSH free Secure Shell (SSH) implementation
2 Summary(pl):    Publicznie dostêpna implementacja bezpiecznego shella (SSH)
3 Name:           openssh
4 Version:        2.2.0p1
5 Release:        2
6 License:        BSD
7 Group:          Applications/Networking
8 Group(pl):      Aplikacje/Sieciowe
9 Group(de):      Applikationen/Netzwerkwesen
10 Source0:        ftp://ftp.ca.openbsd.org/pub/OpenBSD/OpenSSH/portable/%{name}-%{version}.tar.gz
11 Source1:        %{name}d.conf
12 Source2:        %{name}.conf
13 Source3:        %{name}d.init
14 Source4:        %{name}d.pamd
15 Source5:        %{name}.sysconfig
16 Source6:        passwd.pamd
17 Patch0:         %{name}-PAM_NEW_AUTHTOK.patch
18 Patch1:         %{name}-libwrap.patch
19 Patch2:         %{name}-LIBS.patch
20 Patch3:         %{name}-no_libnsl.patch
21 URL:            http://www.openssh.com/
22 BuildRequires:  autoconf
23 BuildRequires:  openssl-devel >= 0.9.5a
24 BuildRequires:  rpm >= 3.0.4
25 BuildRequires:  zlib-devel
26 BuildRequires:  pam-devel
27 BuildRequires:  XFree86-devel
28 BuildRequires:  gnome-libs-devel
29 BuildRequires:  gtk+-devel
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Prereq:         openssl >= 0.9.5a
32 Obsoletes:      ssh < %{version}, ssh > %{version}
33
34 %define         _sysconfdir     /etc/ssh
35
36 %description
37 Ssh (Secure Shell) a program for logging into a remote machine and for
38 executing commands in a remote machine. It is intended to replace
39 rlogin and rsh, and provide secure encrypted communications between
40 two untrusted hosts over an insecure network. X11 connections and
41 arbitrary TCP/IP ports can also be forwarded over the secure channel.
42
43 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
44 it up to date in terms of security and features, as well as removing
45 all patented algorithms to seperate libraries (OpenSSL).
46
47 This package includes the core files necessary for both the OpenSSH
48 client and server. To make this package useful, you should also
49 install openssh-clients, openssh-server, or both.
50
51 %description -l pl
52 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
53 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
54 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
55 pomiedzy dwoma hostami.
56
57 %package clients
58 Summary:        OpenSSH Secure Shell protocol clients
59 Summary(pl):    Klienci protoko³u Secure Shell
60 Requires:       openssh
61 Group:          Applications/Networking
62 Group(pl):      Aplikacje/Sieciowe
63 Group(de):      Applikationen/Netzwerkwesen
64 Obsoletes:      ssh-clients < %{version}, ssh-clients > %{version}
65 Requires:       %{name} = %{version}
66
67 %description clients
68 Ssh (Secure Shell) a program for logging into a remote machine and for
69 executing commands in a remote machine. It is intended to replace
70 rlogin and rsh, and provide secure encrypted communications between
71 two untrusted hosts over an insecure network. X11 connections and
72 arbitrary TCP/IP ports can also be forwarded over the secure channel.
73
74 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
75 it up to date in terms of security and features, as well as removing
76 all patented algorithms to seperate libraries (OpenSSL).
77
78 This package includes the clients necessary to make encrypted
79 connections to SSH servers.
80
81 %description -l pl clients
82 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
83 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
84 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
85 pomiedzy dwoma hostami.
86
87 Ten pakiet zawiera klientów s³u¿±cych do ³±czenia siê z serwerami SSH.
88
89 %package server
90 Summary:        OpenSSH Secure Shell protocol server (sshd)
91 Summary(pl):    Serwer protoko³u Secure Shell (sshd)
92 Requires:       openssh chkconfig >= 0.9
93 Group:          Networking/Daemons
94 Group(pl):      Sieciowe/Serwery
95 Group(de):      Netzwerkwesen/Server
96 Obsoletes:      ssh-server < %{version}, ssh-server > %{version}
97 Requires:       rc-scripts
98 Requires:       /bin/login
99 Requires:       util-linux
100 Prereq:         pam
101 Prereq:         %{name} = %{version}
102
103 %description server
104 Ssh (Secure Shell) a program for logging into a remote machine and for
105 executing commands in a remote machine. It is intended to replace
106 rlogin and rsh, and provide secure encrypted communications between
107 two untrusted hosts over an insecure network. X11 connections and
108 arbitrary TCP/IP ports can also be forwarded over the secure channel.
109
110 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
111 it up to date in terms of security and features, as well as removing
112 all patented algorithms to seperate libraries (OpenSSL).
113
114 This package contains the secure shell daemon. The sshd is the server
115 part of the secure shell protocol and allows ssh clients to connect to
116 your host.
117
118 %description -l pl server
119 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
120 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
121 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
122 pomiedzy dwoma hostami.
123
124 Ten pakiet zawiera serwer sshd (do którego mog± ³±czyæ siê klienci
125 ssh).
126
127 %package gnome-askpass
128 Summary:        OpenSSH GNOME passphrase dialog
129 Summary(pl):    Odpytywacz has³a OpenSSH dla GNOME
130 Group:          Applications/Networking
131 Group(pl):      Aplikacje/Sieciowe
132 Group(de):      Applikationen/Netzwerkwesen
133 Requires:       %{name} = %{version}
134 Obsoletes:      ssh-extras < %{version}, ssh-extras > %{version}
135 Obsoletes:      ssh-askpass < %{version}, ssh-askpass > %{version}
136 Obsoletes:      openssh-askpass < %{version}, openssh-askpass > %{version}
137
138 %description gnome-askpass
139 Ssh (Secure Shell) a program for logging into a remote machine and for
140 executing commands in a remote machine. It is intended to replace
141 rlogin and rsh, and provide secure encrypted communications between
142 two untrusted hosts over an insecure network. X11 connections and
143 arbitrary TCP/IP ports can also be forwarded over the secure channel.
144
145 OpenSSH is OpenBSD's rework of the last free version of SSH, bringing
146 it up to date in terms of security and features, as well as removing
147 all patented algorithms to seperate libraries (OpenSSL).
148
149 This package contains the GNOME passphrase dialog.
150
151 %description -l pl gnome-askpass
152 Ssh (Secure Shell) to program s³u¿±cy do logowania siê na zdaln±
153 maszynê i uruchamiania na niej aplikacji. W zamierzeniu openssh ma
154 zast±piæ rlogin, rsh i dostarczyæ bezpieczne, szyfrowane po³±czenie
155 pomiedzy dwoma hostami.
156
157 Ten pakiet zawiera ,,odpytywacz has³a'' dla GNOME.
158
159 %prep
160 %setup  -q
161 %patch0 -p1
162 %patch1 -p1
163 %patch2 -p1
164 %patch3 -p1
165
166 %build
167 autoconf
168 %configure \
169         --with-gnome-askpass \
170         --with-tcp-wrappers \
171         --with-md5-passwords \
172         --with-ipaddr-display \
173         --enable-ipv6 \
174         --with-4in6 \
175         --enable-log-auth 
176
177 echo '#define LOGIN_PROGRAM           "/bin/login"' >>config.h
178
179 %{__make}
180 cd contrib && gcc $RPM_OPT_FLAGS `gnome-config --cflags gnome gnomeui` \
181         gnome-ssh-askpass.c -o gnome-ssh-askpass \
182         `gnome-config --libs gnome gnomeui`
183
184 %install
185 rm -rf $RPM_BUILD_ROOT
186
187 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{pam.d,rc.d/init.d,sysconfig,security}}
188
189 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
190
191 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/sshd
192 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/passwdssh
193 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sshd
194 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
195 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
196 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
197 install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
198 install contrib/gnome-ssh-askpass \
199         $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
200
201 gzip -9nf ChangeLog OVERVIEW COPYING.Ylonen README README.Ylonen UPGRADING \
202         $RPM_BUILD_ROOT/%{_mandir}/man*/*
203
204 touch $RPM_BUILD_ROOT/etc/security/blacklist.sshd
205         
206 %clean
207 rm -rf $RPM_BUILD_ROOT
208
209 %post server
210 /sbin/chkconfig --add sshd
211 if [ ! -f %{_sysconfdir}/ssh_host_key -o ! -s %{_sysconfdir}/ssh_host_key ]; then
212         %{_bindir}/ssh-keygen -b 1024 -f %{_sysconfdir}/ssh_host_key -N '' 1>&2
213 fi
214 if [ ! -f %{_sysconfdir}/ssh_host_dsa_key -o ! -s %{_sysconfdir}/ssh_host_dsa_key ]; then
215         %{_bindir}/ssh-keygen -d -f %{_sysconfdir}/ssh_host_dsa_key -N '' 1>&2
216 fi
217 if [ -f /var/lock/subsys/sshd ]; then
218         /etc/rc.d/init.d/sshd restart 1>&2
219 else
220         echo "Run \"/etc/rc.d/init.d/sshd start\" to start openssh daemon."
221 fi
222 if ! grep ssh /etc/security/passwd.conf >/dev/null 2>&1 ; then
223         echo "ssh" >> /etc/security/passwd.conf
224 fi
225
226 %preun server
227 if [ "$1" = 0 ]; then
228         if [ -f /var/lock/subsys/sshd ]; then
229                 /etc/rc.d/init.d/sshd stop 1>&2
230         fi
231         /sbin/chkconfig --del sshd
232 fi
233
234 %files
235 %defattr(644,root,root,755)
236 %doc {ChangeLog,OVERVIEW,COPYING.Ylonen,README,README.Ylonen,UPGRADING}.gz
237 %attr(755,root,root) %{_bindir}/ssh-keygen
238 %{_mandir}/man1/ssh-keygen.1*
239 %dir %{_sysconfdir}
240
241 %files clients
242 %defattr(644,root,root,755)
243 %attr(0755,root,root) %{_bindir}/ssh
244 %attr(0755,root,root) %{_bindir}/ssh-agent
245 %attr(0755,root,root) %{_bindir}/ssh-add
246 %attr(755,root,root) %{_bindir}/scp
247 %{_mandir}/man1/scp.1*
248 %{_mandir}/man1/ssh.1*
249 %{_mandir}/man1/ssh-agent.1*
250 %{_mandir}/man1/ssh-add.1*
251 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ssh_config
252
253 %files server
254 %defattr(644,root,root,755)
255 %attr(755,root,root) %{_sbindir}/sshd
256 %{_mandir}/man8/sshd.8*
257 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sshd_config
258 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/sshd
259 %attr(754,root,root) /etc/rc.d/init.d/sshd
260 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
261 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
262
263 %files gnome-askpass
264 %defattr(644,root,root,755)
265 %dir %{_libexecdir}/ssh
266 %attr(755,root,root) %{_libexecdir}/ssh/ssh-askpass
This page took 0.049941 seconds and 4 git commands to generate.