summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2005-12-21 04:17:49 +0000
committerjlam <jlam>2005-12-21 04:17:49 +0000
commitef57bcf574717ee374ef22a38324c8d5f25dc4cf (patch)
tree8703919f0aeb2f0946fe4d6579bcecae264028e4
parent4273d82cac8b9e9bb45f2cb32952c41840d59f01 (diff)
downloadpkgsrc-ef57bcf574717ee374ef22a38324c8d5f25dc4cf.tar.gz
Add a non-conflicting definition for load_rc_config_var so that
platforms with older versions of /etc/rc.subr can run smbd.sh and winbindd.sh without updating /etc/rc.subr. Bump PKGREVISION to 2.
-rw-r--r--security/heimdal/Makefile4
-rw-r--r--security/heimdal/files/kadmind.sh15
-rw-r--r--security/heimdal/files/kpasswdd.sh15
3 files changed, 30 insertions, 4 deletions
diff --git a/security/heimdal/Makefile b/security/heimdal/Makefile
index b787c22dd71..0ae837ab6ae 100644
--- a/security/heimdal/Makefile
+++ b/security/heimdal/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.48 2005/12/05 23:55:17 rillig Exp $
+# $NetBSD: Makefile,v 1.49 2005/12/21 04:17:49 jlam Exp $
DISTNAME= heimdal-0.7.1
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= ftp://ftp.pdc.kth.se/pub/heimdal/src/ \
ftp://ftp.sunet.se/pub/unix/admin/mirror-pdc/heimdal/src/
diff --git a/security/heimdal/files/kadmind.sh b/security/heimdal/files/kadmind.sh
index e9a3171cdeb..4639d75dd93 100644
--- a/security/heimdal/files/kadmind.sh
+++ b/security/heimdal/files/kadmind.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: kadmind.sh,v 1.1 2005/10/26 15:12:45 jlam Exp $
+# $NetBSD: kadmind.sh,v 1.2 2005/12/21 04:17:49 jlam Exp $
#
# PROVIDE: kadmind
# REQUIRE: NETWORKING
@@ -15,6 +15,19 @@ command_args="& sleep 2"
required_files="@PKG_SYSCONFDIR@/krb5.conf"
required_vars="kdc"
+# load_rc_config_var() from /etc/rc.subr on the netbsd-3 branch, for
+# the benefit of platforms with older versions of /etc/rc.subr.
+#
+load_rc_config_var()
+{
+ eval $(eval '(
+ load_rc_config '$1' >/dev/null;
+ if [ -n "${'$2'}" -o "${'$2'-UNSET}" != "UNSET" ]; then
+ echo '$2'=\'\''${'$2'}\'\'';
+ fi
+ )' )
+}
+
load_rc_config $name
load_rc_config_var kdc kdc
run_rc_command "$1"
diff --git a/security/heimdal/files/kpasswdd.sh b/security/heimdal/files/kpasswdd.sh
index b6fb0f88d5d..1202c14b638 100644
--- a/security/heimdal/files/kpasswdd.sh
+++ b/security/heimdal/files/kpasswdd.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: kpasswdd.sh,v 1.1 2005/10/26 15:12:45 jlam Exp $
+# $NetBSD: kpasswdd.sh,v 1.2 2005/12/21 04:17:49 jlam Exp $
#
# PROVIDE: kpasswdd
# REQUIRE: NETWORKING
@@ -15,6 +15,19 @@ command_args="& sleep 2"
required_files="@PKG_SYSCONFDIR@/krb5.conf"
required_vars="kdc"
+# load_rc_config_var() from /etc/rc.subr on the netbsd-3 branch, for
+# the benefit of platforms with older versions of /etc/rc.subr.
+#
+load_rc_config_var()
+{
+ eval $(eval '(
+ load_rc_config '$1' >/dev/null;
+ if [ -n "${'$2'}" -o "${'$2'-UNSET}" != "UNSET" ]; then
+ echo '$2'=\'\''${'$2'}\'\'';
+ fi
+ )' )
+}
+
load_rc_config $name
load_rc_config_var kdc kdc
run_rc_command "$1"