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