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