Add a rc.d script to start the kdc daemon on the Kerberos master server.
This commit is contained in:
parent
c0a16733a6
commit
99ac5d408b
2 changed files with 26 additions and 1 deletions
|
@ -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 \
|
||||
|
|
24
security/heimdal/files/kdc.sh
Normal file
24
security/heimdal/files/kdc.sh
Normal file
|
@ -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
|
Loading…
Reference in a new issue