1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils toolchain-funcs
8 DESCRIPTION="Authentication and accounting server for terminal servers using RADIUS"
9 HOMEPAGE="http://www.radius.cistron.nl/"
10 SRC_URI="ftp://ftp.radius.cistron.nl/pub/radius/radiusd-cistron-${PV}.tar.gz"
17 !net-dialup/freeradius
18 !net-dialup/gnuradius"
21 S="${WORKDIR}/radiusd-cistron-${PV}"
24 epatch "${FILESDIR}/${P}-gcc41.patch"
25 sed -i -e "s:SHAREDIR/::g" raddb/dictionary || die
26 mv src/checkrad.pl src/checkrad || die
33 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
34 BINDIR=/usr/bin SBINDIR=/usr/sbin \
35 MANDIR=/usr/share/man SHAREDIR=/usr/share/radius
41 dodoc README doc/{ChangeLog,FAQ.txt,README*}
42 doman doc/{*.1,*.8,*.5rad,*.8rad}
44 dosbin src/{checkrad,radiusd,radrelay}
45 dobin src/{radclient,radlast,radtest,radwho,radzap}
47 newinitd "${FILESDIR}/cistronradius.rc" cistronradius