summaryrefslogtreecommitdiff
path: root/net/freeradius
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2004-12-22 10:07:21 +0000
committeradrianp <adrianp@pkgsrc.org>2004-12-22 10:07:21 +0000
commit44b10d3969116585131158b9d1e3a76d3640279a (patch)
tree64f11db9a06b0e32c3ef7947d90c73d99c7f2143 /net/freeradius
parent1bcaf91c111fee3c6f798299995b222628a4c077 (diff)
downloadpkgsrc-44b10d3969116585131158b9d1e3a76d3640279a.tar.gz
- Portability fix, use @ROOT_USER@:@ROOT_GROUP@ as opposed to hardcoding
root:wheel in the startup script. - Again thanks to kbrand (at) dplanet.ch for the suggestion.
Diffstat (limited to 'net/freeradius')
-rw-r--r--net/freeradius/Makefile4
-rw-r--r--net/freeradius/files/radiusd.sh4
2 files changed, 5 insertions, 3 deletions
diff --git a/net/freeradius/Makefile b/net/freeradius/Makefile
index 6a105f30b05..15a7fbee023 100644
--- a/net/freeradius/Makefile
+++ b/net/freeradius/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2004/12/21 22:16:01 adrianp Exp $
+# $NetBSD: Makefile,v 1.21 2004/12/22 10:07:21 adrianp Exp $
DISTNAME= freeradius-1.0.1
PKGREVISION= 5
@@ -20,6 +20,8 @@ USE_PKGINSTALL= YES
USE_PERL5= YES
LIBTOOLIZE_PLIST= NO
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+FILES_SUBST+= ROOT_USER=${ROOT_USER}
+FILES_SUBST+= ROOT_GROUP=${ROOT_GROUP}
# This package currently breaks using our libtool. It does not appear to use
# libtool properly/fully and as a result the daemon does not compile correctly.
diff --git a/net/freeradius/files/radiusd.sh b/net/freeradius/files/radiusd.sh
index 6190cfe04c8..afb6b678379 100644
--- a/net/freeradius/files/radiusd.sh
+++ b/net/freeradius/files/radiusd.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: radiusd.sh,v 1.3 2004/12/21 22:16:01 adrianp Exp $
+# $NetBSD: radiusd.sh,v 1.4 2004/12/22 10:07:21 adrianp Exp $
#
# PROVIDE: radiusd
# REQUIRE: network
@@ -21,7 +21,7 @@ radiusd_precmd()
if [ ! -d @VARBASE@/run/radiusd ]; then
@MKDIR@ @VARBASE@/run/radiusd
@CHMOD@ 0750 @VARBASE@/run/radiusd
- @CHOWN@ root:wheel @VARBASE@/run/radiusd
+ @CHOWN@ @ROOT_USER@:@ROOT_GROUP@ @VARBASE@/run/radiusd
fi
}