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