diff options
author | jlam <jlam@pkgsrc.org> | 2004-01-10 21:59:29 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-01-10 21:59:29 +0000 |
commit | a6e9c8bce7c6cbc05894ffb3578c03ac9d55a31f (patch) | |
tree | e8e6d3c23d6ba7067eece93fd0f11dc4d952aa64 /security | |
parent | 70b29a00e23e8963f504d0b1ffbdcaa89c1a453a (diff) | |
download | pkgsrc-a6e9c8bce7c6cbc05894ffb3578c03ac9d55a31f.tar.gz |
Add a rc.d script to start the kdc daemon on the Kerberos master server.
Diffstat (limited to 'security')
-rw-r--r-- | security/heimdal/Makefile | 3 | ||||
-rw-r--r-- | security/heimdal/files/kdc.sh | 24 |
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 |