aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2001-04-17 16:25:13 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2001-04-17 16:25:13 +0000
commit84a708203ec48041cb8d66d0db15f7e2dbf731de (patch)
treef566be7a5ed8b464c912b1bad9d973ab30e3e6fd /security
parent7cc13b6ff31e92850b86519363ebd81e8f2b5fc9 (diff)
downloadports-84a708203ec48041cb8d66d0db15f7e2dbf731de.tar.gz
ports-84a708203ec48041cb8d66d0db15f7e2dbf731de.zip
Add a sample start-up script for the KDC.
Notes
Notes: svn path=/head/; revision=41573
Diffstat (limited to 'security')
-rw-r--r--security/heimdal/Makefile2
-rw-r--r--security/heimdal/files/kdc.sh32
-rw-r--r--security/heimdal/pkg-plist1
3 files changed, 35 insertions, 0 deletions
diff --git a/security/heimdal/Makefile b/security/heimdal/Makefile
index 649059ab6cd8..36518258c415 100644
--- a/security/heimdal/Makefile
+++ b/security/heimdal/Makefile
@@ -104,5 +104,7 @@ pre-configure:
post-install:
install-info ${PREFIX}/info/heimdal.info ${PREFIX}/info/dir
+ ${SED} 's;%%PREFIX%%;${PREFIX};g' ${FILESDIR}/kdc.sh > \
+ ${PREFIX}/etc/rc.d/kdc.sh.sample
.include <bsd.port.mk>
diff --git a/security/heimdal/files/kdc.sh b/security/heimdal/files/kdc.sh
new file mode 100644
index 000000000000..1e8d24a5810e
--- /dev/null
+++ b/security/heimdal/files/kdc.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+kdc=%%PREFIX%%/libexec/kdc
+
+case "$1" in
+start)
+ if [ -x $kdc ]; then
+ echo -n ' kdc'
+ $kdc &
+ fi
+ ;;
+stop)
+ if [ -f /var/run/kdc.pid ]; then
+ kill -TERM `cat /var/run/kdc.pid`
+ rm -f /var/run/kdc.pid
+ echo -n ' kdc'
+ fi
+ ;;
+restart)
+ if [ -f /var/run/kdc.pid ]; then
+ $0 stop
+ sleep 2
+ fi
+ $0 start
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ exit 64
+ ;;
+esac
+
+exit 0
diff --git a/security/heimdal/pkg-plist b/security/heimdal/pkg-plist
index 32f86d62c61b..4fdfd74fad79 100644
--- a/security/heimdal/pkg-plist
+++ b/security/heimdal/pkg-plist
@@ -18,6 +18,7 @@ bin/string2key
bin/su
bin/telnet
bin/verify_krb5_conf
+etc/rc.d/kdc.sh.sample
include/asn1.h
include/asn1_err.h
include/base64.h