aboutsummaryrefslogtreecommitdiff
path: root/net/radiator/files
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2015-09-23 01:33:50 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2015-09-23 01:33:50 +0000
commit4d88e8c0fadb73d834b6d840a7229efc0f8de754 (patch)
treeaa597495827858bd9560c9ca6f598bcd9f7392c4 /net/radiator/files
parentd40787583d69a422f21dd341cdf864daf86cb8fe (diff)
downloadports-4d88e8c0fadb73d834b6d840a7229efc0f8de754.tar.gz
ports-4d88e8c0fadb73d834b6d840a7229efc0f8de754.zip
1: Upgrade to 4.14.
2: install rc file. 3: install some sample config files. 4: sort pkg-plist. Approved by: maintainer
Notes
Notes: svn path=/head/; revision=397602
Diffstat (limited to 'net/radiator/files')
-rw-r--r--net/radiator/files/patch-radius.cfg20
-rw-r--r--net/radiator/files/radiator.in49
2 files changed, 69 insertions, 0 deletions
diff --git a/net/radiator/files/patch-radius.cfg b/net/radiator/files/patch-radius.cfg
new file mode 100644
index 000000000000..b6e68a1b4d76
--- /dev/null
+++ b/net/radiator/files/patch-radius.cfg
@@ -0,0 +1,20 @@
+--- radius.cfg.orig 2015-09-22 08:35:02 UTC
++++ radius.cfg
+@@ -92,7 +92,7 @@ LogStdout
+ # The name of the file where the radiusd PID will be
+ # written after startup. Can contain special filename chars.
+ # Defaults to %L/radiusd.pid
+-PidFile /tmp/radiusd.pid
++#PidFile /tmp/radiusd.pid
+
+ # AuthPort specifies the port to list on for authentication requests
+ # Can be a numeric port number or a service name from /etc/services
+@@ -144,7 +144,7 @@ DbDir .
+ # need the old ascend attributes, name both dictionaries in the DictionaryFile
+ # Caution: changing the dictionary can stop the test suite test.pl
+ # from working
+-#DictionaryFile %D/dictionary,%D/dictionary.ascend
++DictionaryFile %%LOCALBASE%%/etc/radiator/dictionary
+
+ # You can adjust the length of the Radius socket queues with
+ # SocketQueueLength. You should only need to do this if you are handling
diff --git a/net/radiator/files/radiator.in b/net/radiator/files/radiator.in
new file mode 100644
index 000000000000..c61f2cd3f848
--- /dev/null
+++ b/net/radiator/files/radiator.in
@@ -0,0 +1,49 @@
+#!/bin/sh
+
+# PROVIDE: radiator
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: FreeBSD shutdown
+
+# Install this script as %%LOCALBASE%%/etc/rc.d/radiator
+# Add the following line to /etc/rc.conf to enable "radiator":
+#
+#radiator_enable="YES"
+#
+# And if necessary:
+#
+#radiator_config="/path/to/radiator.conf"
+#(default config location is %%LOCALBASE%%/etc/radiator/radius.cfg)
+#
+#radiator_flags=""
+#
+# Start %%LOCALBASE%%/etc/rc.d/radiator to see a list of options.
+
+. /etc/rc.subr
+
+name="radiator"
+rcvar=`set_rcvar`
+pidfile="/var/run/radiator.pid"
+command="%%LOCALBASE%%/bin/radiusd"
+procname="%%LOCALBASE%%/bin/perl"
+extra_commands="reload"
+
+stop_postcmd=stop_postcmd
+
+stop_postcmd()
+{
+ rm -f $pidfile
+}
+
+load_rc_config $name
+
+: ${radiator_enable="NO"}
+: ${radiator_flags=""}
+: ${radiator_config="%%LOCALBASE%%/etc/radiator/radius.cfg"}
+
+required_files="$radiator_config"
+
+command_args="-pid_file=${pidfile} -config_file=$radiator_config -daemon"
+
+run_rc_command "$1"
+