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