summaryrefslogtreecommitdiff
path: root/net/gnu-radius/files
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-11-21 04:40:58 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-11-21 04:40:58 +0000
commit77715780c277f3ee0546a18d68d098ae8f19d13a (patch)
treed708a54abe732a11a6ef1208b76f2b4038edce39 /net/gnu-radius/files
parent- Update to 2.0 (diff)
- Update to 1.2.95
PR: ports/74108 Submitted by: Andrey Pavlenko <lance@merlin.net.ua> (maintainer)
Notes
Notes: svn path=/head/; revision=122060
Diffstat (limited to 'net/gnu-radius/files')
-rw-r--r--net/gnu-radius/files/gnu-radius.sh.tmpl11
-rw-r--r--net/gnu-radius/files/radiusd.sh27
2 files changed, 27 insertions, 11 deletions
diff --git a/net/gnu-radius/files/gnu-radius.sh.tmpl b/net/gnu-radius/files/gnu-radius.sh.tmpl
deleted file mode 100644
index 894832c9ce8f..000000000000
--- a/net/gnu-radius/files/gnu-radius.sh.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-case "$1" in
-stop)
- killall radiusd
- ;;
-*)
- if [ -x !!PREFIX!!/sbin/radiusd ]; then
- !!PREFIX!!/sbin/radiusd -y && echo -n ' radiusd'
- fi
- ;;
-esac
diff --git a/net/gnu-radius/files/radiusd.sh b/net/gnu-radius/files/radiusd.sh
new file mode 100644
index 000000000000..70411d5b8596
--- /dev/null
+++ b/net/gnu-radius/files/radiusd.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# PROVIDE radiusd
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: FreeBSD shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable radiusd:
+#
+# radiusd_enable="YES"
+#
+
+. %%RC_SUBR%%
+
+name=radiusd
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/radiusd
+radiusd_config=${radiusd_config:-"%%PREFIX%%/etc/raddb/config"}
+required_files=${radiusd_config}
+pidfile=/var/run/radiusd.pid
+
+radiusd_enable=${radiusd_enable:-"NO"}
+
+load_rc_config $name
+run_rc_command "$1"