summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/hpux/README19
-rw-r--r--contrib/hpux/sshd5
-rwxr-xr-xcontrib/hpux/sshd.rc90
-rw-r--r--contrib/redhat/openssh.spec20
-rw-r--r--contrib/suse/openssh.spec21
5 files changed, 135 insertions, 20 deletions
diff --git a/contrib/hpux/README b/contrib/hpux/README
new file mode 100644
index 000000000..edddfc018
--- /dev/null
+++ b/contrib/hpux/README
@@ -0,0 +1,19 @@
1README for OpenSSH HP-UX contrib files
2Kevin Steves <stevesk@sweden.hp.com>
3
4sshd: configuration file for sshd.rc
5sshd.rc: SSH startup script
6
7To install:
8
9o Verify paths in sshd.rc match your local installation
10 (WHAT_PATH and WHAT_PID)
11o Customize sshd if needed (SSHD_ARGS)
12o Install:
13
14 # cp sshd /etc/rc.config.d
15 # chmod 444 /etc/rc.config.d/sshd
16 # cp sshd.rc /sbin/init.d
17 # chmod 555 /sbin/init.d/sshd.rc
18 # ln -s /sbin/init.d/sshd.rc /sbin/rc1.d/K100sshd
19 # ln -s /sbin/init.d/sshd.rc /sbin/rc2.d/S900sshd
diff --git a/contrib/hpux/sshd b/contrib/hpux/sshd
new file mode 100644
index 000000000..8eb5e92a3
--- /dev/null
+++ b/contrib/hpux/sshd
@@ -0,0 +1,5 @@
1# SSHD_START: Set to 1 to start SSH daemon
2# SSHD_ARGS: Command line arguments to pass to sshd
3#
4SSHD_START=1
5SSHD_ARGS=
diff --git a/contrib/hpux/sshd.rc b/contrib/hpux/sshd.rc
new file mode 100755
index 000000000..f9a10999b
--- /dev/null
+++ b/contrib/hpux/sshd.rc
@@ -0,0 +1,90 @@
1#!/sbin/sh
2
3#
4# sshd.rc: SSH daemon start-up and shutdown script
5#
6
7# Allowed exit values:
8# 0 = success; causes "OK" to show up in checklist.
9# 1 = failure; causes "FAIL" to show up in checklist.
10# 2 = skip; causes "N/A" to show up in the checklist.
11# Use this value if execution of this script is overridden
12# by the use of a control variable, or if this script is not
13# appropriate to execute for some other reason.
14# 3 = reboot; causes the system to be rebooted after execution.
15
16# Input and output:
17# stdin is redirected from /dev/null
18#
19# stdout and stderr are redirected to the /etc/rc.log file
20# during checklist mode, or to the console in raw mode.
21
22PATH=/usr/sbin:/usr/bin:/sbin
23export PATH
24
25WHAT='OpenSSH'
26WHAT_PATH=/opt/openssh/sbin/sshd
27WHAT_PID=/var/run/sshd.pid
28WHAT_CONFIG=/etc/rc.config.d/sshd
29
30# NOTE: If your script executes in run state 0 or state 1, then /usr might
31# not be available. Do not attempt to access commands or files in
32# /usr unless your script executes in run state 2 or greater. Other
33# file systems typically not mounted until run state 2 include /var
34# and /opt.
35
36rval=0
37
38# Check the exit value of a command run by this script. If non-zero, the
39# exit code is echoed to the log file and the return value of this script
40# is set to indicate failure.
41
42set_return() {
43 x=$?
44 if [ $x -ne 0 ]; then
45 echo "EXIT CODE: $x"
46 rval=1 # script FAILed
47 fi
48}
49
50case $1 in
51'start_msg')
52 echo "Starting $WHAT"
53 ;;
54
55'stop_msg')
56 echo "Stopping $WHAT"
57 ;;
58
59'start')
60 if [ -f $WHAT_CONFIG ] ; then
61 . $WHAT_CONFIG
62 else
63 echo "ERROR: $WHAT_CONFIG defaults file MISSING"
64 fi
65
66 if [ "$SSHD_START" -eq 1 -a -x "$WHAT_PATH" ]; then
67 $WHAT_PATH $SSHD_ARGS && echo "$WHAT started"
68 set_return
69 else
70 rval=2
71 fi
72 ;;
73
74'stop')
75 if kill `cat $WHAT_PID`; then
76 echo "$WHAT stopped"
77 else
78 rval=1
79 echo "Unable to stop $WHAT"
80 fi
81 set_return
82 ;;
83
84*)
85 echo "usage: $0 {start|stop|start_msg|stop_msg}"
86 rval=1
87 ;;
88esac
89
90exit $rval
diff --git a/contrib/redhat/openssh.spec b/contrib/redhat/openssh.spec
index 810af1500..37316d21e 100644
--- a/contrib/redhat/openssh.spec
+++ b/contrib/redhat/openssh.spec
@@ -167,8 +167,8 @@ This package contains the GNOME passphrase dialog.
167 167
168%build 168%build
169 169
170%configure --sysconfdir=/etc/ssh --with-tcp-wrappers \ 170%configure --sysconfdir=/etc/ssh --libexecdir=/usr/libexec/openssh \
171 --with-rsh=/usr/bin/rsh 171 --with-tcp-wrappers --with-rsh=/usr/bin/rsh
172 172
173make 173make
174 174
@@ -193,17 +193,17 @@ make install DESTDIR=$RPM_BUILD_ROOT/
193 193
194install -d $RPM_BUILD_ROOT/etc/pam.d/ 194install -d $RPM_BUILD_ROOT/etc/pam.d/
195install -d $RPM_BUILD_ROOT/etc/rc.d/init.d 195install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
196install -d $RPM_BUILD_ROOT/usr/libexec/ssh 196install -d $RPM_BUILD_ROOT/usr/libexec/openssh
197install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd 197install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
198install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd 198install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
199 199
200%if ! %{no_x11_askpass} 200%if ! %{no_x11_askpass}
201install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass 201install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/x11-ssh-askpass
202ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass 202ln -s /usr/libexec/openssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/ssh-askpass
203%endif 203%endif
204 204
205%if ! %{no_gnome_askpass} 205%if ! %{no_gnome_askpass}
206install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/gnome-ssh-askpass 206install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/gnome-ssh-askpass
207%endif 207%endif
208 208
209%clean 209%clean
@@ -230,7 +230,7 @@ fi
230%attr(0644,root,root) /usr/man/man1/ssh-keygen.1* 230%attr(0644,root,root) /usr/man/man1/ssh-keygen.1*
231%attr(0644,root,root) /usr/man/man1/scp.1* 231%attr(0644,root,root) /usr/man/man1/scp.1*
232%attr(0755,root,root) %dir /etc/ssh 232%attr(0755,root,root) %dir /etc/ssh
233%attr(0755,root,root) %dir /usr/libexec/ssh 233%attr(0755,root,root) %dir /usr/libexec/openssh
234 234
235%files clients 235%files clients
236%defattr(-,root,root) 236%defattr(-,root,root)
@@ -258,12 +258,12 @@ fi
258%doc x11-ssh-askpass-%{aversion}/README 258%doc x11-ssh-askpass-%{aversion}/README
259%doc x11-ssh-askpass-%{aversion}/ChangeLog 259%doc x11-ssh-askpass-%{aversion}/ChangeLog
260%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad 260%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
261%attr(0755,root,root) /usr/libexec/ssh/ssh-askpass 261%attr(0755,root,root) /usr/libexec/openssh/ssh-askpass
262%attr(0755,root,root) /usr/libexec/ssh/x11-ssh-askpass 262%attr(0755,root,root) /usr/libexec/openssh/x11-ssh-askpass
263%endif 263%endif
264 264
265%if ! %{no_gnome_askpass} 265%if ! %{no_gnome_askpass}
266%files askpass-gnome 266%files askpass-gnome
267%defattr(-,root,root) 267%defattr(-,root,root)
268%attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass 268%attr(0755,root,root) /usr/libexec/openssh/gnome-ssh-askpass
269%endif 269%endif
diff --git a/contrib/suse/openssh.spec b/contrib/suse/openssh.spec
index 5c2e56e62..324d88aea 100644
--- a/contrib/suse/openssh.spec
+++ b/contrib/suse/openssh.spec
@@ -150,8 +150,9 @@ This package contains the GNOME passphrase dialog.
150 150
151%build 151%build
152CFLAGS="$RPM_OPT_FLAGS" \ 152CFLAGS="$RPM_OPT_FLAGS" \
153./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass \ 153./configure --prefix=/usr --sysconfdir=/etc/ssh \
154 --with-tcp-wrappers --with-ipv4-default 154 --libexecdir=/usr/libexec/ssh --with-gnome-askpass \
155 --with-tcp-wrappers --with-ipv4-default
155make 156make
156 157
157cd contrib 158cd contrib
@@ -167,12 +168,12 @@ install -d $RPM_BUILD_ROOT/etc/ssh/
167install -d $RPM_BUILD_ROOT/etc/pam.d/ 168install -d $RPM_BUILD_ROOT/etc/pam.d/
168install -d $RPM_BUILD_ROOT/sbin/init.d/ 169install -d $RPM_BUILD_ROOT/sbin/init.d/
169install -d $RPM_BUILD_ROOT/var/adm/fillup-templates 170install -d $RPM_BUILD_ROOT/var/adm/fillup-templates
170install -d $RPM_BUILD_ROOT/usr/libexec/ssh 171install -d $RPM_BUILD_ROOT/usr/libexec/openssh
171install -m644 sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd 172install -m644 contrib/sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd
172install -m744 contrib/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd 173install -m744 contrib/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd
173ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd 174ln -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 175install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/gnome-ssh-askpass
175ln -s gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass 176ln -s gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/ssh-askpass
176install -m744 contrib/suse/rc.config.sshd \ 177install -m744 contrib/suse/rc.config.sshd \
177 $RPM_BUILD_ROOT/var/adm/fillup-templates 178 $RPM_BUILD_ROOT/var/adm/fillup-templates
178 179
@@ -230,7 +231,7 @@ fi
230%attr(0644,root,root) %doc /usr/man/man1/ssh-keygen.1* 231%attr(0644,root,root) %doc /usr/man/man1/ssh-keygen.1*
231%attr(0644,root,root) %doc /usr/man/man1/scp.1* 232%attr(0644,root,root) %doc /usr/man/man1/scp.1*
232%attr(0755,root,root) %dir /etc/ssh 233%attr(0755,root,root) %dir /etc/ssh
233%attr(0755,root,root) %dir /usr/libexec/ssh 234%attr(0755,root,root) %dir /usr/libexec/openssh
234 235
235%files clients 236%files clients
236%defattr(-,root,root) 237%defattr(-,root,root)
@@ -247,7 +248,7 @@ fi
247%files server 248%files server
248%defattr(-,root,root) 249%defattr(-,root,root)
249%attr(0755,root,root) /usr/sbin/sshd 250%attr(0755,root,root) /usr/sbin/sshd
250%attr(0755,root,root) /usr/libexec/ssh/sftp-server 251%attr(0755,root,root) /usr/libexec/openssh/sftp-server
251%attr(0644,root,root) %doc /usr/man/man8/sshd.8* 252%attr(0644,root,root) %doc /usr/man/man8/sshd.8*
252%attr(0644,root,root) %doc /usr/man/man8/sftp-server.8* 253%attr(0644,root,root) %doc /usr/man/man8/sftp-server.8*
253%attr(0600,root,root) %config /etc/ssh/sshd_config 254%attr(0600,root,root) %config /etc/ssh/sshd_config
@@ -258,6 +259,6 @@ fi
258 259
259%files askpass 260%files askpass
260%defattr(-,root,root) 261%defattr(-,root,root)
261%attr(0755,root,root) /usr/libexec/ssh/ssh-askpass 262%attr(0755,root,root) /usr/libexec/openssh/ssh-askpass
262%attr(0755,root,root) /usr/libexec/ssh/gnome-ssh-askpass 263%attr(0755,root,root) /usr/libexec/openssh/gnome-ssh-askpass
263 264