]> andersk Git - gssapi-openssh.git/blame - openssh/contrib/redhat/openssh.spec
removed in openssh-3.1p1 release
[gssapi-openssh.git] / openssh / contrib / redhat / openssh.spec
CommitLineData
3c0ef626 1# Version of OpenSSH
e9a17296 2%define oversion 3.1p1
3c0ef626 3
4# Version of ssh-askpass
5%define aversion 1.2.4.1
6
7# Do we want to disable building of x11-askpass? (1=yes 0=no)
8%define no_x11_askpass 0
9
10# Do we want to disable building of gnome-askpass? (1=yes 0=no)
11%define no_gnome_askpass 0
12
13# Do we want to link against a static libcrypto? (1=yes 0=no)
14%define static_libcrypto 0
15
16# Do we want smartcard support (1=yes 0=no)
17%define scard 0
18
19# Use Redhat 7.0 pam control file
20%define redhat7 0
21
22# Disable IPv6 (avoids DNS hangs on some glibc versions)
23%define noip6 0
24
25# Reserve options to override askpass settings with:
26# rpm -ba|--rebuild --define 'skip_xxx 1'
27%{?skip_x11_askpass:%define no_x11_askpass 1}
28%{?skip_gnome_askpass:%define no_gnome_askpass 1}
29
30# Options for Redhat version:
31# rpm -ba|--rebuild --define "rh7 1"
32%{?rh7:%define redhat7 1}
33
34# Options for static OpenSSL link:
35# rpm -ba|--rebuild --define "static_openssl 1"
36%{?static_openssl:%define static_libcrypto 1}
37
38# Options for Smartcard support: (needs libsectok and openssl-engine)
39# rpm -ba|--rebuild --define "smartcard 1"
40%{?smartcard:%define scard 1}
41
42# Option to disable ipv6
43# rpm -ba|--rebuild --define "noipv6 1"
44%{?noipv6:%define noip6 1}
45
46%define exact_openssl_version %(rpm -q openssl | cut -d - -f 2)
47
48Summary: The OpenSSH implementation of SSH protocol versions 1 and 2
49Name: openssh
50Version: %{oversion}
51Release: 1
52Packager: Damien Miller <djm@mindrot.org>
53URL: http://www.openssh.com/portable.html
54Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{oversion}.tar.gz
55%if ! %{no_x11_askpass}
56Source1: http://www.pobox.com/~jmknoble/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
57%endif
58License: BSD
59Group: Applications/Internet
60BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
61Obsoletes: ssh
62BuildPreReq: perl, openssl-devel, tcp_wrappers
63BuildPreReq: /bin/login, /usr/include/security/pam_appl.h
64BuildPreReq: rpm >= 3.0.5
65%if ! %{no_x11_askpass}
66BuildPreReq: XFree86-devel
67%endif
68%if ! %{no_gnome_askpass}
69BuildPreReq: gnome-libs-devel
70%endif
71%if ! %{static_libcrypto}
72PreReq: openssl >= 0.9.5a
73PreReq: openssl = %{exact_openssl_version}
74Requires: openssl >= 0.9.5a
75%endif
76Requires: rpm >= 3.0.5
77
78%package clients
79Summary: OpenSSH clients.
80Requires: openssh = %{version}-%{release}
81Group: Applications/Internet
82Obsoletes: ssh-clients
83
84%package server
85Summary: The OpenSSH server daemon.
86Group: System Environment/Daemons
87Obsoletes: ssh-server
88PreReq: openssh = %{version}-%{release}, chkconfig >= 0.9
89%if %{redhat7}
90Requires: /etc/pam.d/system-auth
91%endif
92
93%package askpass
94Summary: A passphrase dialog for OpenSSH and X.
95Group: Applications/Internet
96Requires: openssh = %{version}-%{release}
97Obsoletes: ssh-extras
98
99%package askpass-gnome
100Summary: A passphrase dialog for OpenSSH, X, and GNOME.
101Group: Applications/Internet
102Requires: openssh = %{version}-%{release}
103Obsoletes: ssh-extras
104
105%description
106OpenSSH is OpenBSD's SSH (Secure SHell) protocol implementation. SSH
107replaces rlogin and rsh, to provide secure encrypted communications
108between two untrusted hosts over an insecure network. X11 connections
109and arbitrary TCP/IP ports can also be forwarded over the secure
110channel. Public key authentication may be used for "passwordless"
111access to servers.
112
113This package includes the core files necessary for both the OpenSSH
114client and server. To make this package useful, you should also
115install openssh-clients, openssh-server, or both.
116
117%description clients
118OpenSSH is OpenBSD's SSH (Secure SHell) protocol implementation.
119
120This package includes the clients necessary to make encrypted
121connections to SSH protocol servers. You'll also need to install the
122openssh package on OpenSSH clients.
123
124%description server
125OpenSSH is OpenBSD's SSH (Secure SHell) protocol implementation.
126
127This package contains the secure shell daemon (sshd). The sshd daemon
128allows SSH clients to securely connect to your SSH server. You also
129need to have the openssh package installed.
130
131%description askpass
132OpenSSH is OpenBSD's SSH (Secure SHell) protocol implementation.
133
134This package contains an X11 passphrase dialog for OpenSSH.
135
136%description askpass-gnome
137OpenSSH is OpenBSD's SSH (Secure SHell) protocol implementation.
138
139This package contains an X11 passphrase dialog for OpenSSH and the
140GNOME GUI desktop environment.
141
142%prep
143
144%if ! %{no_x11_askpass}
145%setup -q -a 1
146%else
147%setup -q
148%endif
149
150%build
151
152%define _sysconfdir /etc/ssh
153
154EXTRA_OPTS=""
155
156%if %{scard}
157 EXTRA_OPTS="$EXTRA_OPTS --with-smartcard"
158%endif
159
160%if %{noip6}
161 EXTRA_OPTS="$EXTRA_OPTS --with-ipv4-default "
162%endif
163
164%configure \
165 --libexecdir=%{_libexecdir}/openssh \
166 --datadir=%{_datadir}/openssh \
167 --with-pam \
168 --with-tcp-wrappers \
169 --with-rsh=/usr/bin/rsh \
170 --with-default-path=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin \
171 $EXTRA_OPTS
172
173%if %{static_libcrypto}
174perl -pi -e "s|-lcrypto|/usr/lib/libcrypto.a|g" Makefile
175%endif
176
177make
178
179%if ! %{no_x11_askpass}
180pushd x11-ssh-askpass-%{aversion}
181%configure \
182 --libexecdir=%{_libexecdir}/openssh
183xmkmf -a
184make
185popd
186%endif
187
188%if ! %{no_gnome_askpass}
189pushd contrib
190gcc -O -g `gnome-config --cflags gnome gnomeui` \
191 gnome-ssh-askpass.c -o gnome-ssh-askpass \
192 `gnome-config --libs gnome gnomeui`
193popd
194%endif
195
196%install
197rm -rf $RPM_BUILD_ROOT
198%{makeinstall} \
199 libexecdir=$RPM_BUILD_ROOT%{_libexecdir}/openssh \
200 datadir=$RPM_BUILD_ROOT%{_datadir}/openssh \
201 DESTDIR=/ # Hack to disable key generation
202
203
204install -d $RPM_BUILD_ROOT/etc/pam.d/
205install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
206install -d $RPM_BUILD_ROOT%{_libexecdir}/openssh
207%if %{redhat7}
208install -m644 contrib/redhat/sshd.pam-7.x $RPM_BUILD_ROOT/etc/pam.d/sshd
209%else
210install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
211%endif
212install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
213
214%if ! %{no_x11_askpass}
215install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/x11-ssh-askpass
216ln -s /usr/libexec/openssh/x11-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/ssh-askpass
217%endif
218
219%if ! %{no_gnome_askpass}
220install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/gnome-ssh-askpass
221%endif
222
223perl -pi -e "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT%{_mandir}/man*/*
224
225%clean
226rm -rf $RPM_BUILD_ROOT
227
228%post server
229/sbin/chkconfig --add sshd
230if test -r /var/run/sshd.pid ; then
231 /etc/rc.d/init.d/sshd restart >&2
232fi
233
234%preun server
235if [ "$1" = 0 ] ; then
236 /etc/rc.d/init.d/sshd stop >&2
237 /sbin/chkconfig --del sshd
238fi
239
240%files
241%defattr(-,root,root)
242%doc CREDITS ChangeLog INSTALL LICENCE OVERVIEW README* RFC* TODO WARNING*
243%attr(0755,root,root) %{_bindir}/ssh-keygen
244%attr(0755,root,root) %{_bindir}/scp
245%attr(0644,root,root) %{_mandir}/man1/ssh-keygen.1*
246%attr(0644,root,root) %{_mandir}/man1/scp.1*
247%attr(0755,root,root) %dir %{_sysconfdir}
248%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/moduli
249%attr(0755,root,root) %dir %{_libexecdir}/openssh
250%if %{scard}
251%attr(0755,root,root) %dir %{_datadir}/openssh
252%attr(0644,root,root) %{_datadir}/openssh/Ssh.bin
253%endif
254
255%files clients
256%defattr(-,root,root)
257%attr(4755,root,root) %{_bindir}/ssh
258%attr(0755,root,root) %{_bindir}/ssh-agent
259%attr(0755,root,root) %{_bindir}/ssh-add
260%attr(0755,root,root) %{_bindir}/ssh-keyscan
261%attr(0755,root,root) %{_bindir}/sftp
262%attr(0644,root,root) %{_mandir}/man1/ssh.1*
263%attr(0644,root,root) %{_mandir}/man1/ssh-agent.1*
264%attr(0644,root,root) %{_mandir}/man1/ssh-add.1*
265%attr(0644,root,root) %{_mandir}/man1/ssh-keyscan.1*
266%attr(0644,root,root) %{_mandir}/man1/sftp.1*
267%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh_config
268%attr(-,root,root) %{_bindir}/slogin
269%attr(-,root,root) %{_mandir}/man1/slogin.1*
270
271%files server
272%defattr(-,root,root)
273%attr(0755,root,root) %{_sbindir}/sshd
274%attr(0755,root,root) %{_libexecdir}/openssh/sftp-server
275%attr(0644,root,root) %{_mandir}/man8/sshd.8*
276%attr(0644,root,root) %{_mandir}/man8/sftp-server.8*
277#%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sshd_config
278%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sshd_config
279%attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
280%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
281
282%if ! %{no_x11_askpass}
283%files askpass
284%defattr(-,root,root)
285%doc x11-ssh-askpass-%{aversion}/README
286%doc x11-ssh-askpass-%{aversion}/ChangeLog
287%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
288%attr(0755,root,root) %{_libexecdir}/openssh/ssh-askpass
289%attr(0755,root,root) %{_libexecdir}/openssh/x11-ssh-askpass
290%endif
291
292%if ! %{no_gnome_askpass}
293%files askpass-gnome
294%defattr(-,root,root)
295%attr(0755,root,root) %{_libexecdir}/openssh/gnome-ssh-askpass
296%endif
297
298%changelog
299* Mon Oct 18 2000 Damien Miller <djm@mindrot.org>
300- Merge some of Nalin Dahyabhai <nalin@redhat.com> changes from the
301 Redhat 7.0 spec file
302* Tue Sep 05 2000 Damien Miller <djm@mindrot.org>
303- Use RPM configure macro
304* Tue Aug 08 2000 Damien Miller <djm@mindrot.org>
305- Some surgery to sshd.init (generate keys at runtime)
306- Cleanup of groups and removal of keygen calls
307* Wed Jul 12 2000 Damien Miller <djm@mindrot.org>
308- Make building of X11-askpass and gnome-askpass optional
309* Mon Jun 12 2000 Damien Miller <djm@mindrot.org>
310- Glob manpages to catch compressed files
311* Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
312- Updated for new location
313- Updated for new gnome-ssh-askpass build
314* Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
315- Added Jim Knoble's <jmknoble@pobox.com> askpass
316* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
317- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
318* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
319- Added 'Obsoletes' directives
320* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
321- Use make install
322- Subpackages
323* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
324- Added links for slogin
325- Fixed perms on manpages
326* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
327- Renamed init script
328* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
329- Back to old binary names
330* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
331- Use autoconf
332- New binary names
333* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
334- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
335
This page took 2.113813 seconds and 5 git commands to generate.