summaryrefslogtreecommitdiff
path: root/net/freeradius
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2004-12-21 22:16:01 +0000
committeradrianp <adrianp@pkgsrc.org>2004-12-21 22:16:01 +0000
commit62774c15a6901fdb526e362afb3e60d86302669b (patch)
tree8bf217dd886399ce18671a38f1807b79c1ae8dba /net/freeradius
parentc13784265a35cacd3321e857b5c5da7014f1bc18 (diff)
downloadpkgsrc-62774c15a6901fdb526e362afb3e60d86302669b.tar.gz
- 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 (limited to 'net/freeradius')
-rw-r--r--net/freeradius/Makefile4
-rw-r--r--net/freeradius/files/radiusd.sh12
2 files changed, 13 insertions, 3 deletions
diff --git a/net/freeradius/Makefile b/net/freeradius/Makefile
index 7fd46ef17fa..6a105f30b05 100644
--- a/net/freeradius/Makefile
+++ b/net/freeradius/Makefile
@@ -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 --git a/net/freeradius/files/radiusd.sh b/net/freeradius/files/radiusd.sh
index c434a21396d..6190cfe04c8 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.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 @@ fi
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