pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/heimdal Add a rc.d script to start the kdc da...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d90a4ff0a0ad
branches:  trunk
changeset: 466059:d90a4ff0a0ad
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Jan 10 21:59:29 2004 +0000

description:
Add a rc.d script to start the kdc daemon on the Kerberos master server.

diffstat:

 security/heimdal/Makefile     |   3 ++-
 security/heimdal/files/kdc.sh |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r 5688b2854b28 -r d90a4ff0a0ad security/heimdal/Makefile
--- a/security/heimdal/Makefile Sat Jan 10 21:35:26 2004 +0000
+++ b/security/heimdal/Makefile Sat Jan 10 21:59:29 2004 +0000
@@ -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 @@
 
 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 -r 5688b2854b28 -r d90a4ff0a0ad security/heimdal/files/kdc.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/heimdal/files/kdc.sh     Sat Jan 10 21:59:29 2004 +0000
@@ -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



Home | Main Index | Thread Index | Old Index