summaryrefslogtreecommitdiff
path: root/security/heimdal
diff options
context:
space:
mode:
authorjlam <jlam>2004-01-10 21:59:29 +0000
committerjlam <jlam>2004-01-10 21:59:29 +0000
commit0b5dffea2536452b79c2fac5c6d1cdd1d2ab188e (patch)
treee8e6d3c23d6ba7067eece93fd0f11dc4d952aa64 /security/heimdal
parentb46c70f1e5542fd24373c9c2c10caf90ff8a2120 (diff)
downloadpkgsrc-0b5dffea2536452b79c2fac5c6d1cdd1d2ab188e.tar.gz
Add a rc.d script to start the kdc daemon on the Kerberos master server.
Diffstat (limited to 'security/heimdal')
-rw-r--r--security/heimdal/Makefile3
-rw-r--r--security/heimdal/files/kdc.sh24
2 files changed, 26 insertions, 1 deletions
diff --git a/security/heimdal/Makefile b/security/heimdal/Makefile
index c7f73a889b8..23930f8ca26 100644
--- a/security/heimdal/Makefile
+++ b/security/heimdal/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/01/10 14:56:45 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2004/01/10 21:59:29 jlam Exp $
DISTNAME= heimdal-0.6
CATEGORIES= security
@@ -53,6 +53,7 @@ HEIMDAL_TRANSFORM= "s/^ftp/kftp/"
USE_PKGINSTALL= yes
OWN_DIRS_PERMS= ${HEIMDAL_STATEDIR} ${ROOT_USER} ${ROOT_GROUP} 0700
+RCD_SCRIPTS= kdc
pre-configure:
cd ${WRKSRC}; for file in lib/hdb/hdb.h; do \
diff --git a/security/heimdal/files/kdc.sh b/security/heimdal/files/kdc.sh
new file mode 100644
index 00000000000..78e7139fb4c
--- /dev/null
+++ b/security/heimdal/files/kdc.sh
@@ -0,0 +1,24 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: kdc.sh,v 1.1 2004/01/10 21:59:29 jlam Exp $
+#
+# PROVIDE: kdc
+# REQUIRE: NETWORKING
+# BEFORE: SERVERS
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="kdc"
+rcvar=$name
+command="@PREFIX@/libexec/${name}"
+required_files="@PKG_SYSCONFDIR@/krb5.conf"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ @ECHO@ -n " ${name}"
+ ${command} ${kdc_flags}
+fi