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