summaryrefslogtreecommitdiffstats
path: root/security/openssh-portable/files
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2002-06-26 04:05:57 +0000
committerdinoex <dinoex@FreeBSD.org>2002-06-26 04:05:57 +0000
commitce07a2c968498cee6c9fcdaceead0ee568474925 (patch)
tree300569b2a692b111107f1300cbd4215871f4d559 /security/openssh-portable/files
parentf29dbdd6d15aa8e8596c920f8b80dc00f3e68a9a (diff)
downloadFreeBSD-ports-ce07a2c968498cee6c9fcdaceead0ee568474925.zip
FreeBSD-ports-ce07a2c968498cee6c9fcdaceead0ee568474925.tar.gz
Migrate configuration files to $PREFIX/etc/ssh/
Add ${PREFIX}/etc/rc.d/sshd.sh.sample
Diffstat (limited to 'security/openssh-portable/files')
-rw-r--r--security/openssh-portable/files/patch-misc.c13
-rw-r--r--security/openssh-portable/files/sshd.sh24
2 files changed, 24 insertions, 13 deletions
diff --git a/security/openssh-portable/files/patch-misc.c b/security/openssh-portable/files/patch-misc.c
deleted file mode 100644
index 0f8ef06..0000000
--- a/security/openssh-portable/files/patch-misc.c
+++ /dev/null
@@ -1,13 +0,0 @@
---- misc.c.orig Thu Apr 12 22:09:37 2001
-+++ misc.c Sat May 26 15:39:25 2001
-@@ -111,6 +111,10 @@
- copy->pw_class = xstrdup(pw->pw_class);
- copy->pw_dir = xstrdup(pw->pw_dir);
- copy->pw_shell = xstrdup(pw->pw_shell);
-+#ifdef __FreeBSD__
-+ copy->pw_expire = pw->pw_expire;
-+ copy->pw_change = pw->pw_change;
-+#endif /* __FreeBSD__ */
- return copy;
- }
-
diff --git a/security/openssh-portable/files/sshd.sh b/security/openssh-portable/files/sshd.sh
new file mode 100644
index 0000000..ba52de0
--- /dev/null
+++ b/security/openssh-portable/files/sshd.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+case "$1" in
+start)
+ __PREFIX__/sbin/sshd
+ echo -n ' sshd'
+ ;;
+stop)
+ if [ -f /var/run/sshd.pid ]; then
+ kill -TERM `cat /var/run/sshd.pid`
+ rm -f /var/run/sshd.pid
+ echo -n ' sshd'
+ fi
+ ;;
+restart)
+ if [ -f /var/run/sshd.pid ]; then
+ kill -HUP `cat /var/run/sshd.pid`
+ echo 'sshd restarted'
+ fi
+ ;;
+*)
+ echo "Usage: ${0##*/}: { start | stop | restart }" 2>&1
+ exit 65
+ ;;
+esac
OpenPOWER on IntegriCloud