net-dialup/cistronradius: use #!/sbin/openrc-run instead of #!/sbin/runscript
authorAustin English <wizardedit@gentoo.org>
Thu, 28 Apr 2016 20:07:12 +0000 (15:07 -0500)
committerAustin English <wizardedit@gentoo.org>
Thu, 28 Apr 2016 21:59:32 +0000 (16:59 -0500)
Gentoo-Bug: https://bugs.gentoo.org/573846

Package-Manager: portage-2.2.26

net-dialup/cistronradius/cistronradius-1.6.8-r2.ebuild [new file with mode: 0644]
net-dialup/cistronradius/files/cistronradius.rc

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 (file)
index 0000000..5461d00
--- /dev/null
@@ -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
+}
index cc4b7d3deb9e2252e7a768979637dc57bcfb5c6b..3154c6affdc8a6b75252d62f21af07fa7c44fb8d 100644 (file)
@@ -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$