]> andersk Git - openssh.git/blame - contrib/suse/openssh.spec
- OpenBSD CVS update
[openssh.git] / contrib / suse / openssh.spec
CommitLineData
4655fe80 1Summary: OpenSSH, a free Secure Shell (SSH) implementation
8efc0c15 2Name: openssh
d0c832f3 3Version: 2.1.0beta1
177813fe 4URL: http://www.openssh.com/
f3cdcfdb 5Release: 1
4f6716dc 6Source0: openssh-%{version}.tar.gz
8efc0c15 7Copyright: BSD
8Group: Applications/Internet
9BuildRoot: /tmp/openssh-%{version}-buildroot
deecec71 10PreReq: openssl
e9c75a39 11Obsoletes: ssh
4655fe80 12#
a06a4e96 13# (Build[ing] Prereq[uisites] only work for RPM 2.95 and newer.)
14# building prerequisites -- stuff for
15# OpenSSL (openssl-devel),
16# TCP Wrappers (nkitb),
17# and Gnome (glibdev, gtkdev, and gnlibsd)
4655fe80 18#
a06a4e96 19BuildPrereq: openssl-devel
20BuildPrereq: nkitb
21BuildPrereq: glibdev
22BuildPrereq: gtkdev
23BuildPrereq: gnlibsd
8c119fd0 24
25%package clients
26Summary: OpenSSH Secure Shell protocol clients
27Requires: openssh
4655fe80 28Group: Applications/Internet
e9c75a39 29Obsoletes: ssh-clients
8efc0c15 30
d397b172 31%package server
8c119fd0 32Summary: OpenSSH Secure Shell protocol server (sshd)
4655fe80 33Requires: openssh
d397b172 34Group: System Environment/Daemons
deecec71 35PreReq: openssh
e9c75a39 36Obsoletes: ssh-server
d397b172 37
38%package askpass
8c119fd0 39Summary: OpenSSH GNOME passphrase dialog
d397b172 40Group: Applications/Internet
41Requires: openssh
8c119fd0 42Obsoletes: ssh-extras
e9c75a39 43Obsoletes: ssh-askpass
d397b172 44
8efc0c15 45%description
46Ssh (Secure Shell) a program for logging into a remote machine and for
47executing commands in a remote machine. It is intended to replace
48rlogin and rsh, and provide secure encrypted communications between
49two untrusted hosts over an insecure network. X11 connections and
50arbitrary TCP/IP ports can also be forwarded over the secure channel.
51
52OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
53up to date in terms of security and features, as well as removing all
54patented algorithms to seperate libraries (OpenSSL).
55
8c119fd0 56This package includes the core files necessary for both the OpenSSH
57client and server. To make this package useful, you should also
58install openssh-clients, openssh-server, or both.
59
60%description clients
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
69patented algorithms to seperate libraries (OpenSSL).
70
d397b172 71This package includes the clients necessary to make encrypted connections
72to SSH servers.
73
74%description server
75Ssh (Secure Shell) a program for logging into a remote machine and for
76executing commands in a remote machine. It is intended to replace
77rlogin and rsh, and provide secure encrypted communications between
78two untrusted hosts over an insecure network. X11 connections and
79arbitrary TCP/IP ports can also be forwarded over the secure channel.
80
81OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
82up to date in terms of security and features, as well as removing all
83patented algorithms to seperate libraries (OpenSSL).
84
8c119fd0 85This package contains the secure shell daemon. The sshd is the server
86part of the secure shell protocol and allows ssh clients to connect to
87your host.
d397b172 88
89%description askpass
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
98patented algorithms to seperate libraries (OpenSSL).
99
100This package contains the GNOME passphrase dialog.
101
8efc0c15 102%changelog
5cc53885 103* Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
104- Updated for new location
105- Updated for new gnome-ssh-askpass build
d56ad4fc 106* Sun Dec 26 1999 Chris Saia <csaia@wtower.com>
107- Made symlink to gnome-ssh-askpass called ssh-askpass
a06a4e96 108* Wed Nov 24 1999 Chris Saia <csaia@wtower.com>
109- Removed patches that included /etc/pam.d/sshd, /sbin/init.d/rc.sshd, and
110 /var/adm/fillup-templates/rc.config.sshd, since Damien merged these into
111 his released tarfile
112- Changed permissions on ssh_config in the install procedure to 644 from 600
113 even though it was correct in the %files section and thus right in the RPMs
114- Postinstall script for the server now only prints "Generating SSH host
115 key..." if we need to actually do this, in order to eliminate a confusing
116 message if an SSH host key is already in place
117- Marked all manual pages as %doc(umentation)
4655fe80 118* Mon Nov 22 1999 Chris Saia <csaia@wtower.com>
119- Added flag to configure daemon with TCP Wrappers support
120- Added building prerequisites (works in RPM 3.0 and newer)
121* Thu Nov 18 1999 Chris Saia <csaia@wtower.com>
122- Made this package correct for SuSE.
123- Changed instances of pam_pwdb.so to pam_unix.so, since it works more properly
124 with SuSE, and lib_pwdb.so isn't installed by default.
8c119fd0 125* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
126- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
10554a99 127* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
e9c75a39 128- Added 'Obsoletes' directives
f025becb 129* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
130- Use make install
d397b172 131- Subpackages
e1a9c08d 132* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
133- Added links for slogin
134- Fixed perms on manpages
38393fc0 135* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
136- Renamed init script
339660f6 137* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
138- Back to old binary names
5aecb327 139* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
140- Use autoconf
141- New binary names
8efc0c15 142* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
143- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
144
145%prep
1e3ae36c 146
147%setup -q
8efc0c15 148
149%build
f025becb 150CFLAGS="$RPM_OPT_FLAGS" \
a06a4e96 151./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass \
8eb34e02 152 --with-tcp-wrappers --with-ipv4-default
df16c1f2 153make
154
5cc53885 155cd contrib
2a19c4d3 156gcc -O -g `gnome-config --cflags gnome gnomeui` \
5cc53885 157 gnome-ssh-askpass.c -o gnome-ssh-askpass \
158 `gnome-config --libs gnome gnomeui`
159cd ..
160
8efc0c15 161%install
162rm -rf $RPM_BUILD_ROOT
ff8ecdb8 163make install DESTDIR=$RPM_BUILD_ROOT/
4655fe80 164install -d $RPM_BUILD_ROOT/etc/ssh/
22574738 165install -d $RPM_BUILD_ROOT/etc/pam.d/
4655fe80 166install -d $RPM_BUILD_ROOT/sbin/init.d/
a06a4e96 167install -d $RPM_BUILD_ROOT/var/adm/fillup-templates
720da3f6 168install -d $RPM_BUILD_ROOT/usr/libexec/ssh
4655fe80 169install -m644 sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd
5cc53885 170install -m744 contrib/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd
4655fe80 171ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd
5cc53885 172install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/gnome-ssh-askpass
d56ad4fc 173ln -s gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass
5cc53885 174install -m744 contrib/suse/rc.config.sshd \
a06a4e96 175 $RPM_BUILD_ROOT/var/adm/fillup-templates
f1bcacf9 176
8efc0c15 177%clean
178rm -rf $RPM_BUILD_ROOT
179
d397b172 180%post server
a06a4e96 181if [ "$1" = 1 ]; then
182 echo "Creating SSH stop/start scripts in the rc directories..."
4655fe80 183 ln -s ../sshd /sbin/init.d/rc2.d/K20sshd
184 ln -s ../sshd /sbin/init.d/rc2.d/S20sshd
185 ln -s ../sshd /sbin/init.d/rc3.d/K20sshd
186 ln -s ../sshd /sbin/init.d/rc3.d/S20sshd
187fi
188echo "Updating /etc/rc.config..."
189if [ -x /bin/fillup ] ; then
190 /bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.sshd
191else
192 echo "ERROR: fillup not found. This should NOT happen in SuSE Linux."
193 echo "Update /etc/rc.config by hand from the following template file:"
194 echo " /var/adm/fillup-templates/rc.config.sshd"
195fi
f1bcacf9 196if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
a06a4e96 197 echo "Generating SSH host key..."
f1bcacf9 198 /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
8efc0c15 199fi
ebdeb9a8 200if [ ! -f /etc/ssh/ssh_host_dsa_key -o ! -s /etc/ssh/ssh_host_dsa_key ]; then
201 echo "Generating SSH DSA host key..."
202 /usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' >&2
203fi
f1bcacf9 204if test -r /var/run/sshd.pid
8efc0c15 205then
a06a4e96 206 echo "Restarting the running SSH daemon..."
4655fe80 207 /usr/sbin/rcsshd restart >&2
8efc0c15 208fi
209
d397b172 210%preun server
8efc0c15 211if [ "$1" = 0 ]
212then
a06a4e96 213 echo "Stopping the SSH daemon..."
4655fe80 214 /usr/sbin/rcsshd stop >&2
a06a4e96 215 echo "Removing SSH stop/start scripts from the rc directories..."
4655fe80 216 rm /sbin/init.d/rc2.d/K20sshd
217 rm /sbin/init.d/rc2.d/S20sshd
218 rm /sbin/init.d/rc3.d/K20sshd
219 rm /sbin/init.d/rc3.d/S20sshd
8efc0c15 220fi
221
222%files
223%defattr(-,root,root)
bedac4b1 224%doc COPYING.Ylonen ChangeLog OVERVIEW README*
d2dcff5f 225%doc RFC.nroff TODO UPGRADING CREDITS
8c119fd0 226%attr(0755,root,root) /usr/bin/ssh-keygen
227%attr(0755,root,root) /usr/bin/scp
a06a4e96 228%attr(0644,root,root) %doc /usr/man/man1/ssh-keygen.1
229%attr(0644,root,root) %doc /usr/man/man1/scp.1
8c119fd0 230%attr(0755,root,root) %dir /etc/ssh
2614f09b 231%attr(0755,root,root) %dir /usr/libexec/ssh
8c119fd0 232
233%files clients
234%defattr(-,root,root)
f370266e 235%attr(4755,root,root) /usr/bin/ssh
372e9169 236%attr(0755,root,root) /usr/bin/ssh-agent
372e9169 237%attr(0755,root,root) /usr/bin/ssh-add
a06a4e96 238%attr(0644,root,root) %doc /usr/man/man1/ssh.1
239%attr(0644,root,root) %doc /usr/man/man1/ssh-agent.1
240%attr(0644,root,root) %doc /usr/man/man1/ssh-add.1
241%attr(0644,root,root) %config /etc/ssh/ssh_config
8c119fd0 242%attr(-,root,root) /usr/bin/slogin
a06a4e96 243%attr(-,root,root) %doc /usr/man/man1/slogin.1
f1bcacf9 244
d397b172 245%files server
246%defattr(-,root,root)
247%attr(0755,root,root) /usr/sbin/sshd
a06a4e96 248%attr(0644,root,root) %doc /usr/man/man8/sshd.8
249%attr(0600,root,root) %config /etc/ssh/sshd_config
250%attr(0644,root,root) %config /etc/pam.d/sshd
4655fe80 251%attr(0755,root,root) %config /sbin/init.d/sshd
252%attr(-,root,root) /usr/sbin/rcsshd
253%attr(0644,root,root) /var/adm/fillup-templates/rc.config.sshd
8efc0c15 254
d397b172 255%files askpass
256%defattr(-,root,root)
4655fe80 257%attr(0755,root,root) /usr/libexec/ssh/ssh-askpass
d56ad4fc 258%attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass
8c119fd0 259
This page took 0.115337 seconds and 5 git commands to generate.