From 919012ef6bffd81b330e53f015223f269b0872f6 Mon Sep 17 00:00:00 2001 From: Austin English Date: Thu, 28 Apr 2016 15:07:12 -0500 Subject: net-dialup/cistronradius: use #!/sbin/openrc-run instead of #!/sbin/runscript Gentoo-Bug: https://bugs.gentoo.org/573846 Package-Manager: portage-2.2.26 --- .../cistronradius/cistronradius-1.6.8-r2.ebuild | 49 ++++++++++++++++++++++ net-dialup/cistronradius/files/cistronradius.rc | 4 +- 2 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 net-dialup/cistronradius/cistronradius-1.6.8-r2.ebuild diff --git a/net-dialup/cistronradius/cistronradius-1.6.8-r2.ebuild b/net-dialup/cistronradius/cistronradius-1.6.8-r2.ebuild new file mode 100644 index 000000000000..5461d001eae9 --- /dev/null +++ b/net-dialup/cistronradius/cistronradius-1.6.8-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="Authentication and accounting server for terminal servers that speak the RADIUS protocol" +HOMEPAGE="http://www.radius.cistron.nl/" +SRC_URI="ftp://ftp.radius.cistron.nl/pub/radius/radiusd-cistron-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* x86" + +DEPEND=" + !net-dialup/freeradius + !net-dialup/gnuradius" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/radiusd-cistron-${PV}" + +src_prepare() { + epatch "${FILESDIR}/${P}-gcc41.patch" + sed -i -e "s:SHAREDIR/::g" raddb/dictionary || die + mv src/checkrad.pl src/checkrad || die + + epatch_user +} + +src_compile() { + emake -C src \ + CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ + BINDIR=/usr/bin SBINDIR=/usr/sbin \ + MANDIR=/usr/share/man SHAREDIR=/usr/share/radius +} + +src_install() { + insinto /etc/raddb + doins raddb/* + dodoc README doc/{ChangeLog,FAQ.txt,README*} + doman doc/{*.1,*.8,*.5rad,*.8rad} + + dosbin src/{checkrad,radiusd,radrelay} + dobin src/{radclient,radlast,radtest,radwho,radzap} + + newinitd "${FILESDIR}/cistronradius.rc" cistronradius +} diff --git a/net-dialup/cistronradius/files/cistronradius.rc b/net-dialup/cistronradius/files/cistronradius.rc index cc4b7d3deb9e..3154c6affdc8 100644 --- a/net-dialup/cistronradius/files/cistronradius.rc +++ b/net-dialup/cistronradius/files/cistronradius.rc @@ -1,5 +1,5 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -- cgit v1.2.3-65-gdbad