diff options
author | Lucile Quirion <lucile.quirion@savoirfairelinux.com> | 2016-06-14 16:36:49 -0400 |
---|---|---|
committer | Lucile Quirion <lucile.quirion@savoirfairelinux.com> | 2016-07-12 11:37:05 -0400 |
commit | 0871991d8d732fc79c04259ec80da0f4a3d14fc6 (patch) | |
tree | 13cff236ac7d56f97b71959c6f691e42df5c7ca8 /net/freeradius3/files | |
parent | a1f073774a3ba117c0c86781b9c58c97f7cdc811 (diff) |
freeradius3: add package
freeradius-server version 2.x has been marked End-Of-Life.
This commit adds freeradius-server version 3.0.11 in a new package.
This commit also introduces the option "freeradius3-default"
which activate all modules needed to run radiusd with its default
configuration.
- rlm_digest (HTTP Digest Authentication) has been added
- rlm_unix (System Authentication) has been added
- rlm_attr_rewrite has been deleted
Note that SQL and LDAP support has been disabled.
Signed-off-by: Lucile Quirion <lucile.quirion@savoirfairelinux.com>
Diffstat (limited to 'net/freeradius3/files')
-rw-r--r-- | net/freeradius3/files/radiusd.init | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net/freeradius3/files/radiusd.init b/net/freeradius3/files/radiusd.init new file mode 100644 index 000000000..e529a8891 --- /dev/null +++ b/net/freeradius3/files/radiusd.init @@ -0,0 +1,27 @@ +#!/bin/sh /etc/rc.common +# +# Copyright (C) 2006-2015 OpenWrt.org +# + +USE_PROCD=1 + +START=50 + +NAME=radiusd +PROG=/usr/sbin/radiusd +DEFAULT=/etc/default/radiusd + +start_service() +{ + [ -f $DEFAULT ] && . $DEFAULT + mkdir -p /var/log + mkdir -p /var/run + mkdir -p /var/db/radacct + + procd_open_instance + procd_set_param command $PROG + [ -n "$IPADDR" ] && procd_append_param command -i $IPADDR + [ -n "$OPTIONS" ] && procd_append_param command $OPTIONS + procd_set_param respawn + procd_close_instance +} |