summaryrefslogtreecommitdiff
path: root/packages/redhat
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-03-15 12:25:06 +1100
committerDamien Miller <djm@mindrot.org>2000-03-15 12:25:06 +1100
commit256fdcbec5ee70e69a89e47a360b6091a904f1a6 (patch)
tree11d9e539074e2a2a8a46a0339708ec36484ddfed /packages/redhat
parent8b1c22b7758511461b359461926e47b093a349d3 (diff)
Moved package files to contrib/
Added FreeBSD PAM config
Diffstat (limited to 'packages/redhat')
-rw-r--r--packages/redhat/openssh.spec234
-rwxr-xr-xpackages/redhat/sshd.init60
-rw-r--r--packages/redhat/sshd.pam8
3 files changed, 0 insertions, 302 deletions
diff --git a/packages/redhat/openssh.spec b/packages/redhat/openssh.spec
deleted file mode 100644
index ad4835403..000000000
--- a/packages/redhat/openssh.spec
+++ /dev/null
@@ -1,234 +0,0 @@
1# Version of OpenSSH
2%define oversion 1.2.3pre2
3
4# Version of ssh-askpass
5%define aversion 0.99
6
7Summary: OpenSSH free Secure Shell (SSH) implementation
8Name: openssh
9Version: %{oversion}
10Release: 1
11Packager: Damien Miller <djm@ibs.com.au>
12Source0: http://violet.ibs.com.au/openssh/files/openssh-%{oversion}.tar.gz
13Source1: http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
14Copyright: BSD
15Group: Applications/Internet
16BuildRoot: /tmp/openssh-%{version}-buildroot
17Obsoletes: ssh
18PreReq: openssl
19Requires: openssl
20BuildPreReq: perl
21BuildPreReq: openssl-devel
22BuildPreReq: tcp_wrappers
23BuildPreReq: gnome-libs-devel
24
25%package clients
26Summary: OpenSSH Secure Shell protocol clients
27Requires: openssh
28Group: System Environment/Daemons
29Obsoletes: ssh-clients
30
31%package server
32Summary: OpenSSH Secure Shell protocol server (sshd)
33Group: System Environment/Daemons
34Obsoletes: ssh-server
35PreReq: openssh chkconfig >= 0.9
36
37%package askpass
38Summary: OpenSSH X11 passphrase dialog
39Group: Applications/Internet
40Requires: openssh
41Obsoletes: ssh-extras
42
43%package askpass-gnome
44Summary: OpenSSH GNOME passphrase dialog
45Group: Applications/Internet
46Requires: openssh
47Obsoletes: ssh-extras
48
49%description
50Ssh (Secure Shell) a program for logging into a remote machine and for
51executing commands in a remote machine. It is intended to replace
52rlogin and rsh, and provide secure encrypted communications between
53two untrusted hosts over an insecure network. X11 connections and
54arbitrary TCP/IP ports can also be forwarded over the secure channel.
55
56OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
57up to date in terms of security and features, as well as removing all
58patented algorithms to seperate libraries (OpenSSL).
59
60This package includes the core files necessary for both the OpenSSH
61client and server. To make this package useful, you should also
62install openssh-clients, openssh-server, or both.
63
64%description clients
65Ssh (Secure Shell) a program for logging into a remote machine and for
66executing commands in a remote machine. It is intended to replace
67rlogin and rsh, and provide secure encrypted communications between
68two untrusted hosts over an insecure network. X11 connections and
69arbitrary TCP/IP ports can also be forwarded over the secure channel.
70
71OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
72up to date in terms of security and features, as well as removing all
73patented algorithms to seperate libraries (OpenSSL).
74
75This package includes the clients necessary to make encrypted connections
76to SSH servers.
77
78%description server
79Ssh (Secure Shell) a program for logging into a remote machine and for
80executing commands in a remote machine. It is intended to replace
81rlogin and rsh, and provide secure encrypted communications between
82two untrusted hosts over an insecure network. X11 connections and
83arbitrary TCP/IP ports can also be forwarded over the secure channel.
84
85OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
86up to date in terms of security and features, as well as removing all
87patented algorithms to seperate libraries (OpenSSL).
88
89This package contains the secure shell daemon. The sshd is the server
90part of the secure shell protocol and allows ssh clients to connect to
91your host.
92
93%description askpass
94Ssh (Secure Shell) a program for logging into a remote machine and for
95executing commands in a remote machine. It is intended to replace
96rlogin and rsh, and provide secure encrypted communications between
97two untrusted hosts over an insecure network. X11 connections and
98arbitrary TCP/IP ports can also be forwarded over the secure channel.
99
100OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
101up to date in terms of security and features, as well as removing all
102patented algorithms to seperate libraries (OpenSSL).
103
104This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase
105dialog.
106
107%description askpass-gnome
108Ssh (Secure Shell) a program for logging into a remote machine and for
109executing commands in a remote machine. It is intended to replace
110rlogin and rsh, and provide secure encrypted communications between
111two untrusted hosts over an insecure network. X11 connections and
112arbitrary TCP/IP ports can also be forwarded over the secure channel.
113
114OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
115up to date in terms of security and features, as well as removing all
116patented algorithms to seperate libraries (OpenSSL).
117
118This package contains the GNOME passphrase dialog.
119
120%changelog
121* Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
122- Added Jim Knoble's <jmknoble@pobox.com> askpass
123* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
124- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
125* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
126- Added 'Obsoletes' directives
127* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
128- Use make install
129- Subpackages
130* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
131- Added links for slogin
132- Fixed perms on manpages
133* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
134- Renamed init script
135* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
136- Back to old binary names
137* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
138- Use autoconf
139- New binary names
140* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
141- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
142
143%prep
144
145%setup -a 1
146
147%build
148
149CFLAGS="$RPM_OPT_FLAGS" \
150 ./configure --prefix=/usr --sysconfdir=/etc/ssh \
151 --with-gnome-askpass --with-tcp-wrappers \
152 --with-ipv4-default
153
154make
155
156cd x11-ssh-askpass-%{aversion}
157xmkmf -a
158make
159cd ..
160
161%install
162rm -rf $RPM_BUILD_ROOT
163make install DESTDIR=$RPM_BUILD_ROOT/
164
165install -d $RPM_BUILD_ROOT/etc/pam.d/
166install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
167install -m644 packages/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
168install -m755 packages/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
169
170install -s x11-ssh-askpass-%{aversion}/ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass
171ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass
172
173%clean
174rm -rf $RPM_BUILD_ROOT
175
176%post server
177/sbin/chkconfig --add sshd
178if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
179 /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
180fi
181if test -r /var/run/sshd.pid
182then
183 /etc/rc.d/init.d/sshd restart >&2
184fi
185
186%preun server
187if [ "$1" = 0 ]
188then
189 /etc/rc.d/init.d/sshd stop >&2
190 /sbin/chkconfig --del sshd
191fi
192
193%files
194%defattr(-,root,root)
195%doc ChangeLog OVERVIEW COPYING.Ylonen README README.Ylonen INSTALL
196%doc CREDITS UPGRADING
197%attr(0755,root,root) /usr/bin/ssh-keygen
198%attr(0755,root,root) /usr/bin/scp
199%attr(0644,root,root) /usr/man/man1/ssh-keygen.1
200%attr(0644,root,root) /usr/man/man1/scp.1
201%attr(0755,root,root) %dir /etc/ssh
202%attr(0755,root,root) %dir /usr/libexec/ssh
203
204%files clients
205%defattr(-,root,root)
206%attr(4755,root,root) /usr/bin/ssh
207%attr(0755,root,root) /usr/bin/ssh-agent
208%attr(0755,root,root) /usr/bin/ssh-add
209%attr(0644,root,root) /usr/man/man1/ssh.1
210%attr(0644,root,root) /usr/man/man1/ssh-agent.1
211%attr(0644,root,root) /usr/man/man1/ssh-add.1
212%attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config
213%attr(-,root,root) /usr/bin/slogin
214%attr(-,root,root) /usr/man/man1/slogin.1
215
216%files server
217%defattr(-,root,root)
218%attr(0755,root,root) /usr/sbin/sshd
219%attr(0644,root,root) /usr/man/man8/sshd.8
220%attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config
221%attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
222%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
223
224%files askpass
225%defattr(-,root,root)
226%doc x11-ssh-askpass-%{aversion}/README
227%doc x11-ssh-askpass-%{aversion}/ChangeLog
228%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
229%attr(0755,root,root) /usr/libexec/ssh/ssh-askpass
230%attr(0755,root,root) /usr/libexec/ssh/x11-ssh-askpass
231
232%files askpass-gnome
233%defattr(-,root,root)
234%attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass
diff --git a/packages/redhat/sshd.init b/packages/redhat/sshd.init
deleted file mode 100755
index cac91bb51..000000000
--- a/packages/redhat/sshd.init
+++ /dev/null
@@ -1,60 +0,0 @@
1#!/bin/bash
2
3# Init file for OpenSSH server daemon
4#
5# chkconfig: 2345 55 25
6# description: OpenSSH server daemon
7#
8# processname: sshd
9# config: /etc/ssh/ssh_host_key
10# config: /etc/ssh/ssh_host_key.pub
11# config: /etc/ssh/ssh_random_seed
12# config: /etc/ssh/sshd_config
13# pidfile: /var/run/sshd.pid
14
15# source function library
16. /etc/rc.d/init.d/functions
17
18RETVAL=0
19
20case "$1" in
21 start)
22 echo -n "Starting sshd: "
23 if [ ! -f /var/run/sshd.pid ] ; then
24 case "`type -type success`" in
25 function)
26 /usr/sbin/sshd && success "sshd startup" || failure "sshd startup"
27 RETVAL=$?
28 ;;
29 *)
30 /usr/sbin/sshd && echo -n "sshd "
31 RETVAL=$?
32 ;;
33 esac
34 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sshd
35 fi
36 echo
37 ;;
38 stop)
39 echo -n "Shutting down sshd: "
40 if [ -f /var/run/sshd.pid ] ; then
41 killproc sshd
42 fi
43 echo
44 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd
45 ;;
46 restart)
47 $0 stop
48 $0 start
49 RETVAL=$?
50 ;;
51 status)
52 status sshd
53 RETVAL=$?
54 ;;
55 *)
56 echo "Usage: sshd {start|stop|restart|status}"
57 exit 1
58esac
59
60exit $RETVAL
diff --git a/packages/redhat/sshd.pam b/packages/redhat/sshd.pam
deleted file mode 100644
index 26dcb34d9..000000000
--- a/packages/redhat/sshd.pam
+++ /dev/null
@@ -1,8 +0,0 @@
1#%PAM-1.0
2auth required /lib/security/pam_pwdb.so shadow nodelay
3auth required /lib/security/pam_nologin.so
4account required /lib/security/pam_pwdb.so
5password required /lib/security/pam_cracklib.so
6password required /lib/security/pam_pwdb.so shadow nullok use_authtok
7session required /lib/security/pam_pwdb.so
8session required /lib/security/pam_limits.so