]> andersk Git - openssh.git/blame - contrib/redhat/openssh.spec
NB: big update - may break stuff. Please test!
[openssh.git] / contrib / redhat / openssh.spec
CommitLineData
bc7ea646 1# Version of OpenSSH
922e6493 2%define oversion 2.3.1p1
bc7ea646 3
4# Version of ssh-askpass
9fb76616 5%define aversion 1.1.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
73bd30fe 20%if ! %{no_x11_askpass}
986a22ec 21Source1: http://www.jmknoble.cx/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
73bd30fe 22%endif
8efc0c15 23Copyright: BSD
24Group: Applications/Internet
25BuildRoot: /tmp/openssh-%{version}-buildroot
e9c75a39 26Obsoletes: ssh
8ce64345 27PreReq: openssl >= 0.9.5a
28Requires: openssl >= 0.9.5a
73bd30fe 29BuildPreReq: perl, openssl-devel, tcp_wrappers
aa0289fe 30BuildPreReq: /bin/login, /usr/bin/rsh, /usr/include/security/pam_appl.h
71d43804 31%if ! %{no_gnome_askpass}
bc7ea646 32BuildPreReq: gnome-libs-devel
1e970014 33%endif
8c119fd0 34
35%package clients
36Summary: OpenSSH Secure Shell protocol clients
aa0289fe 37Requires: openssh = %{version}-%{release}
71d43804 38Group: Applications/Internet
e9c75a39 39Obsoletes: ssh-clients
8efc0c15 40
d397b172 41%package server
8c119fd0 42Summary: OpenSSH Secure Shell protocol server (sshd)
d397b172 43Group: System Environment/Daemons
e9c75a39 44Obsoletes: ssh-server
aa0289fe 45PreReq: openssh = %{version}-%{release}, chkconfig >= 0.9
bd2d7f6a 46Requires: initscripts >= 4.16
d397b172 47
48%package askpass
bc7ea646 49Summary: OpenSSH X11 passphrase dialog
50Group: Applications/Internet
aa0289fe 51Requires: openssh = %{version}-%{release}
bc7ea646 52Obsoletes: ssh-extras
bc7ea646 53
bc7ea646 54%package askpass-gnome
8c119fd0 55Summary: OpenSSH GNOME passphrase dialog
d397b172 56Group: Applications/Internet
aa0289fe 57Requires: openssh = %{version}-%{release}
8c119fd0 58Obsoletes: ssh-extras
d397b172 59
8efc0c15 60%description
61Ssh (Secure Shell) a program for logging into a remote machine and for
62executing commands in a remote machine. It is intended to replace
63rlogin and rsh, and provide secure encrypted communications between
64two untrusted hosts over an insecure network. X11 connections and
65arbitrary TCP/IP ports can also be forwarded over the secure channel.
66
67OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
68up to date in terms of security and features, as well as removing all
aa0289fe 69patented algorithms to separate libraries (OpenSSL).
8efc0c15 70
8c119fd0 71This package includes the core files necessary for both the OpenSSH
72client and server. To make this package useful, you should also
73install openssh-clients, openssh-server, or both.
74
75%description clients
76Ssh (Secure Shell) a program for logging into a remote machine and for
77executing commands in a remote machine. It is intended to replace
78rlogin and rsh, and provide secure encrypted communications between
79two untrusted hosts over an insecure network. X11 connections and
80arbitrary TCP/IP ports can also be forwarded over the secure channel.
81
82OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
83up to date in terms of security and features, as well as removing all
aa0289fe 84patented algorithms to separate libraries (OpenSSL).
8c119fd0 85
d397b172 86This package includes the clients necessary to make encrypted connections
87to SSH servers.
88
89%description server
90Ssh (Secure Shell) a program for logging into a remote machine and for
91executing commands in a remote machine. It is intended to replace
92rlogin and rsh, and provide secure encrypted communications between
93two untrusted hosts over an insecure network. X11 connections and
94arbitrary TCP/IP ports can also be forwarded over the secure channel.
95
96OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
97up to date in terms of security and features, as well as removing all
aa0289fe 98patented algorithms to separate libraries (OpenSSL).
d397b172 99
8c119fd0 100This package contains the secure shell daemon. The sshd is the server
101part of the secure shell protocol and allows ssh clients to connect to
102your host.
d397b172 103
bc7ea646 104%description askpass
105Ssh (Secure Shell) a program for logging into a remote machine and for
106executing commands in a remote machine. It is intended to replace
107rlogin and rsh, and provide secure encrypted communications between
108two untrusted hosts over an insecure network. X11 connections and
109arbitrary TCP/IP ports can also be forwarded over the secure channel.
110
111OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
112up to date in terms of security and features, as well as removing all
aa0289fe 113patented algorithms to separate libraries (OpenSSL).
bc7ea646 114
986a22ec 115This package contains Jim Knoble's <jmknoble@jmknoble.cx> X11 passphrase
bc7ea646 116dialog.
bc7ea646 117
8a4958eb 118%description askpass-gnome
d397b172 119Ssh (Secure Shell) a program for logging into a remote machine and for
120executing commands in a remote machine. It is intended to replace
121rlogin and rsh, and provide secure encrypted communications between
122two untrusted hosts over an insecure network. X11 connections and
123arbitrary TCP/IP ports can also be forwarded over the secure channel.
124
125OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
126up to date in terms of security and features, as well as removing all
aa0289fe 127patented algorithms to separate libraries (OpenSSL).
d397b172 128
129This package contains the GNOME passphrase dialog.
130
8efc0c15 131%prep
132
73bd30fe 133%if ! %{no_x11_askpass}
feab8600 134%setup -q -a 1
73bd30fe 135%else
136%setup -q
137%endif
8efc0c15 138
139%build
140
e3291159 141%define _sysconfdir /etc/ssh
142
aa0289fe 143%configure \
aa0289fe 144 --libexecdir=%{_libexecdir}/openssh \
d748039d 145 --with-pam \
aa0289fe 146 --with-tcp-wrappers \
147 --with-ipv4-default \
148 --with-rsh=/usr/bin/rsh \
d748039d 149 --with-default-path=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
bc7ea646 150
151make
8efc0c15 152
1e970014 153%if ! %{no_x11_askpass}
aa0289fe 154pushd x11-ssh-askpass-%{aversion}
bc7ea646 155xmkmf -a
df16c1f2 156make
aa0289fe 157popd
1e970014 158%endif
df16c1f2 159
1e970014 160%if ! %{no_gnome_askpass}
aa0289fe 161pushd contrib
720da3f6 162gcc -O -g `gnome-config --cflags gnome gnomeui` \
5cc53885 163 gnome-ssh-askpass.c -o gnome-ssh-askpass \
164 `gnome-config --libs gnome gnomeui`
aa0289fe 165popd
1e970014 166%endif
5cc53885 167
8efc0c15 168%install
169rm -rf $RPM_BUILD_ROOT
aa0289fe 170%{makeinstall} \
aa0289fe 171 libexecdir=$RPM_BUILD_ROOT%{_libexecdir}/openssh \
172 DESTDIR=/ # Hack to disable key generation
173
8efc0c15 174
22574738 175install -d $RPM_BUILD_ROOT/etc/pam.d/
176install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
aa0289fe 177install -d $RPM_BUILD_ROOT%{_libexecdir}/openssh
5cc53885 178install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
179install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
f1bcacf9 180
1e970014 181%if ! %{no_x11_askpass}
7f8f5e00 182install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/x11-ssh-askpass
183ln -s /usr/libexec/openssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/ssh-askpass
1e970014 184%endif
bc7ea646 185
1e970014 186%if ! %{no_gnome_askpass}
7f8f5e00 187install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/gnome-ssh-askpass
1e970014 188%endif
5cc53885 189
aa0289fe 190perl -pi -e "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT%{_mandir}/man*/*
191
8efc0c15 192%clean
193rm -rf $RPM_BUILD_ROOT
194
d397b172 195%post server
f1bcacf9 196/sbin/chkconfig --add sshd
71d43804 197if test -r /var/run/sshd.pid ; then
f1bcacf9 198 /etc/rc.d/init.d/sshd restart >&2
8efc0c15 199fi
200
d397b172 201%preun server
71d43804 202if [ "$1" = 0 ] ; then
f1bcacf9 203 /etc/rc.d/init.d/sshd stop >&2
204 /sbin/chkconfig --del sshd
8efc0c15 205fi
206
207%files
208%defattr(-,root,root)
3bdf55b1 209%doc ChangeLog OVERVIEW README* INSTALL
8d25eab8 210%doc CREDITS LICENCE
aa0289fe 211%attr(0755,root,root) %{_bindir}/ssh-keygen
212%attr(0755,root,root) %{_bindir}/scp
367d1840 213%attr(0755,root,root) %{_bindir}/ssh-keyscan
777319db 214%attr(0644,root,root) %{_mandir}/man1/ssh-keygen.1*
367d1840 215%attr(0644,root,root) %{_mandir}/man1/ssh-keyscan.1*
777319db 216%attr(0644,root,root) %{_mandir}/man1/scp.1*
5733a41a 217%attr(0755,root,root) %dir %{_sysconfdir}
218%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/primes
aa0289fe 219%attr(0755,root,root) %dir %{_libexecdir}/openssh
8c119fd0 220
221%files clients
222%defattr(-,root,root)
aa0289fe 223%attr(4755,root,root) %{_bindir}/ssh
224%attr(0755,root,root) %{_bindir}/ssh-agent
225%attr(0755,root,root) %{_bindir}/ssh-add
61e96248 226%attr(0755,root,root) %{_bindir}/ssh-keyscan
227%attr(0755,root,root) %{_bindir}/sftp
777319db 228%attr(0644,root,root) %{_mandir}/man1/ssh.1*
229%attr(0644,root,root) %{_mandir}/man1/ssh-agent.1*
230%attr(0644,root,root) %{_mandir}/man1/ssh-add.1*
61e96248 231%attr(0644,root,root) %{_mandir}/man1/ssh-keyscan.1*
232%attr(0644,root,root) %{_mandir}/man1/sftp.1*
5733a41a 233%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh_config
aa0289fe 234%attr(-,root,root) %{_bindir}/slogin
777319db 235%attr(-,root,root) %{_mandir}/man1/slogin.1*
f1bcacf9 236
d397b172 237%files server
238%defattr(-,root,root)
aa0289fe 239%attr(0755,root,root) %{_sbindir}/sshd
240%attr(0755,root,root) %{_libexecdir}/openssh/sftp-server
777319db 241%attr(0644,root,root) %{_mandir}/man8/sshd.8*
242%attr(0644,root,root) %{_mandir}/man8/sftp-server.8*
5733a41a 243%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sshd_config
4655fe80 244%attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
f1bcacf9 245%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
8efc0c15 246
1e970014 247%if ! %{no_x11_askpass}
d397b172 248%files askpass
249%defattr(-,root,root)
f28583d0 250%doc x11-ssh-askpass-%{aversion}/README
251%doc x11-ssh-askpass-%{aversion}/ChangeLog
252%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
aa0289fe 253%attr(0755,root,root) %{_libexecdir}/openssh/ssh-askpass
254%attr(0755,root,root) %{_libexecdir}/openssh/x11-ssh-askpass
1e970014 255%endif
8c119fd0 256
1e970014 257%if ! %{no_gnome_askpass}
bc7ea646 258%files askpass-gnome
259%defattr(-,root,root)
aa0289fe 260%attr(0755,root,root) %{_libexecdir}/openssh/gnome-ssh-askpass
1e970014 261%endif
aa0289fe 262
263%changelog
264* Mon Oct 18 2000 Damien Miller <djm@mindrot.org>
265- Merge some of Nalin Dahyabhai <nalin@redhat.com> changes from the
266 Redhat 7.0 spec file
267* Tue Sep 05 2000 Damien Miller <djm@mindrot.org>
268- Use RPM configure macro
269* Tue Aug 08 2000 Damien Miller <djm@mindrot.org>
270- Some surgery to sshd.init (generate keys at runtime)
271- Cleanup of groups and removal of keygen calls
272* Wed Jul 12 2000 Damien Miller <djm@mindrot.org>
273- Make building of X11-askpass and gnome-askpass optional
274* Mon Jun 12 2000 Damien Miller <djm@mindrot.org>
275- Glob manpages to catch compressed files
276* Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
277- Updated for new location
278- Updated for new gnome-ssh-askpass build
279* Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
280- Added Jim Knoble's <jmknoble@pobox.com> askpass
281* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
282- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
283* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
284- Added 'Obsoletes' directives
285* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
286- Use make install
287- Subpackages
288* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
289- Added links for slogin
290- Fixed perms on manpages
291* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
292- Renamed init script
293* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
294- Back to old binary names
295* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
296- Use autoconf
297- New binary names
298* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
299- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
300
This page took 0.134835 seconds and 5 git commands to generate.