pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/freeradius Obey PKG_SYSCONFBASEDIR.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/18711423ceb8
branches:  trunk
changeset: 488764:18711423ceb8
user:      seb <seb%pkgsrc.org@localhost>
date:      Wed Feb 09 09:14:26 2005 +0000

description:
Obey PKG_SYSCONFBASEDIR.
Fix the rc.d script: add rcvar definition and no need to source /etc/rc.subr
twice.

Bump PKGREVISION to 7.

diffstat:

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

diffs (50 lines):

diff -r 7946e5b7769d -r 18711423ceb8 net/freeradius/Makefile
--- a/net/freeradius/Makefile   Wed Feb 09 09:05:38 2005 +0000
+++ b/net/freeradius/Makefile   Wed Feb 09 09:14:26 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.22 2004/12/28 02:47:46 reed Exp $
+# $NetBSD: Makefile,v 1.23 2005/02/09 09:14:26 seb Exp $
 
 DISTNAME=      freeradius-1.0.1
-PKGREVISION=   6
+PKGREVISION=   7
 CATEGORIES=    net
 MASTER_SITES=  ftp://ftp.freeradius.org/pub/radius/ \
                ftp://ftp.Awfulhak.org/pub/radius/
@@ -31,7 +31,7 @@
 
 CONFIGURE_ARGS+=       --with-logdir=${VARBASE}/log
 CONFIGURE_ARGS+=       --localstatedir=${VARBASE}
-CONFIGURE_ARGS+=       --sysconfdir=${PREFIX}/etc
+CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFBASEDIR}
 CONFIGURE_ARGS+=       --disable-ltdl-install
 CONFIGURE_ARGS+=       --with-ltdl-lib=${PREFIX}/lib
 CONFIGURE_ARGS+=       --with-ltdl-include=${PREFIX}/include
diff -r 7946e5b7769d -r 18711423ceb8 net/freeradius/files/radiusd.sh
--- a/net/freeradius/files/radiusd.sh   Wed Feb 09 09:05:38 2005 +0000
+++ b/net/freeradius/files/radiusd.sh   Wed Feb 09 09:14:26 2005 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: radiusd.sh,v 1.4 2004/12/22 10:07:21 adrianp Exp $
+# $NetBSD: radiusd.sh,v 1.5 2005/02/09 09:14:26 seb Exp $
 #
 # PROVIDE: radiusd
 # REQUIRE: network
@@ -12,6 +12,7 @@
 fi
 
 name="radiusd"
+rcvar=${name}
 command="@PREFIX@/sbin/radiusd"
 pidfile="@VARBASE@/run/radiusd/radiusd.pid"
 start_precmd="radiusd_precmd"
@@ -27,8 +28,6 @@
 
 if [ -f /etc/rc.subr ]
 then
-       . /etc/rc.subr
-
        load_rc_config $name
        run_rc_command "$1"
 else



Home | Main Index | Thread Index | Old Index