1 |
commit: 919012ef6bffd81b330e53f015223f269b0872f6 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 20:07:12 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 21:59:32 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=919012ef |
7 |
|
8 |
net-dialup/cistronradius: use #!/sbin/openrc-run instead of #!/sbin/runscript |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/573846 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
.../cistronradius/cistronradius-1.6.8-r2.ebuild | 49 ++++++++++++++++++++++ |
15 |
net-dialup/cistronradius/files/cistronradius.rc | 4 +- |
16 |
2 files changed, 51 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-dialup/cistronradius/cistronradius-1.6.8-r2.ebuild b/net-dialup/cistronradius/cistronradius-1.6.8-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 0000000..5461d00 |
21 |
--- /dev/null |
22 |
+++ b/net-dialup/cistronradius/cistronradius-1.6.8-r2.ebuild |
23 |
@@ -0,0 +1,49 @@ |
24 |
+# Copyright 1999-2016 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+# $Id$ |
27 |
+ |
28 |
+EAPI=5 |
29 |
+ |
30 |
+inherit eutils toolchain-funcs |
31 |
+ |
32 |
+DESCRIPTION="Authentication and accounting server for terminal servers that speak the RADIUS protocol" |
33 |
+HOMEPAGE="http://www.radius.cistron.nl/" |
34 |
+SRC_URI="ftp://ftp.radius.cistron.nl/pub/radius/radiusd-cistron-${PV}.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="-* x86" |
39 |
+ |
40 |
+DEPEND=" |
41 |
+ !net-dialup/freeradius |
42 |
+ !net-dialup/gnuradius" |
43 |
+RDEPEND="${DEPEND}" |
44 |
+ |
45 |
+S="${WORKDIR}/radiusd-cistron-${PV}" |
46 |
+ |
47 |
+src_prepare() { |
48 |
+ epatch "${FILESDIR}/${P}-gcc41.patch" |
49 |
+ sed -i -e "s:SHAREDIR/::g" raddb/dictionary || die |
50 |
+ mv src/checkrad.pl src/checkrad || die |
51 |
+ |
52 |
+ epatch_user |
53 |
+} |
54 |
+ |
55 |
+src_compile() { |
56 |
+ emake -C src \ |
57 |
+ CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
58 |
+ BINDIR=/usr/bin SBINDIR=/usr/sbin \ |
59 |
+ MANDIR=/usr/share/man SHAREDIR=/usr/share/radius |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ insinto /etc/raddb |
64 |
+ doins raddb/* |
65 |
+ dodoc README doc/{ChangeLog,FAQ.txt,README*} |
66 |
+ doman doc/{*.1,*.8,*.5rad,*.8rad} |
67 |
+ |
68 |
+ dosbin src/{checkrad,radiusd,radrelay} |
69 |
+ dobin src/{radclient,radlast,radtest,radwho,radzap} |
70 |
+ |
71 |
+ newinitd "${FILESDIR}/cistronradius.rc" cistronradius |
72 |
+} |
73 |
|
74 |
diff --git a/net-dialup/cistronradius/files/cistronradius.rc b/net-dialup/cistronradius/files/cistronradius.rc |
75 |
index cc4b7d3..3154c6a 100644 |
76 |
--- a/net-dialup/cistronradius/files/cistronradius.rc |
77 |
+++ b/net-dialup/cistronradius/files/cistronradius.rc |
78 |
@@ -1,5 +1,5 @@ |
79 |
-#!/sbin/runscript |
80 |
-# Copyright 1999-2004 Gentoo Foundation |
81 |
+#!/sbin/openrc-run |
82 |
+# Copyright 1999-2016 Gentoo Foundation |
83 |
# Distributed under the terms of the GNU General Public License v2 |
84 |
# $Id$ |