summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2006-11-18 09:13:54 +0000
committerAlin Năstac <mrness@gentoo.org>2006-11-18 09:13:54 +0000
commit16c283e12b83abc6c936fd888d6c40ea6e8ee37c (patch)
tree006d8c56a9cfd82758cb4c0233fbdfc49c38972e /net-dialup/freeradius
parentRemove obsolete version. (diff)
downloadhistorical-16c283e12b83abc6c936fd888d6c40ea6e8ee37c.tar.gz
historical-16c283e12b83abc6c936fd888d6c40ea6e8ee37c.tar.bz2
historical-16c283e12b83abc6c936fd888d6c40ea6e8ee37c.zip
Remove obsolete version.
Package-Manager: portage-2.1.1-r1
Diffstat (limited to 'net-dialup/freeradius')
-rw-r--r--net-dialup/freeradius/Manifest38
-rw-r--r--net-dialup/freeradius/files/digest-freeradius-1.1.1-r13
-rw-r--r--net-dialup/freeradius/files/freeradius-1.1.1-libradius_install.patch12
-rw-r--r--net-dialup/freeradius/files/freeradius-1.1.1-versionless-la-files.patch28
-rw-r--r--net-dialup/freeradius/files/freeradius-1.1.1-whole-archive-gentoo.patch36
-rw-r--r--net-dialup/freeradius/files/radwatch.init63
-rw-r--r--net-dialup/freeradius/freeradius-1.1.1-r1.ebuild166
7 files changed, 7 insertions, 339 deletions
diff --git a/net-dialup/freeradius/Manifest b/net-dialup/freeradius/Manifest
index 61953cb61ae7..05429f655e0a 100644
--- a/net-dialup/freeradius/Manifest
+++ b/net-dialup/freeradius/Manifest
@@ -1,18 +1,6 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-AUX freeradius-1.1.1-libradius_install.patch 563 RMD160 515871e2737a1425a530763adac0e8ece03ecd63 SHA1 9d256bc1a2cea71d603dfb30d5dc397579081d0d SHA256 a69ba1d0af46281da2b72280dd33e81bf89ea8083a9425d84d21da228ccd182b
-MD5 89b8fea5ed51f1e569af0ca7adf7827a files/freeradius-1.1.1-libradius_install.patch 563
-RMD160 515871e2737a1425a530763adac0e8ece03ecd63 files/freeradius-1.1.1-libradius_install.patch 563
-SHA256 a69ba1d0af46281da2b72280dd33e81bf89ea8083a9425d84d21da228ccd182b files/freeradius-1.1.1-libradius_install.patch 563
-AUX freeradius-1.1.1-versionless-la-files.patch 1592 RMD160 f01b327cc3d6f3a6ff70b15bade2ac8e7f01cd8e SHA1 bc79a95dea04d487490839b4c642843adb1c7968 SHA256 f454a28a61aea195ed95b0637ffbd0b5cb1bbcf8e6636307aef96ef506712c60
-MD5 542dfb5aa04290906b1e9fd5ef99673b files/freeradius-1.1.1-versionless-la-files.patch 1592
-RMD160 f01b327cc3d6f3a6ff70b15bade2ac8e7f01cd8e files/freeradius-1.1.1-versionless-la-files.patch 1592
-SHA256 f454a28a61aea195ed95b0637ffbd0b5cb1bbcf8e6636307aef96ef506712c60 files/freeradius-1.1.1-versionless-la-files.patch 1592
-AUX freeradius-1.1.1-whole-archive-gentoo.patch 1728 RMD160 c301351431202ef2edcf8469c599cf720b93ce32 SHA1 95cb15ddfa1ad098aef803b7a2a2135d547fe50b SHA256 8a1a086a724aea110ded4b3baa7292ad2f71b205bbb7335ec17868c49f9921d6
-MD5 73e25b78f2cdb07ed8bbddbcdb9ac08b files/freeradius-1.1.1-whole-archive-gentoo.patch 1728
-RMD160 c301351431202ef2edcf8469c599cf720b93ce32 files/freeradius-1.1.1-whole-archive-gentoo.patch 1728
-SHA256 8a1a086a724aea110ded4b3baa7292ad2f71b205bbb7335ec17868c49f9921d6 files/freeradius-1.1.1-whole-archive-gentoo.patch 1728
AUX freeradius-1.1.3-nostrip.patch 363 RMD160 4bfd89636fe7839bc48c034460ce12665bcab40f SHA1 8fb6d4f1e5ac76ed8bceb856423545cf267032b8 SHA256 9314dc0dcd6899300e05d6ea5f6d04d082d1f2b178a0bee002d4eb9f10ac8d51
MD5 220be96adb949dd48e1c9ef40b31a0db files/freeradius-1.1.3-nostrip.patch 363
RMD160 4bfd89636fe7839bc48c034460ce12665bcab40f files/freeradius-1.1.3-nostrip.patch 363
@@ -29,38 +17,26 @@ AUX radius.init 1787 RMD160 67724550635891eff04fd591db4127ced20c8306 SHA1 48853b
MD5 d86a0470be160587816802aaee18a368 files/radius.init 1787
RMD160 67724550635891eff04fd591db4127ced20c8306 files/radius.init 1787
SHA256 33b299029f59a09a30ac4384602af30304b9991f925881e3f3446f629b66bf70 files/radius.init 1787
-AUX radwatch.init 1675 RMD160 775b6b12a64a4eb862027dab006d689b5138e3c7 SHA1 632777631218896a981505d79b18e0da0e360526 SHA256 821a03a93b9d0f75559ac9a76b2444c5c4e62a89f7fd578dd7d1157a55ceff9e
-MD5 adc7e9af3a2ab37f1ab021de3e279d41 files/radwatch.init 1675
-RMD160 775b6b12a64a4eb862027dab006d689b5138e3c7 files/radwatch.init 1675
-SHA256 821a03a93b9d0f75559ac9a76b2444c5c4e62a89f7fd578dd7d1157a55ceff9e files/radwatch.init 1675
-DIST freeradius-1.1.1.tar.gz 2358196 RMD160 f9947c299ec2a7d0189d0718edf10c8dc5783119 SHA1 efc52b20fa88148b8ebf58fa0ae5c36df204b703 SHA256 413bf3181b35dc547c0bf8718603e5d706706d7da3618f5925566265c4d58388
DIST freeradius-1.1.3.tar.gz 3068204 RMD160 4ba264d2ed85e5300d48017d1e343b1db35fce90 SHA1 efd1d7d0f9bed69ec7c5e5a6a35477cb0b05bfb9 SHA256 f615f67fb807494892015e671593801fe3ac30c04740cd1dc8d2f18fc218da35
-EBUILD freeradius-1.1.1-r1.ebuild 4922 RMD160 2c47fbc680d822d2d79a3689c8135778f8240ad7 SHA1 d18138cdd9ace66438d8ceb474322387fd5f2285 SHA256 3b54f96e802c16d6f9fc4ab901edc03a1e2ae967ab3d22e956449657b8dcb433
-MD5 930026c080ec4dc4745d4dd4e4ab6f0c freeradius-1.1.1-r1.ebuild 4922
-RMD160 2c47fbc680d822d2d79a3689c8135778f8240ad7 freeradius-1.1.1-r1.ebuild 4922
-SHA256 3b54f96e802c16d6f9fc4ab901edc03a1e2ae967ab3d22e956449657b8dcb433 freeradius-1.1.1-r1.ebuild 4922
EBUILD freeradius-1.1.3-r1.ebuild 4833 RMD160 e7148922ab3550963e96a4180efea48b9c40871e SHA1 c0f04e3eb22b314380ea2a89bfce107e4f14a011 SHA256 f929039b3d449c33cf98cfe0654e69dbb2199b19b71eb5420c9224069a99df88
MD5 e30031e042fb7af55fa943a91947ffa8 freeradius-1.1.3-r1.ebuild 4833
RMD160 e7148922ab3550963e96a4180efea48b9c40871e freeradius-1.1.3-r1.ebuild 4833
SHA256 f929039b3d449c33cf98cfe0654e69dbb2199b19b71eb5420c9224069a99df88 freeradius-1.1.3-r1.ebuild 4833
-MISC ChangeLog 10226 RMD160 fb6d916d33a85a62423722d1bdfc8f256631c586 SHA1 d564df0be15aa1b2a51743a1879d24b154e8740c SHA256 b8235ba390fd45549d35678ef8a8f04ea077739184557b0acf2b0fb4856592af
-MD5 023b474f9e39ac4c1680557413803832 ChangeLog 10226
-RMD160 fb6d916d33a85a62423722d1bdfc8f256631c586 ChangeLog 10226
-SHA256 b8235ba390fd45549d35678ef8a8f04ea077739184557b0acf2b0fb4856592af ChangeLog 10226
+MISC ChangeLog 10513 RMD160 4e5b14c6c82ab9d51756c77807a33a1ab09544de SHA1 40e05916c51ca08bd5ca0f0a180cfceeb7caf132 SHA256 a8a3fb81724a2f69c1861f15e2dc184a781568993215f7820de4fd219e95e8b4
+MD5 e33f8b01a3ae5bc7cd71d848ce967d82 ChangeLog 10513
+RMD160 4e5b14c6c82ab9d51756c77807a33a1ab09544de ChangeLog 10513
+SHA256 a8a3fb81724a2f69c1861f15e2dc184a781568993215f7820de4fd219e95e8b4 ChangeLog 10513
MISC metadata.xml 252 RMD160 aaf9aae6ca234ce5c447d0a6c29d732a5b2a58f0 SHA1 6b1b24914e633321a409132870aea89053fac655 SHA256 5c0974054864b2e9a572cd3c30b97aadae0b2781da4dabec791e23afdfa5ee76
MD5 1542bf76e28581e9d6bcfdc75e46f33d metadata.xml 252
RMD160 aaf9aae6ca234ce5c447d0a6c29d732a5b2a58f0 metadata.xml 252
SHA256 5c0974054864b2e9a572cd3c30b97aadae0b2781da4dabec791e23afdfa5ee76 metadata.xml 252
-MD5 78ba22a9dfb7ab2532fe1f9271ce0e1c files/digest-freeradius-1.1.1-r1 253
-RMD160 d3086e496d5fa6a0be623a239bc32dd8e18e7ca7 files/digest-freeradius-1.1.1-r1 253
-SHA256 e18fa7565a9735a1bc342deb1825bb0876285d955ea0ba2252209ca04f837782 files/digest-freeradius-1.1.1-r1 253
MD5 51c1a43e2ddb45d5b0709b0d2dcdb3ee files/digest-freeradius-1.1.3-r1 253
RMD160 4562c10776eeed3a5a89d26db33f977c61b420b4 files/digest-freeradius-1.1.3-r1 253
SHA256 f2c8dde98762ea60836e714eaf453c239dd1a9e21d96432f5412d2845809a08c files/digest-freeradius-1.1.3-r1 253
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
-iD8DBQFFOdA33sf9c6kjmR8RAvJjAKCTCj95OgoCgTmwQDFjnaQL8Cv0KwCfUFe5
-SaFFDzf5RvyBlqd2gXpqX6k=
-=eVnB
+iD8DBQFFXs7N3sf9c6kjmR8RAtzLAJwMpBi7wAWS6blLQIWZ28CmGC+J2wCglG+V
+QepHTn0hJeu+uIO2SZw5eYw=
+=R3bz
-----END PGP SIGNATURE-----
diff --git a/net-dialup/freeradius/files/digest-freeradius-1.1.1-r1 b/net-dialup/freeradius/files/digest-freeradius-1.1.1-r1
deleted file mode 100644
index 0011e81f8fc7..000000000000
--- a/net-dialup/freeradius/files/digest-freeradius-1.1.1-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 b38b24f6352090fdb571b9e8da52e12e freeradius-1.1.1.tar.gz 2358196
-RMD160 f9947c299ec2a7d0189d0718edf10c8dc5783119 freeradius-1.1.1.tar.gz 2358196
-SHA256 413bf3181b35dc547c0bf8718603e5d706706d7da3618f5925566265c4d58388 freeradius-1.1.1.tar.gz 2358196
diff --git a/net-dialup/freeradius/files/freeradius-1.1.1-libradius_install.patch b/net-dialup/freeradius/files/freeradius-1.1.1-libradius_install.patch
deleted file mode 100644
index 32b9b853d6c8..000000000000
--- a/net-dialup/freeradius/files/freeradius-1.1.1-libradius_install.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Nru freeradius-1.1.1.orig/src/lib/Makefile freeradius-1.1.1/src/lib/Makefile
---- freeradius-1.1.1.orig/src/lib/Makefile 2006-02-10 21:47:04.000000000 +0200
-+++ freeradius-1.1.1/src/lib/Makefile 2006-03-31 13:18:09.000000000 +0300
-@@ -48,6 +48,7 @@
- rm -rf .libs
-
- install: all
-- $(LIBTOOL) --mode=install $(INSTALL) -c $(TARGET).la $(R)$(libdir)
-+ $(LIBTOOL) --mode=install $(INSTALL) -c $(TARGET).la \
-+ $(R)$(libdir)/$(TARGET).la
- rm -f $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la;
- ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la
diff --git a/net-dialup/freeradius/files/freeradius-1.1.1-versionless-la-files.patch b/net-dialup/freeradius/files/freeradius-1.1.1-versionless-la-files.patch
deleted file mode 100644
index fa8ed3f282dc..000000000000
--- a/net-dialup/freeradius/files/freeradius-1.1.1-versionless-la-files.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-diff -Nru freeradius-1.1.1.orig/src/lib/Makefile freeradius-1.1.1/src/lib/Makefile
---- freeradius-1.1.1.orig/src/lib/Makefile 2006-04-09 19:06:02.000000000 +0300
-+++ freeradius-1.1.1/src/lib/Makefile 2006-04-09 19:24:09.858954750 +0300
-@@ -50,5 +50,3 @@
- install: all
- $(LIBTOOL) --mode=install $(INSTALL) -c $(TARGET).la \
- $(R)$(libdir)/$(TARGET).la
-- rm -f $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la;
-- ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la
-diff -Nru freeradius-1.1.1.orig/src/modules/rlm_eap/libeap/Makefile freeradius-1.1.1/src/modules/rlm_eap/libeap/Makefile
---- freeradius-1.1.1.orig/src/modules/rlm_eap/libeap/Makefile 2006-02-10 21:47:09.000000000 +0200
-+++ freeradius-1.1.1/src/modules/rlm_eap/libeap/Makefile 2006-04-09 19:25:02.234228000 +0300
-@@ -39,5 +39,3 @@
-
- install: all
- $(LIBTOOL) --mode=install $(INSTALL) -c $(TARGET).la $(R)$(libdir)
-- rm -f $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la;
-- ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la
-diff -Nru freeradius-1.1.1.orig/src/modules/rules.mak freeradius-1.1.1/src/modules/rules.mak
---- freeradius-1.1.1.orig/src/modules/rules.mak 2006-02-10 21:47:05.000000000 +0200
-+++ freeradius-1.1.1/src/modules/rules.mak 2006-04-09 19:25:57.657691750 +0300
-@@ -157,6 +157,4 @@
- if [ "x$(TARGET)" != "x" ]; then \
- $(LIBTOOL) --mode=install $(INSTALL) -c \
- $(TARGET).la $(R)$(libdir)/$(TARGET).la || exit $?;\
-- rm -f $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la || exit %?; \
-- ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la || exit $?;\
- fi
diff --git a/net-dialup/freeradius/files/freeradius-1.1.1-whole-archive-gentoo.patch b/net-dialup/freeradius/files/freeradius-1.1.1-whole-archive-gentoo.patch
deleted file mode 100644
index 72da769d33be..000000000000
--- a/net-dialup/freeradius/files/freeradius-1.1.1-whole-archive-gentoo.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff -Nur freeradius-1.1.1.orig/aclocal.m4 freeradius-1.1.1/aclocal.m4
---- freeradius-1.1.1.orig/aclocal.m4 2005-12-08 20:54:09.000000000 +0200
-+++ freeradius-1.1.1/aclocal.m4 2006-01-18 20:30:42.932178750 +0200
-@@ -1421,7 +1421,7 @@
- *)
- # ancient GNU ld didn't support --whole-archive et. al.
- if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
-- whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
-+ whole_archive_flag_spec="$wlarc"'--no-whole-archive'
- else
- whole_archive_flag_spec=
- fi
-diff -Nur freeradius-1.1.1.orig/configure freeradius-1.1.1/configure
---- freeradius-1.1.1.orig/configure 2006-01-01 18:25:01.000000000 +0200
-+++ freeradius-1.1.1/configure 2006-01-18 20:30:42.936179000 +0200
-@@ -3511,7 +3511,7 @@
- *)
- # ancient GNU ld didn't support --whole-archive et. al.
- if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
-- whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
-+ whole_archive_flag_spec="$wlarc"'--no-whole-archive'
- else
- whole_archive_flag_spec=
- fi
-diff -Nur freeradius-1.1.1.orig/ltconfig freeradius-1.1.1/ltconfig
---- freeradius-1.1.1.orig/ltconfig 2003-06-24 14:03:39.000000000 +0300
-+++ freeradius-1.1.1/ltconfig 2006-01-18 20:30:42.940179250 +0200
-@@ -1246,7 +1246,7 @@
- *)
- # ancient GNU ld didn't support --whole-archive et. al.
- if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
-- whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
-+ whole_archive_flag_spec="$wlarc"'--no-whole-archive'
- else
- whole_archive_flag_spec=
- fi
diff --git a/net-dialup/freeradius/files/radwatch.init b/net-dialup/freeradius/files/radwatch.init
deleted file mode 100644
index f4515f3cf15c..000000000000
--- a/net-dialup/freeradius/files/radwatch.init
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/sbin/runscript
-
-opts="${opts} reload"
-
-depend() {
- need net
- use dns
-}
-
-checkconfig() {
- if [ ! -d /var/run/radiusd ] && ! mkdir /var/run/radiusd; then
- eeror "Failed to create /var/run/radiusd"
- return 1
- fi
-
- if [ ! -f /etc/raddb/radiusd.conf ] ; then
- eerror "No /etc/raddb/radiusd.conf file exists!"
- return 1
- fi
-
- if [ "`/usr/sbin/check-radiusd-config >/dev/null 2>&1; echo $?`" != "0" ] ; then
- eerror "Config not ok! (try /usr/sbin/check-radiusd-config )"
- return 1
- fi
-
- RADIUSD_USER=`grep '^ *user *=' /etc/raddb/radiusd.conf | cut -d ' ' -f 3`
- RADIUSD_GROUP=`grep '^ *group *=' /etc/raddb/radiusd.conf | cut -d ' ' -f 3`
- if [ -n "${RADIUSD_USER}" ] && ! getent passwd ${RADIUSD_USER} > /dev/null ; then
- eerror "${RADIUSD_USER} user missing!"
- return 1
- fi
- if [ -n "${RADIUSD_GROUP}" ] && ! getent group ${RADIUSD_GROUP} > /dev/null ; then
- eerror "${RADIUSD_GROUP} group missing!"
- return 1
- fi
-
- #radius.log is created before privileges drop; we need to set proper permissions on it
- [ -f radius.log ] || touch radius.log || return 1
-
- chown -R "${RADIUSD_USER:-root}:${RADIUSD_GROUP:-root}" . && \
- chmod -R u+rwX,g+rX . || return 1
-}
-
-start() {
- cd /var/log/radius #set the location of log files, including startup.log created by check-radiusd-config
- checkconfig || return 1
-
- ebegin "Starting radiusd"
- start-stop-daemon --start --quiet --exec /usr/sbin/radwatch -- /usr/sbin/radiusd ${RADIUSD_OPTS} >/dev/null
- eend $?
-}
-
-stop () {
- ebegin "Stopping radiusd"
- start-stop-daemon --stop --quiet --pidfile=/var/run/radiusd/radwatch.pid
- eend $?
-}
-
-reload () {
- ebegin "Reloading radiusd"
- kill -HUP `</var/run/radiusd/radiusd.pid`
- eend $?
-}
diff --git a/net-dialup/freeradius/freeradius-1.1.1-r1.ebuild b/net-dialup/freeradius/freeradius-1.1.1-r1.ebuild
deleted file mode 100644
index 3662456af4ff..000000000000
--- a/net-dialup/freeradius/freeradius-1.1.1-r1.ebuild
+++ /dev/null
@@ -1,166 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/freeradius-1.1.1-r1.ebuild,v 1.5 2006/09/09 08:42:13 mrness Exp $
-
-inherit eutils flag-o-matic libtool multilib
-
-DESCRIPTION="highly configurable free RADIUS server"
-SRC_URI="ftp://ftp.freeradius.org/pub/radius/${P}.tar.gz"
-HOMEPAGE="http://www.freeradius.org/"
-
-KEYWORDS="amd64 ~ppc ~sparc x86"
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="debug edirectory frascend frnothreads frxp kerberos ldap mysql pam postgres snmp ssl udpfromto"
-
-DEPEND="!net-dialup/cistronradius
- !net-dialup/gnuradius
- >=sys-libs/db-3.2
- sys-libs/gdbm
- dev-lang/perl
- snmp? ( net-analyzer/net-snmp )
- mysql? ( dev-db/mysql )
- postgres? ( dev-db/postgresql )
- pam? ( sys-libs/pam )
- ssl? ( dev-libs/openssl )
- ldap? ( net-nds/openldap )
- kerberos? ( virtual/krb5 )
- frxp? ( dev-lang/python )"
-
-pkg_setup() {
- if use edirectory && ! use ldap ; then
- eerror "Cannot add integration with Novell's eDirectory without having LDAP support!"
- eerror "Either you select ldap USE flag or remove edirectory"
- die "edirectory needs ldap"
- fi
- enewgroup radiusd
- enewuser radiusd -1 -1 /var/log/radius radiusd
-
- #TODO: Remove this function 6 months after all <1.1.1-r1 versions
- # has been removed from the tree.
- if cd "${ROOT}/usr/$(get_libdir)" ; then
- einfo "Cleaning up lefovers from previous versions..."
-
- local la_prefix file
- for la_prefix in libradius libeap rlm_acct_unique rlm_always rlm_attr_filter rlm_attr_rewrite \
- rlm_chap rlm_checkval rlm_counter rlm_cram rlm_dbm rlm_detail rlm_digest rlm_eap rlm_eap_gtc \
- rlm_eap_leap rlm_eap_md5 rlm_eap_mschapv2 rlm_eap_peap rlm_eap_sim rlm_eap_tls rlm_eap_ttls \
- rlm_example rlm_exec rlm_expr rlm_fastusers rlm_files rlm_ippool rlm_krb5 rlm_ldap rlm_mschap \
- rlm_ns_mta_md5 rlm_otp rlm_pam rlm_pap rlm_passwd rlm_perl rlm_preprocess rlm_python rlm_radutmp \
- rlm_realm rlm_sim_files rlm_smb rlm_sql rlm_sqlcounter rlm_sql_log rlm_unix ; do
- for file in ${la_prefix}-{0.8.1,0.9.0,0.9.3,1.0.1,1.0.2,1.0.4,1.0.5,1.1.0,1.1.1}.la ; do
- if [ -f "${file}" ] ; then
- rm "${file}"
- fi
- done
- done
- fi
-}
-
-src_unpack() {
- unpack ${A}
-
- epatch "${FILESDIR}/${P}-whole-archive-gentoo.patch"
- epatch "${FILESDIR}/${P}-libradius_install.patch"
- epatch "${FILESDIR}/${P}-versionless-la-files.patch"
-
- elibtoolize
-}
-
-src_compile() {
- autoconf || die "autoconf failed"
-
- local myconf=" \
- `use_enable debug developer` \
- `use_with snmp` \
- `use_with frascend ascend-binary` \
- `use_with frxp experimental-modules` \
- `use_with udpfromto` \
- `use_with edirectory edir` "
-
- if useq frnothreads; then
- myconf="${myconf} --without-threads"
- fi
- #fix bug #77613
- if has_version app-crypt/heimdal; then
- myconf="${myconf} --enable-heimdal-krb5"
- fi
-
- # kill modules we don't use
- if ! use ssl; then
- einfo "removing rlm_eap_tls and rlm_x99_token (no use ssl)"
- rm -rf src/modules/rlm_eap/types/rlm_eap_tls src/modules/rlm_x99_token
- fi
- if ! use ldap; then
- einfo "removing rlm_ldap (no use ldap)"
- rm -rf src/modules/rlm_ldap
- fi
- if ! use kerberos; then
- einfo "removing rlm_krb5 (no use kerberos)"
- rm -rf src/modules/rlm_krb5
- fi
- if ! use pam; then
- einfo "removing rlm_pam (no use pam)"
- rm -rf src/modules/rlm_pam
- fi
-
- ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
- --mandir=/usr/share/man --libdir=/usr/$(get_libdir)\
- --with-large-files --disable-ltdl-install --with-pic \
- ${myconf} || die "configure failed"
-
- make || die "make failed"
-}
-
-src_install() {
- dodir /etc
- dodir /var/log
- dodir /var/run
- diropts -m0750 -o root -g radiusd
- dodir /etc/raddb
- diropts -m0750 -o radiusd -g radiusd
- dodir /var/log/radius
- keepdir /var/log/radius/radacct
- dodir /var/run/radiusd
- diropts
-
- make R="${D}" install || die "make install failed"
- dosed 's:^#user *= *nobody:user = radiusd:;s:^#group *= *nobody:group = radiusd:' \
- /etc/raddb/radiusd.conf
- chown -R root:radiusd "${D}"/etc/raddb/*
-
- [ -z "${PR}" ] || mv "${D}/usr/share/doc/${P}" "${D}/usr/share/doc/${PF}"
- gzip -f -9 "${D}/usr/share/doc/${PF}"/{rfc/*.txt,*}
- dodoc CREDITS
- #Copy SQL schemas to doc dir
- docinto sql.schemas
- dodoc src/modules/rlm_sql/drivers/rlm_sql_*/*.sql
-
- rm "${D}/usr/sbin/rc.radiusd"
-
- newinitd "${FILESDIR}/radwatch.init" radiusd
- newconfd "${FILESDIR}/radius.conf" radiusd
-}
-
-pkg_preinst() {
- enewgroup radiusd
- enewuser radiusd -1 -1 /var/log/radius radiusd
-}
-
-pkg_prerm() {
- if [ "${ROOT}" = "/" ] && /etc/init.d/radiusd --quiet status ; then
- /etc/init.d/radiusd stop
- fi
-}
-
-pkg_postrm() {
- if [ "${ROOT}" = "/" ]; then
- ewarn "If radiusd service was running, it had been stopped!"
- echo
- ewarn "You should update the configuration files using etc-update or dispatch-conf"
- ewarn "and start the radiusd service again by running:"
- einfo " /etc/init.d/radiusd start"
-
- ebeep
- fi
-}