pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/freeradius - Portability fix, use @ROOT_USER@:@ROO...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/972b45c41abb
branches:  trunk
changeset: 486073:972b45c41abb
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Wed Dec 22 10:07:21 2004 +0000

description:
- 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:

 net/freeradius/Makefile         |  4 +++-
 net/freeradius/files/radiusd.sh |  4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r 3f2f8f28be5c -r 972b45c41abb net/freeradius/Makefile
--- a/net/freeradius/Makefile   Wed Dec 22 09:21:45 2004 +0000
+++ b/net/freeradius/Makefile   Wed Dec 22 10:07:21 2004 +0000
@@ -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_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 -r 3f2f8f28be5c -r 972b45c41abb net/freeradius/files/radiusd.sh
--- a/net/freeradius/files/radiusd.sh   Wed Dec 22 09:21:45 2004 +0000
+++ b/net/freeradius/files/radiusd.sh   Wed Dec 22 10:07:21 2004 +0000
@@ -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 @@
        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
 }
 



Home | Main Index | Thread Index | Old Index