pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/freeradius - Fix freeradius not starting because o...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ceaab652c756
branches: trunk
changeset: 486053:ceaab652c756
user: adrianp <adrianp%pkgsrc.org@localhost>
date: Tue Dec 21 22:16:01 2004 +0000
description:
- Fix freeradius not starting because of missing directory cleaned out at
reboot.
- Issue spotted and patch sent to me from kbrand (at) dplanet.ch, thanks.
- Bumped PKGREVISION
diffstat:
net/freeradius/Makefile | 4 ++--
net/freeradius/files/radiusd.sh | 12 +++++++++++-
2 files changed, 13 insertions(+), 3 deletions(-)
diffs (41 lines):
diff -r f8c629b1c5a5 -r ceaab652c756 net/freeradius/Makefile
--- a/net/freeradius/Makefile Tue Dec 21 21:06:40 2004 +0000
+++ b/net/freeradius/Makefile Tue Dec 21 22:16:01 2004 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2004/12/19 18:59:12 jlam Exp $
+# $NetBSD: Makefile,v 1.20 2004/12/21 22:16:01 adrianp Exp $
DISTNAME= freeradius-1.0.1
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= net
MASTER_SITES= ftp://ftp.freeradius.org/pub/radius/ \
ftp://ftp.Awfulhak.org/pub/radius/
diff -r f8c629b1c5a5 -r ceaab652c756 net/freeradius/files/radiusd.sh
--- a/net/freeradius/files/radiusd.sh Tue Dec 21 21:06:40 2004 +0000
+++ b/net/freeradius/files/radiusd.sh Tue Dec 21 22:16:01 2004 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: radiusd.sh,v 1.2 2004/09/23 19:51:22 adrianp Exp $
+# $NetBSD: radiusd.sh,v 1.3 2004/12/21 22:16:01 adrianp Exp $
#
# PROVIDE: radiusd
# REQUIRE: network
@@ -14,6 +14,16 @@
name="radiusd"
command="@PREFIX@/sbin/radiusd"
pidfile="@VARBASE@/run/radiusd/radiusd.pid"
+start_precmd="radiusd_precmd"
+
+radiusd_precmd()
+{
+ if [ ! -d @VARBASE@/run/radiusd ]; then
+ @MKDIR@ @VARBASE@/run/radiusd
+ @CHMOD@ 0750 @VARBASE@/run/radiusd
+ @CHOWN@ root:wheel @VARBASE@/run/radiusd
+ fi
+}
if [ -f /etc/rc.subr ]
then
Home |
Main Index |
Thread Index |
Old Index