diff options
author | adrianp <adrianp> | 2004-12-21 22:16:01 +0000 |
---|---|---|
committer | adrianp <adrianp> | 2004-12-21 22:16:01 +0000 |
commit | 1b18e3b22369126ff7fa6b10d82785db49f05df4 (patch) | |
tree | 8bf217dd886399ce18671a38f1807b79c1ae8dba /net | |
parent | 1059cd6d69cb1c4bec5454111d9f7b90e6f080c3 (diff) | |
download | pkgsrc-1b18e3b22369126ff7fa6b10d82785db49f05df4.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')
-rw-r--r-- | net/freeradius/Makefile | 4 | ||||
-rw-r--r-- | net/freeradius/files/radiusd.sh | 12 |
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 |