aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2001-04-18 00:25:13 +0800
committernectar <nectar@FreeBSD.org>2001-04-18 00:25:13 +0800
commitc8e54e08fdad149be524183399a36d7e72dcd73c (patch)
treed86bc5d8c5abc3f9fe9554ec2eeac4741533d782
parent0a078216349037c032793ad8c55613c729b231ee (diff)
downloadfreebsd-ports-gnome-c8e54e08fdad149be524183399a36d7e72dcd73c.tar.gz
freebsd-ports-gnome-c8e54e08fdad149be524183399a36d7e72dcd73c.tar.zst
freebsd-ports-gnome-c8e54e08fdad149be524183399a36d7e72dcd73c.zip
Add a sample start-up script for the KDC.
-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