]> andersk Git - openssh.git/blame - contrib/redhat/openssh.spec
- (djm) Shadow expiry check fix from Pavel Troller <patrol@omni.sinus.cz>
[openssh.git] / contrib / redhat / openssh.spec
CommitLineData
bc7ea646 1# Version of OpenSSH
feab8600 2%define oversion 2.2.0p2
bc7ea646 3
4# Version of ssh-askpass
c80876b4 5%define aversion 1.0.1
bc7ea646 6
1e970014 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
8efc0c15 13Summary: OpenSSH free Secure Shell (SSH) implementation
14Name: openssh
bc7ea646 15Version: %{oversion}
8efc0c15 16Release: 1
71d43804 17Packager: Damien Miller <djm@mindrot.org>
177813fe 18URL: http://www.openssh.com/
71d43804 19Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{oversion}.tar.gz
c80876b4 20Source1: http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
8efc0c15 21Copyright: BSD
22Group: Applications/Internet
23BuildRoot: /tmp/openssh-%{version}-buildroot
e9c75a39 24Obsoletes: ssh
8ce64345 25PreReq: openssl >= 0.9.5a
26Requires: openssl >= 0.9.5a
d2dcff5f 27BuildPreReq: perl
bc7ea646 28BuildPreReq: openssl-devel
253bd324 29BuildPreReq: tcp_wrappers
71d43804 30%if ! %{no_gnome_askpass}
bc7ea646 31BuildPreReq: gnome-libs-devel
1e970014 32%endif
8c119fd0 33
34%package clients
35Summary: OpenSSH Secure Shell protocol clients
36Requires: openssh
71d43804 37Group: Applications/Internet
e9c75a39 38Obsoletes: ssh-clients
8efc0c15 39
d397b172 40%package server
8c119fd0 41Summary: OpenSSH Secure Shell protocol server (sshd)
d397b172 42Group: System Environment/Daemons
e9c75a39 43Obsoletes: ssh-server
30a39691 44PreReq: openssh chkconfig >= 0.9
d397b172 45
46%package askpass
bc7ea646 47Summary: OpenSSH X11 passphrase dialog
48Group: Applications/Internet
49Requires: openssh
50Obsoletes: ssh-extras
bc7ea646 51
bc7ea646 52%package askpass-gnome
8c119fd0 53Summary: OpenSSH GNOME passphrase dialog
d397b172 54Group: Applications/Internet
55Requires: openssh
8c119fd0 56Obsoletes: ssh-extras
d397b172 57
8efc0c15 58%description
59Ssh (Secure Shell) a program for logging into a remote machine and for
60executing commands in a remote machine. It is intended to replace
61rlogin and rsh, and provide secure encrypted communications between
62two untrusted hosts over an insecure network. X11 connections and
63arbitrary TCP/IP ports can also be forwarded over the secure channel.
64
65OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
66up to date in terms of security and features, as well as removing all
67patented algorithms to seperate libraries (OpenSSL).
68
8c119fd0 69This package includes the core files necessary for both the OpenSSH
70client and server. To make this package useful, you should also
71install openssh-clients, openssh-server, or both.
72
73%description clients
74Ssh (Secure Shell) a program for logging into a remote machine and for
75executing commands in a remote machine. It is intended to replace
76rlogin and rsh, and provide secure encrypted communications between
77two untrusted hosts over an insecure network. X11 connections and
78arbitrary TCP/IP ports can also be forwarded over the secure channel.
79
80OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
81up to date in terms of security and features, as well as removing all
82patented algorithms to seperate libraries (OpenSSL).
83
d397b172 84This package includes the clients necessary to make encrypted connections
85to SSH servers.
86
87%description server
88Ssh (Secure Shell) a program for logging into a remote machine and for
89executing commands in a remote machine. It is intended to replace
90rlogin and rsh, and provide secure encrypted communications between
91two untrusted hosts over an insecure network. X11 connections and
92arbitrary TCP/IP ports can also be forwarded over the secure channel.
93
94OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
95up to date in terms of security and features, as well as removing all
96patented algorithms to seperate libraries (OpenSSL).
97
8c119fd0 98This package contains the secure shell daemon. The sshd is the server
99part of the secure shell protocol and allows ssh clients to connect to
100your host.
d397b172 101
bc7ea646 102%description askpass
103Ssh (Secure Shell) a program for logging into a remote machine and for
104executing commands in a remote machine. It is intended to replace
105rlogin and rsh, and provide secure encrypted communications between
106two untrusted hosts over an insecure network. X11 connections and
107arbitrary TCP/IP ports can also be forwarded over the secure channel.
108
109OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
110up to date in terms of security and features, as well as removing all
111patented algorithms to seperate libraries (OpenSSL).
112
113This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase
114dialog.
bc7ea646 115
8a4958eb 116%description askpass-gnome
d397b172 117Ssh (Secure Shell) a program for logging into a remote machine and for
118executing commands in a remote machine. It is intended to replace
119rlogin and rsh, and provide secure encrypted communications between
120two untrusted hosts over an insecure network. X11 connections and
121arbitrary TCP/IP ports can also be forwarded over the secure channel.
122
123OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
124up to date in terms of security and features, as well as removing all
125patented algorithms to seperate libraries (OpenSSL).
126
127This package contains the GNOME passphrase dialog.
128
8efc0c15 129%changelog
feab8600 130* Tue Sep 05 2000 Damien Miller <djm@mindrot.org>
131- Use RPM configure macro
71d43804 132* Tue Aug 08 2000 Damien Miller <djm@mindrot.org>
133- Some surgery to sshd.init (generate keys at runtime)
134- Cleanup of groups and removal of keygen calls
1e970014 135* Wed Jul 12 2000 Damien Miller <djm@mindrot.org>
136- Make building of X11-askpass and gnome-askpass optional
09564242 137* Mon Jun 12 2000 Damien Miller <djm@mindrot.org>
138- Glob manpages to catch compressed files
5cc53885 139* Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
140- Updated for new location
141- Updated for new gnome-ssh-askpass build
bc7ea646 142* Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
143- Added Jim Knoble's <jmknoble@pobox.com> askpass
8c119fd0 144* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
145- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
10554a99 146* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
e9c75a39 147- Added 'Obsoletes' directives
f025becb 148* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
149- Use make install
d397b172 150- Subpackages
e1a9c08d 151* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
152- Added links for slogin
153- Fixed perms on manpages
38393fc0 154* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
155- Renamed init script
339660f6 156* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
157- Back to old binary names
5aecb327 158* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
159- Use autoconf
160- New binary names
8efc0c15 161* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
162- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
163
164%prep
165
feab8600 166%setup -q -a 1
8efc0c15 167
168%build
169
7f8f5e00 170%configure --sysconfdir=/etc/ssh --libexecdir=/usr/libexec/openssh \
171 --with-tcp-wrappers --with-rsh=/usr/bin/rsh
bc7ea646 172
173make
8efc0c15 174
1e970014 175%if ! %{no_x11_askpass}
bc7ea646 176cd x11-ssh-askpass-%{aversion}
177xmkmf -a
df16c1f2 178make
bc7ea646 179cd ..
1e970014 180%endif
df16c1f2 181
1e970014 182%if ! %{no_gnome_askpass}
5cc53885 183cd contrib
720da3f6 184gcc -O -g `gnome-config --cflags gnome gnomeui` \
5cc53885 185 gnome-ssh-askpass.c -o gnome-ssh-askpass \
186 `gnome-config --libs gnome gnomeui`
187cd ..
1e970014 188%endif
5cc53885 189
8efc0c15 190%install
191rm -rf $RPM_BUILD_ROOT
ff8ecdb8 192make install DESTDIR=$RPM_BUILD_ROOT/
8efc0c15 193
22574738 194install -d $RPM_BUILD_ROOT/etc/pam.d/
195install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
7f8f5e00 196install -d $RPM_BUILD_ROOT/usr/libexec/openssh
5cc53885 197install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
198install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
f1bcacf9 199
1e970014 200%if ! %{no_x11_askpass}
7f8f5e00 201install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/x11-ssh-askpass
202ln -s /usr/libexec/openssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/ssh-askpass
1e970014 203%endif
bc7ea646 204
1e970014 205%if ! %{no_gnome_askpass}
7f8f5e00 206install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/gnome-ssh-askpass
1e970014 207%endif
5cc53885 208
8efc0c15 209%clean
210rm -rf $RPM_BUILD_ROOT
211
d397b172 212%post server
f1bcacf9 213/sbin/chkconfig --add sshd
71d43804 214if test -r /var/run/sshd.pid ; then
f1bcacf9 215 /etc/rc.d/init.d/sshd restart >&2
8efc0c15 216fi
217
d397b172 218%preun server
71d43804 219if [ "$1" = 0 ] ; then
f1bcacf9 220 /etc/rc.d/init.d/sshd stop >&2
221 /sbin/chkconfig --del sshd
8efc0c15 222fi
223
224%files
225%defattr(-,root,root)
bedac4b1 226%doc ChangeLog OVERVIEW COPYING.Ylonen README* INSTALL
d2dcff5f 227%doc CREDITS UPGRADING
8c119fd0 228%attr(0755,root,root) /usr/bin/ssh-keygen
229%attr(0755,root,root) /usr/bin/scp
09564242 230%attr(0644,root,root) /usr/man/man1/ssh-keygen.1*
231%attr(0644,root,root) /usr/man/man1/scp.1*
8c119fd0 232%attr(0755,root,root) %dir /etc/ssh
7f8f5e00 233%attr(0755,root,root) %dir /usr/libexec/openssh
8c119fd0 234
235%files clients
236%defattr(-,root,root)
f370266e 237%attr(4755,root,root) /usr/bin/ssh
372e9169 238%attr(0755,root,root) /usr/bin/ssh-agent
372e9169 239%attr(0755,root,root) /usr/bin/ssh-add
09564242 240%attr(0644,root,root) /usr/man/man1/ssh.1*
241%attr(0644,root,root) /usr/man/man1/ssh-agent.1*
242%attr(0644,root,root) /usr/man/man1/ssh-add.1*
4655fe80 243%attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config
8c119fd0 244%attr(-,root,root) /usr/bin/slogin
09564242 245%attr(-,root,root) /usr/man/man1/slogin.1*
f1bcacf9 246
d397b172 247%files server
248%defattr(-,root,root)
249%attr(0755,root,root) /usr/sbin/sshd
09564242 250%attr(0644,root,root) /usr/man/man8/sshd.8*
4655fe80 251%attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config
252%attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
f1bcacf9 253%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
8efc0c15 254
1e970014 255%if ! %{no_x11_askpass}
d397b172 256%files askpass
257%defattr(-,root,root)
f28583d0 258%doc x11-ssh-askpass-%{aversion}/README
259%doc x11-ssh-askpass-%{aversion}/ChangeLog
260%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
7f8f5e00 261%attr(0755,root,root) /usr/libexec/openssh/ssh-askpass
262%attr(0755,root,root) /usr/libexec/openssh/x11-ssh-askpass
1e970014 263%endif
8c119fd0 264
1e970014 265%if ! %{no_gnome_askpass}
bc7ea646 266%files askpass-gnome
267%defattr(-,root,root)
7f8f5e00 268%attr(0755,root,root) /usr/libexec/openssh/gnome-ssh-askpass
1e970014 269%endif
This page took 0.127506 seconds and 5 git commands to generate.