1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils subversion
7 DESCRIPTION="Radius/RadSec Proxy Server - developer trunk from SVN"
8 HOMEPAGE="http://software.uninett.no/radsecproxy"
9 ESVN_REPO_URI="https://svn.testnett.uninett.no/${PN}/trunk"
12 LICENSE="public-domain"
17 DEPEND="dev-libs/openssl"
18 RDEPEND="dev-libs/openssl"
24 touch AUTHORS COPYING ChangeLog INSTALL NEWS README
25 autoreconf --force --install
26 mkdir -pv "${S}"/init.d "${S}"/conf.d
27 cat >"${S}"/init.d/"${PN}" << EOF
35 CMD="/usr/sbin/radsecproxy"
38 ebegin "Starting radsecproxy"
39 if test -n "\${OPTS}" ; then
40 start-stop-daemon --chuid \${CMDUSER:-nobody} --start --exec \${CMD} -- \${OPTS}
42 start-stop-daemon --chuid \${CMDUSER:-nobody} --start --exec \${CMD}
48 ebegin "Stopping radsecproxy"
49 start-stop-daemon --stop --exec \${CMD}
53 cat >"${S}"/conf.d/"${PN}" << EOF
54 # Options for radsecproxy
56 # -d specifies the debug level.
58 # It must be set to 1, 2, 3 or 4, where 1 logs
59 # only serious errors, and 4 logs everything.
61 # The default is 3 which logs errors, warnings and
62 # some informational messages.
71 doinitd "${S}"/init.d/"${PN}"
72 doconfd "${S}"/conf.d/"${PN}"
73 dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README
78 elog "Example config exists as /etc/radsecproxy.conf-example"
79 elog "Copy this to /etc/radsecproxy.conf and edit to suit your needs"