Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238751 - radsecproxy-1.1 - new ebuild
Summary: radsecproxy-1.1 - new ebuild
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://software.uninett.no/radsecproxy/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-26 11:12 UTC by Philipp Wehrheim
Modified: 2008-09-26 15:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Wehrheim 2008-09-26 11:12:30 UTC
Hey folks,

attached is a ebuild for the radsecproxy-1.1 (radius proxy with tls support).
The ebuild is based on a ebuild I found on tinderbox.gentoo. for Version
1.0



Reproducible: Always




cat radsecproxy-1.1.ebuild 
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Radius/RadSec Proxy Server"
HOMEPAGE="http://software.uninett.no/radsecproxy"
SRC_URI="http://software.uninett.no/radsecproxy/${P}.tar.gz"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~arm ~mips ~m68k"
IUSE=""

DEPEND="dev-libs/openssl"
RDEPEND="dev-libs/openssl"

src_unpack() {
        unpack ${A}
        mkdir -pv "${S}"/init.d "${S}"/conf.d
        cat >"${S}"/init.d/"${PN}" << EOF
#! /sbin/runscript

depend() {
        use logger dns
        need net
}

CMD="/usr/sbin/radsecproxy"

start() {
        ebegin "Starting radsecproxy"
        if test -n "\${OPTS}" ; then
                start-stop-daemon --chuid \${CMDUSER:-nobody} --start --exec \${CMD}   --
\${OPTS}
        else
                start-stop-daemon --chuid \${CMDUSER:-nobody} --start --exec \${CMD}
        fi
        eend \${?}
}

stop() {
        ebegin "Stopping radsecproxy"
        start-stop-daemon --stop --exec \${CMD}
        eend \${?}
}
EOF
        cat >"${S}"/conf.d/"${PN}" << EOF
# Options for radsecproxy
#
# -d specifies the debug level.
# 
# It must be set to 1, 2, 3 or  4, where  1 logs
# only  serious errors, and 4 logs everything.
#
# The default is 3 which logs errors, warnings and
# some informational messages.

# OPTS="-d 4"'
# CMDUSER="nobody"
EOF
}

src_install() {
        einstall || die
        doinitd "${S}"/init.d/"${PN}"
        doconfd "${S}"/conf.d/"${PN}"
        dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README
}

pkg_postinst () {
        einfo
        elog "Example config exists as /etc/radsecproxy.conf-example"
        elog "Copy this to /etc/radsecproxy.conf and edit to suit your needs"
        einfo
}