summaryrefslogtreecommitdiff
path: root/net-dialup/cistronradius
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-dialup/cistronradius
reinit the tree, so we can have metadata
Diffstat (limited to 'net-dialup/cistronradius')
-rw-r--r--net-dialup/cistronradius/Manifest7
-rw-r--r--net-dialup/cistronradius/cistronradius-1.6.8-r2.ebuild48
-rw-r--r--net-dialup/cistronradius/files/cistronradius-1.6.8-gcc41.patch11
-rw-r--r--net-dialup/cistronradius/files/cistronradius.rc34
-rw-r--r--net-dialup/cistronradius/metadata.xml8
5 files changed, 108 insertions, 0 deletions
diff --git a/net-dialup/cistronradius/Manifest b/net-dialup/cistronradius/Manifest
new file mode 100644
index 000000000000..e3f968d476cb
--- /dev/null
+++ b/net-dialup/cistronradius/Manifest
@@ -0,0 +1,7 @@
+AUX cistronradius-1.6.8-gcc41.patch 452 SHA256 c534985f74b9404059877f03b62de86ecb8120055a9f9ed838f507f81cde218e SHA512 c99ecdaa8bb9e1152c58f8a5cce79e3af058825de1b6818679e059b1c98e0ed72640dc5cdcf6c66a7b5f91792208bd1b0d4ede2c753f5f8dacc1ed4c64091f37 WHIRLPOOL 6a78b1ca1fd0827a59f94fb9f33bf625d569acbe8e1b398360714244f5b529a28dbf0cb763549c1ed02f54ecd7d168777573024e0e4fa719fe941b99fd4e78b3
+AUX cistronradius.rc 716 SHA256 fe034ca3b07c43c65e74f797c96e8d7c2bf9e3213e539a4ad0624848a8798aff SHA512 d86029f75b922f2b382f34e219462f898ffb1ca8d0517d7a57b33b239396906a89da8afa5667257995aa7bac2f3f7eda4e5284672682405d131d2cdb79491fc3 WHIRLPOOL 6a44d6c89aa2bde60069bb672fa83fc1d95c99f9ed7b1e337db1504689cd40a847738eddc0a086fc1e79aa25f425ce840f23a81b17c844c016b64645b601858a
+DIST radiusd-cistron-1.6.8.tar.gz 199459 SHA256 ed08ff8fb3f49ac5a921c2e23b639e9b87db85e3e6105953c5a921b9a2cc6150 SHA512 9d42ec39eaa78f0c35ca036cf891d45a99c38af03416e4bca2d9d883a9aac818a0da1a52b5c1d4e54a1bdb108b237ed92c16309b61b7aa24f8782d0d0e0f8de5 WHIRLPOOL fd4515b9d2b66624ae23f6df111a4b22fa5f25853337f6263c56e401e16a5af4e1a18b261950402504d477ad51bf6b1da8baa5ad87bca8a4398b6af97a716587
+EBUILD cistronradius-1.6.8-r2.ebuild 1155 SHA256 a8bb2445a58fa5eb605ef453892da2f22c96cf309b4bbd0ca141b8e4626daf2f SHA512 3a292d873b36eb0faa0d95314816cbcbb6f585603be3b506c82bebe2912e80e3b47b955aee2d86cf4b60d6824c7b9ad0d1695b04d746fcd79e56f5acaba20360 WHIRLPOOL c537ce78bba1f3a7949449c7d32466f2bba01bf9bfb87e3f11e9c240a0d5c416c2f716b2f2ba55962d6fa35edad1f0f5d2c2db01407b95a745eff6fe610d4b5d
+MISC ChangeLog 2992 SHA256 b25c114ccb5117b70f1a172fdd36f011b5dbd89733c03d2eaa3dc00b01e8c381 SHA512 189236d8327da4b226cf5b22921ddaf1bc298abec392bc7c91e0da8bb1c4a2b2694662c6e3895d0e26da3346dee3a20942b1a173355d0569583d8af2f9cfa676 WHIRLPOOL 3684d493a39039a7061119ae9d3c0811df367d69179954392a7cf708d3e459d4896211d95f9eb6716c30f8e783263d3173969c3cea971ca74aa7fda8303de7a5
+MISC ChangeLog-2015 3080 SHA256 822bc28d91c5ddd9d16738266d818c069ed42af0be0b5be0da423c175ccd567c SHA512 3c66c3bf17f6493f52bee80a03160a1f29ccc270d2281d0c973b80d4b5dd2260fadba8b7b1f1ddb2876f1002e1b69e224f0e42dd42e40b2ea76e60a383b59d57 WHIRLPOOL 181974be304c99c4f9402a48a9445ef1727eb25d809523ac705743cde1352ec1f6e83cfdf61ccf2990dfe61ea22108f6f7954fd84cf446bfaf7f47821f8e72de
+MISC metadata.xml 296 SHA256 46421abfbedbe680840a6005305fef2508364408baab6f1c6c1f3e4d751200b4 SHA512 46978f543efeb23b4fe607a276f36658ca471dc3b6b4558f836971ea1074676586bdf069ff28efb45aa49ca8d874af66ed4ba93bdc82efca90ad4d896929b49f WHIRLPOOL 6f167d8e47fcd876942ce1a822cb03c2d5aee3b982f425fd20a492d0a79656d8f1923756237cacbf002275f02ccefba3947b094b6f648e1b9c5fd6ae5aa4eae3
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..7937bca89361
--- /dev/null
+++ b/net-dialup/cistronradius/cistronradius-1.6.8-r2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Authentication and accounting server for terminal servers using RADIUS"
+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-1.6.8-gcc41.patch b/net-dialup/cistronradius/files/cistronradius-1.6.8-gcc41.patch
new file mode 100644
index 000000000000..7600df739c7b
--- /dev/null
+++ b/net-dialup/cistronradius/files/cistronradius-1.6.8-gcc41.patch
@@ -0,0 +1,11 @@
+diff -Nru radiusd-cistron-1.6.8.orig/src/radiusd.h radiusd-cistron-1.6.8/src/radiusd.h
+--- radiusd-cistron-1.6.8.orig/src/radiusd.h 2003-12-08 18:12:22.000000000 +0200
++++ radiusd-cistron-1.6.8/src/radiusd.h 2006-09-21 15:33:05.000000000 +0300
+@@ -204,7 +204,6 @@
+ extern char *radwtmp_path;
+ extern UINT4 expiration_seconds;
+ extern UINT4 warning_seconds;
+-extern int radius_pid;
+ extern int use_dbm;
+ extern int use_dns;
+ extern int use_wtmp;
diff --git a/net-dialup/cistronradius/files/cistronradius.rc b/net-dialup/cistronradius/files/cistronradius.rc
new file mode 100644
index 000000000000..9155ee59b6a5
--- /dev/null
+++ b/net-dialup/cistronradius/files/cistronradius.rc
@@ -0,0 +1,34 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -x /usr/sbin/radiusd ] ; then
+ eerror "The radius daemon was not found."
+ eerror "Please (re)emerge cistronradius."
+ return 1
+ fi
+
+ if [ ! -e /etc/raddb/clients ] ; then
+ eerror "No /etc/raddb/clients file found."
+ eerror "Please create the file and retry."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting Cistron Radius"
+ start-stop-daemon --start --quiet --exec /usr/sbin/radiusd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Cistron Radius"
+ start-stop-daemon --stop --quiet --pidfile /var/run/radiusd.pid
+ eend $?
+}
diff --git a/net-dialup/cistronradius/metadata.xml b/net-dialup/cistronradius/metadata.xml
new file mode 100644
index 000000000000..2f725d0fbf41
--- /dev/null
+++ b/net-dialup/cistronradius/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+<longdescription>
+An authentication and accounting server for terminal servers that speak the RADIUS protocol.
+</longdescription>
+</pkgmetadata>