summaryrefslogtreecommitdiff
path: root/packaging/pkgsrc/net/radsecproxy/files
diff options
context:
space:
mode:
authorkolla <kolla>2007-11-05 12:28:51 +0000
committerkolla <kolla@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-11-05 12:28:51 +0000
commit1ca6e2a3db010e6468297cb35069ad3b0f38a215 (patch)
tree664bf22af9f7133c0faf029d19584cbc37d7d322 /packaging/pkgsrc/net/radsecproxy/files
parent368241fa65f11d6c2e8d29249406c5259d664b05 (diff)
Fjernet gamle gentoo-greier
Lagt til portage (gentoo) med de ulike versjonene Lagt til pkgsrc som brukes blant annet av NetBSD git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@193 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'packaging/pkgsrc/net/radsecproxy/files')
-rwxr-xr-xpackaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh b/packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh
new file mode 100755
index 0000000..e16ef59
--- /dev/null
+++ b/packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# PROVIDE: radsecproxy
+# REQUIRE: network
+#
+
+if [ -f /etc/rc.subr ]
+then
+ . /etc/rc.subr
+fi
+
+name="radsecproxy"
+rcvar=${name}
+command="/usr/pkg/sbin/${name}"
+command_args="-c /usr/pkg/etc/${name}/${name}.conf"
+
+if [ -f /etc/rc.subr ]
+then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n ' ${name}'
+ exec ${command} ${command_args}
+fi