summaryrefslogtreecommitdiff
path: root/other/openssh-2.1.1p4/contrib/suse/openssh.spec
diff options
context:
space:
mode:
Diffstat (limited to 'other/openssh-2.1.1p4/contrib/suse/openssh.spec')
-rw-r--r--other/openssh-2.1.1p4/contrib/suse/openssh.spec261
1 files changed, 261 insertions, 0 deletions
diff --git a/other/openssh-2.1.1p4/contrib/suse/openssh.spec b/other/openssh-2.1.1p4/contrib/suse/openssh.spec
new file mode 100644
index 0000000..57e687c
--- /dev/null
+++ b/other/openssh-2.1.1p4/contrib/suse/openssh.spec
@@ -0,0 +1,261 @@
1Summary: OpenSSH, a free Secure Shell (SSH) implementation
2Name: openssh
3Version: 2.1.1p4
4URL: http://www.openssh.com/
5Release: 1
6Source0: openssh-%{version}.tar.gz
7Copyright: BSD
8Group: Applications/Internet
9BuildRoot: /tmp/openssh-%{version}-buildroot
10PreReq: openssl
11Obsoletes: ssh
12#
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)
18#
19BuildPrereq: openssl-devel
20BuildPrereq: nkitb
21BuildPrereq: glibdev
22BuildPrereq: gtkdev
23BuildPrereq: gnlibsd
24
25%package clients
26Summary: OpenSSH Secure Shell protocol clients
27Requires: openssh
28Group: Applications/Internet
29Obsoletes: ssh-clients
30
31%package server
32Summary: OpenSSH Secure Shell protocol server (sshd)
33Requires: openssh
34Group: System Environment/Daemons
35PreReq: openssh
36Obsoletes: ssh-server
37
38%package askpass
39Summary: OpenSSH GNOME passphrase dialog
40Group: Applications/Internet
41Requires: openssh
42Obsoletes: ssh-extras
43Obsoletes: ssh-askpass
44
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
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
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
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.
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
102%changelog
103* Mon Jun 12 2000 Damien Miller <djm@mindrot.org>
104- Glob manpages to catch compressed files
105* Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
106- Updated for new location
107- Updated for new gnome-ssh-askpass build
108* Sun Dec 26 1999 Chris Saia <csaia@wtower.com>
109- Made symlink to gnome-ssh-askpass called ssh-askpass
110* Wed Nov 24 1999 Chris Saia <csaia@wtower.com>
111- Removed patches that included /etc/pam.d/sshd, /sbin/init.d/rc.sshd, and
112 /var/adm/fillup-templates/rc.config.sshd, since Damien merged these into
113 his released tarfile
114- Changed permissions on ssh_config in the install procedure to 644 from 600
115 even though it was correct in the %files section and thus right in the RPMs
116- Postinstall script for the server now only prints "Generating SSH host
117 key..." if we need to actually do this, in order to eliminate a confusing
118 message if an SSH host key is already in place
119- Marked all manual pages as %doc(umentation)
120* Mon Nov 22 1999 Chris Saia <csaia@wtower.com>
121- Added flag to configure daemon with TCP Wrappers support
122- Added building prerequisites (works in RPM 3.0 and newer)
123* Thu Nov 18 1999 Chris Saia <csaia@wtower.com>
124- Made this package correct for SuSE.
125- Changed instances of pam_pwdb.so to pam_unix.so, since it works more properly
126 with SuSE, and lib_pwdb.so isn't installed by default.
127* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
128- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
129* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
130- Added 'Obsoletes' directives
131* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
132- Use make install
133- Subpackages
134* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
135- Added links for slogin
136- Fixed perms on manpages
137* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
138- Renamed init script
139* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
140- Back to old binary names
141* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
142- Use autoconf
143- New binary names
144* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
145- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
146
147%prep
148
149%setup -q
150
151%build
152CFLAGS="$RPM_OPT_FLAGS" \
153./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass \
154 --with-tcp-wrappers --with-ipv4-default
155make
156
157cd contrib
158gcc -O -g `gnome-config --cflags gnome gnomeui` \
159 gnome-ssh-askpass.c -o gnome-ssh-askpass \
160 `gnome-config --libs gnome gnomeui`
161cd ..
162
163%install
164rm -rf $RPM_BUILD_ROOT
165make install DESTDIR=$RPM_BUILD_ROOT/
166install -d $RPM_BUILD_ROOT/etc/ssh/
167install -d $RPM_BUILD_ROOT/etc/pam.d/
168install -d $RPM_BUILD_ROOT/sbin/init.d/
169install -d $RPM_BUILD_ROOT/var/adm/fillup-templates
170install -d $RPM_BUILD_ROOT/usr/libexec/ssh
171install -m644 sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd
172install -m744 contrib/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd
173ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd
174install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/gnome-ssh-askpass
175ln -s gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass
176install -m744 contrib/suse/rc.config.sshd \
177 $RPM_BUILD_ROOT/var/adm/fillup-templates
178
179%clean
180rm -rf $RPM_BUILD_ROOT
181
182%post server
183if [ "$1" = 1 ]; then
184 echo "Creating SSH stop/start scripts in the rc directories..."
185 ln -s ../sshd /sbin/init.d/rc2.d/K20sshd
186 ln -s ../sshd /sbin/init.d/rc2.d/S20sshd
187 ln -s ../sshd /sbin/init.d/rc3.d/K20sshd
188 ln -s ../sshd /sbin/init.d/rc3.d/S20sshd
189fi
190echo "Updating /etc/rc.config..."
191if [ -x /bin/fillup ] ; then
192 /bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.sshd
193else
194 echo "ERROR: fillup not found. This should NOT happen in SuSE Linux."
195 echo "Update /etc/rc.config by hand from the following template file:"
196 echo " /var/adm/fillup-templates/rc.config.sshd"
197fi
198if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
199 echo "Generating SSH host key..."
200 /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
201fi
202if [ ! -f /etc/ssh/ssh_host_dsa_key -o ! -s /etc/ssh/ssh_host_dsa_key ]; then
203 echo "Generating SSH DSA host key..."
204 /usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' >&2
205fi
206if test -r /var/run/sshd.pid
207then
208 echo "Restarting the running SSH daemon..."
209 /usr/sbin/rcsshd restart >&2
210fi
211
212%preun server
213if [ "$1" = 0 ]
214then
215 echo "Stopping the SSH daemon..."
216 /usr/sbin/rcsshd stop >&2
217 echo "Removing SSH stop/start scripts from the rc directories..."
218 rm /sbin/init.d/rc2.d/K20sshd
219 rm /sbin/init.d/rc2.d/S20sshd
220 rm /sbin/init.d/rc3.d/K20sshd
221 rm /sbin/init.d/rc3.d/S20sshd
222fi
223
224%files
225%defattr(-,root,root)
226%doc COPYING.Ylonen ChangeLog OVERVIEW README*
227%doc RFC.nroff TODO UPGRADING CREDITS
228%attr(0755,root,root) /usr/bin/ssh-keygen
229%attr(0755,root,root) /usr/bin/scp
230%attr(0644,root,root) %doc /usr/man/man1/ssh-keygen.1*
231%attr(0644,root,root) %doc /usr/man/man1/scp.1*
232%attr(0755,root,root) %dir /etc/ssh
233%attr(0755,root,root) %dir /usr/libexec/ssh
234
235%files clients
236%defattr(-,root,root)
237%attr(4755,root,root) /usr/bin/ssh
238%attr(0755,root,root) /usr/bin/ssh-agent
239%attr(0755,root,root) /usr/bin/ssh-add
240%attr(0644,root,root) %doc /usr/man/man1/ssh.1*
241%attr(0644,root,root) %doc /usr/man/man1/ssh-agent.1*
242%attr(0644,root,root) %doc /usr/man/man1/ssh-add.1*
243%attr(0644,root,root) %config /etc/ssh/ssh_config
244%attr(-,root,root) /usr/bin/slogin
245%attr(-,root,root) %doc /usr/man/man1/slogin.1*
246
247%files server
248%defattr(-,root,root)
249%attr(0755,root,root) /usr/sbin/sshd
250%attr(0644,root,root) %doc /usr/man/man8/sshd.8*
251%attr(0600,root,root) %config /etc/ssh/sshd_config
252%attr(0644,root,root) %config /etc/pam.d/sshd
253%attr(0755,root,root) %config /sbin/init.d/sshd
254%attr(-,root,root) /usr/sbin/rcsshd
255%attr(0644,root,root) /var/adm/fillup-templates/rc.config.sshd
256
257%files askpass
258%defattr(-,root,root)
259%attr(0755,root,root) /usr/libexec/ssh/ssh-askpass
260%attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass
261