summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2009-03-01 13:57:04 +0000
committerAlin Năstac <mrness@gentoo.org>2009-03-01 13:57:04 +0000
commit0be423d1fb31449df76b917adc7b8e49ff19b057 (patch)
tree532bd661b944ced233c81923cab8dbfafae35e83 /net-dialup/freeradius
parentjosm-plugins bump (diff)
downloadhistorical-0be423d1fb31449df76b917adc7b8e49ff19b057.tar.gz
historical-0be423d1fb31449df76b917adc7b8e49ff19b057.tar.bz2
historical-0be423d1fb31449df76b917adc7b8e49ff19b057.zip
Version bump. Remove static libraries and install rlm modules in pkglibdir (#253136).
Package-Manager: portage-2.1.6.7/cvs/Linux x86_64
Diffstat (limited to 'net-dialup/freeradius')
-rw-r--r--net-dialup/freeradius/ChangeLog14
-rw-r--r--net-dialup/freeradius/Manifest16
-rw-r--r--net-dialup/freeradius/files/freeradius-2.1.3-pkglibdir.patch61
-rw-r--r--net-dialup/freeradius/files/freeradius-2.1.3-qafixes.patch24
-rw-r--r--net-dialup/freeradius/files/freeradius-2.1.3-ssl.patch11
-rw-r--r--net-dialup/freeradius/files/freeradius-2.1.3-versionless-la-files.patch28
-rw-r--r--net-dialup/freeradius/freeradius-2.1.3.ebuild142
7 files changed, 289 insertions, 7 deletions
diff --git a/net-dialup/freeradius/ChangeLog b/net-dialup/freeradius/ChangeLog
index 648c4a541a71..6ae8dda48041 100644
--- a/net-dialup/freeradius/ChangeLog
+++ b/net-dialup/freeradius/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for net-dialup/freeradius
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/ChangeLog,v 1.85 2008/10/12 09:08:55 mrness Exp $
+# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/ChangeLog,v 1.86 2009/03/01 13:57:04 mrness Exp $
+
+*freeradius-2.1.3 (01 Mar 2009)
+
+ 01 Mar 2009; Alin Năstac <mrness@gentoo.org>
+ +files/freeradius-2.1.3-pkglibdir.patch,
+ +files/freeradius-2.1.3-qafixes.patch, +files/freeradius-2.1.3-ssl.patch,
+ +files/freeradius-2.1.3-versionless-la-files.patch,
+ +freeradius-2.1.3.ebuild:
+ Version bump. Remove static libraries and install rlm modules in pkglibdir
+ (#253136).
*freeradius-2.1.1 (12 Oct 2008)
diff --git a/net-dialup/freeradius/Manifest b/net-dialup/freeradius/Manifest
index bfe84331c415..7958a81ef927 100644
--- a/net-dialup/freeradius/Manifest
+++ b/net-dialup/freeradius/Manifest
@@ -10,21 +10,27 @@ AUX freeradius-2.0.5-versionless-la-files.patch 1708 RMD160 24b1c1b12a967732b492
AUX freeradius-2.1.1-qafixes.patch 420 RMD160 2aab91e7b7062e4d972b3df35973fbb124d20010 SHA1 87250253a64a3f8caf84667edffe7edfc8464508 SHA256 c41c76e6caa476874d62a622302247a1a3b6a570ede5cbd102d0be093f32b0ba
AUX freeradius-2.1.1-ssl.patch 577 RMD160 5cd5e536d09ab6b6de69acb44423fef39613e2f8 SHA1 6e4a14201956b45547d0436453e1c2fb80c9f6e3 SHA256 e5bf1193dc6594fc3fe739b0f6aac6f1045ec43b443aa063f842ee17550cbc75
AUX freeradius-2.1.1-versionless-la-files.patch 1708 RMD160 17919659243161bc2408e081d252512b1fb60b8b SHA1 ad790da5772f635c9f5aba127674a25636196808 SHA256 4d64c158abfdb3f6a6fcfb8fe45def375c14615b1ed25f86409b27aed9814e28
+AUX freeradius-2.1.3-pkglibdir.patch 2531 RMD160 f6c07c49f78db57c081b191973a61101ad019889 SHA1 65ea76e9cfe1c8daa32cc275b5f159879a3ec0a1 SHA256 27ac457b45d2e7212b85813294f42ac3e40041536e97a40213945080b053d281
+AUX freeradius-2.1.3-qafixes.patch 935 RMD160 fb9071fbeb6c721145084346ecf83d1e355d23a2 SHA1 8b15d9d047e8017a1a0bde7947508490377fa6ba SHA256 3848e51d2a8da27c694ac9efb11b66ada112695ebf606d7c0774a1f4482c7366
+AUX freeradius-2.1.3-ssl.patch 577 RMD160 b3f3f09456e4d04ccc6d3c87873dcd647666f808 SHA1 97ebdc1106eae298c769a3f9753909d9970c972f SHA256 7e3f5d70e3edd252e866ce81310a9840a0638f2cc6d1b11990769b636e216047
+AUX freeradius-2.1.3-versionless-la-files.patch 1708 RMD160 6ea39b1655af1cf46e3714133506ebc63490cb16 SHA1 780c7bc300f8aa09d9f1ecf20f2e21311273a517 SHA256 08fd64f382e0abd1216e6a93b11c45c794d504417e56d7b50007d0c4dfecea77
AUX radius.conf 129 RMD160 2509d00c869ddb2d4db84e0e4b5a9334ffd69964 SHA1 174194106a6a7698f92e884463f49f0f974cb569 SHA256 2d5b3e1af1299373182f2c8021bdf45c29db5d82b0a077b965a16ded32cb6292
AUX radius.init 1785 RMD160 0e409e935f4588b3c905af0e6e085e50617c2160 SHA1 3322995f7920ffda44a6d8c8eb38f1d18238ff43 SHA256 3e1e56774104e3b205f3436f5967be27894cb246d33949c86f6ed80ebbfa998a
AUX radius.init-r1 1575 RMD160 68e08912962c74ed2bdbe43bb27ae5e0c449254f SHA1 75bae5946776c5b0493b2b2b5cb6ee0de0a2fc6c SHA256 5f20b72e4b627442313818cbe3c31cadfdc747fad18cacdafe58de62812eea41
DIST freeradius-1.1.7.tar.gz 3156228 RMD160 9d33a4b01fc791557153b375a41e3d905fc8efe5 SHA1 4e8515f82260478ef881ed7b87b7ca258e19ccba SHA256 8a6497b418d037ab3a79801e91bb3c2e4c2d6b2edb6f3677bb93e730a42b54f8
DIST freeradius-server-2.0.5.tar.gz 3519755 RMD160 15080883413fee615387df0e6c1daaebc8a0f17c SHA1 8f0476f21bdcab9d0f5178039c1993a56f22d448 SHA256 dacb53042d04266d48c67d20b5822266809561d2bcfff2a6fe33c71e22db7ab6
DIST freeradius-server-2.1.1.tar.gz 3648766 RMD160 34993de091b759a7d0bf9929f72180bf56d818ec SHA1 9c36457f1b9364e413d066f804e850fa2166e3b9 SHA256 48139053bd4498e6ef0535178059286fafd5ad6642b0348936060fd373194147
+DIST freeradius-server-2.1.3.tar.gz 3687388 RMD160 c528f20e70c577242c5fe5ec0191b8493a3b7853 SHA1 d361abc8d5ef193653915150ad7b9cc8e14fb21c SHA256 815d50aafd776b8e34a2af47fc62c898763eb04477f8f3ffcf9bb1a5664a574d
EBUILD freeradius-1.1.7.ebuild 3944 RMD160 0a473d0f67d5465107d80a665a97e10f235098b4 SHA1 2e60887443197a5e4d6e46c740a9954bee37f925 SHA256 4068cd38e2dd349f57a1bb134a5935e4bc51103156e69dcb3fc43504f83e8508
EBUILD freeradius-2.0.5.ebuild 3890 RMD160 e3d48e8f6985e7be93a39a101f3a181f9dba5ca5 SHA1 9ab1d7c3ebc9fc3d74a04ee70a2c9e748628f3e4 SHA256 cc4d4fbab0cd48d163dc6fc4fa2644a886a7ceb9ce19791fa614b1474b1c79fc
EBUILD freeradius-2.1.1.ebuild 3892 RMD160 7172fcbec551a43c9d30d84907d511bf51662c99 SHA1 646ebc2c73708b13782694ba9f2cdd3486e13e5c SHA256 1072bbea42b78efe35db925ebe8e3e99d14e95b9ed0c75aaa61aeb357788a46f
-MISC ChangeLog 16711 RMD160 27ed7e4eab23f65d4903e2a1721c1228584afe4f SHA1 2c0448a7d86ef0fb72e254398d01e88e0ff312b8 SHA256 8a2980ac9e0e954ac2ef5a47b43d45145787dbbe5071edab2449252538a18aa5
+EBUILD freeradius-2.1.3.ebuild 3964 RMD160 0b925a6ed455414adef56d1fe9b45f6d6fe52302 SHA1 93cb8dfd54033d462b9495fb8048d410d69e4303 SHA256 8cecf52a4528bca3ce083071c6e1431f7b56805134a66cad5893b53c77d0d745
+MISC ChangeLog 17084 RMD160 1b4fe533c70b053d07be3101b31a5009677e58df SHA1 bfde50f1ebef92dca16d77e98ebb60ac8c2c7ba8 SHA256 63d5edc76cdb064e33e6dcc3dd3b3084d3ffb61917e1fe4d3110098b1c12cfa7
MISC metadata.xml 719 RMD160 5e57d94f486ea920e3b41de1cd30fc2e0127091d SHA1 fc9985698a0f2bf2ae05d3e1e459f2b72513f798 SHA256 e8ab0e7372f3eda0b1f5f8604162c2d20c1fc2ead87700f2d8ecabc1bc30fd9c
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
+Version: GnuPG v2.0.10 (GNU/Linux)
-iEYEARECAAYFAkjxvrMACgkQPrHvTlXvhtufJQCcC4wPxOrDErSSGuorNLyKCmLg
-0LEAnRZllCyEVUBhhIHTt1cf9+Ndxrd2
-=qUxx
+iEYEARECAAYFAkmqlEUACgkQts85UDFmaOV5ZACdFjRxrTpuEdWTppE6Xhjw/zkN
+ljEAn1ARo6Y+wU7m5M1rxnl8DJn0CKyd
+=PepK
-----END PGP SIGNATURE-----
diff --git a/net-dialup/freeradius/files/freeradius-2.1.3-pkglibdir.patch b/net-dialup/freeradius/files/freeradius-2.1.3-pkglibdir.patch
new file mode 100644
index 000000000000..ca7b80bdb875
--- /dev/null
+++ b/net-dialup/freeradius/files/freeradius-2.1.3-pkglibdir.patch
@@ -0,0 +1,61 @@
+diff -Nru freeradius-server-2.1.3.orig/Make.inc.in freeradius-server-2.1.3/Make.inc.in
+--- freeradius-server-2.1.3.orig/Make.inc.in 2008-12-05 16:37:56.000000000 +0000
++++ freeradius-server-2.1.3/Make.inc.in 2009-03-01 13:19:54.000000000 +0000
+@@ -10,6 +10,7 @@
+ sysconfdir = @sysconfdir@
+ localstatedir = @localstatedir@
+ libdir = @libdir@
++pkglibdir = @libdir@/freeradius
+ bindir = @bindir@
+ sbindir = @sbindir@
+ docdir = @docdir@
+diff -Nru freeradius-server-2.1.3.orig/raddb/radiusd.conf.in freeradius-server-2.1.3/raddb/radiusd.conf.in
+--- freeradius-server-2.1.3.orig/raddb/radiusd.conf.in 2008-12-05 16:37:56.000000000 +0000
++++ freeradius-server-2.1.3/raddb/radiusd.conf.in 2009-03-01 13:16:14.000000000 +0000
+@@ -103,7 +103,7 @@
+ # make
+ # make install
+ #
+-libdir = @libdir@
++libdir = @libdir@/freeradius
+
+ # pidfile: Where to place the PID of the RADIUS server.
+ #
+diff -Nru freeradius-server-2.1.3.orig/src/modules/Makefile freeradius-server-2.1.3/src/modules/Makefile
+--- freeradius-server-2.1.3.orig/src/modules/Makefile 2008-12-05 16:37:56.000000000 +0000
++++ freeradius-server-2.1.3/src/modules/Makefile 2009-03-01 13:18:39.000000000 +0000
+@@ -12,7 +12,7 @@
+ @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
+
+ install:
+- $(INSTALL) -d -m 755 $(R)$(libdir)
++ $(INSTALL) -d -m 755 $(R)$(pkglibdir)
+ @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
+
+ clean:
+diff -Nru freeradius-server-2.1.3.orig/src/modules/rules.mak freeradius-server-2.1.3/src/modules/rules.mak
+--- freeradius-server-2.1.3.orig/src/modules/rules.mak 2009-03-01 13:02:14.000000000 +0000
++++ freeradius-server-2.1.3/src/modules/rules.mak 2009-03-01 13:19:13.000000000 +0000
+@@ -117,7 +117,7 @@
+ $(TARGET).la: $(LT_OBJS)
+ $(LIBTOOL) --mode=link $(CC) -release $(RADIUSD_VERSION) \
+ -module $(LINK_MODE) $(LDFLAGS) $(RLM_LDFLAGS) -o $@ \
+- -rpath $(libdir) $^ $(LIBRADIUS) $(RLM_LIBS) $(LIBS)
++ -rpath $(pkglibdir) $^ $(LIBRADIUS) $(RLM_LIBS) $(LIBS)
+
+ #######################################################################
+ #
+@@ -158,11 +158,11 @@
+ # Do any module-specific installation.
+ #
+ # If there isn't a TARGET defined, then don't do anything.
+-# Otherwise, install the libraries into $(libdir)
++# Otherwise, install the libraries into $(pkglibdir)
+ #
+ install:
+ @[ "x$(RLM_INSTALL)" = "x" ] || $(MAKE) $(MFLAGS) $(RLM_INSTALL)
+ if [ "x$(TARGET)" != "x" ]; then \
+ $(LIBTOOL) --mode=install $(INSTALL) -c \
+- $(TARGET).la $(R)$(libdir)/$(TARGET).la || exit $$?; \
++ $(TARGET).la $(R)$(pkglibdir)/$(TARGET).la || exit $$?; \
+ fi
diff --git a/net-dialup/freeradius/files/freeradius-2.1.3-qafixes.patch b/net-dialup/freeradius/files/freeradius-2.1.3-qafixes.patch
new file mode 100644
index 000000000000..37a31a97391b
--- /dev/null
+++ b/net-dialup/freeradius/files/freeradius-2.1.3-qafixes.patch
@@ -0,0 +1,24 @@
+diff -Nru freeradius-server-2.1.3.orig/src/main/listen.c freeradius-server-2.1.3/src/main/listen.c
+--- freeradius-server-2.1.3.orig/src/main/listen.c 2008-12-05 16:37:56.000000000 +0000
++++ freeradius-server-2.1.3/src/main/listen.c 2009-03-01 12:16:55.000000000 +0000
+@@ -45,6 +45,9 @@
+ #include <fcntl.h>
+ #endif
+
++#ifdef WITH_UDPFROMTO
++#include <freeradius-devel/udpfromto.h>
++#endif
+
+ /*
+ * We'll use this below.
+diff -Nru freeradius-server-2.1.3.orig/src/main/radmin.c freeradius-server-2.1.3/src/main/radmin.c
+--- freeradius-server-2.1.3.orig/src/main/radmin.c 2008-12-05 16:37:56.000000000 +0000
++++ freeradius-server-2.1.3/src/main/radmin.c 2009-03-01 12:22:44.000000000 +0000
+@@ -47,6 +47,7 @@
+ #else /* !defined(HAVE_READLINE_H) */
+ extern char *readline ();
+ #endif /* !defined(HAVE_READLINE_H) */
++#include <readline/history.h>
+ char *cmdline = NULL;
+ #else /* !defined(HAVE_READLINE_READLINE_H) */
+ /* no readline */
diff --git a/net-dialup/freeradius/files/freeradius-2.1.3-ssl.patch b/net-dialup/freeradius/files/freeradius-2.1.3-ssl.patch
new file mode 100644
index 000000000000..923933cad907
--- /dev/null
+++ b/net-dialup/freeradius/files/freeradius-2.1.3-ssl.patch
@@ -0,0 +1,11 @@
+diff -Nru freeradius-server-2.1.3.orig/src/modules/rlm_eap/libeap/Makefile freeradius-server-2.1.3/src/modules/rlm_eap/libeap/Makefile
+--- freeradius-server-2.1.3.orig/src/modules/rlm_eap/libeap/Makefile 2008-12-05 16:37:56.000000000 +0000
++++ freeradius-server-2.1.3/src/modules/rlm_eap/libeap/Makefile 2009-03-01 11:35:56.000000000 +0000
+@@ -9,6 +9,7 @@
+ SRCS = eapcommon.c eapcrypto.c eapsimlib.c fips186prf.c
+ ifneq ($(OPENSSL_LIBS),)
+ SRCS += cb.c eap_tls.c mppe_keys.c tls.c
++LIBS += $(OPENSSL_LIBS)
+ endif
+ LT_OBJS = $(SRCS:.c=.lo)
+ INCLUDES = eap_types.h eap_tls.h
diff --git a/net-dialup/freeradius/files/freeradius-2.1.3-versionless-la-files.patch b/net-dialup/freeradius/files/freeradius-2.1.3-versionless-la-files.patch
new file mode 100644
index 000000000000..1e45df52f6aa
--- /dev/null
+++ b/net-dialup/freeradius/files/freeradius-2.1.3-versionless-la-files.patch
@@ -0,0 +1,28 @@
+diff -Nru freeradius-server-2.1.3.orig/src/lib/Makefile freeradius-server-2.1.3/src/lib/Makefile
+--- freeradius-server-2.1.3.orig/src/lib/Makefile 2008-12-05 16:37:56.000000000 +0000
++++ freeradius-server-2.1.3/src/lib/Makefile 2009-03-01 11:37:10.000000000 +0000
+@@ -53,5 +53,3 @@
+ $(INSTALL) -d -m 755 $(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 -Nru freeradius-server-2.1.3.orig/src/modules/rlm_eap/libeap/Makefile freeradius-server-2.1.3/src/modules/rlm_eap/libeap/Makefile
+--- freeradius-server-2.1.3.orig/src/modules/rlm_eap/libeap/Makefile 2009-03-01 11:36:40.000000000 +0000
++++ freeradius-server-2.1.3/src/modules/rlm_eap/libeap/Makefile 2009-03-01 11:37:10.000000000 +0000
+@@ -45,5 +45,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-server-2.1.3.orig/src/modules/rules.mak freeradius-server-2.1.3/src/modules/rules.mak
+--- freeradius-server-2.1.3.orig/src/modules/rules.mak 2008-12-05 16:37:56.000000000 +0000
++++ freeradius-server-2.1.3/src/modules/rules.mak 2009-03-01 11:37:10.000000000 +0000
+@@ -165,6 +165,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; \
+- ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la || exit $$?; \
+ fi
diff --git a/net-dialup/freeradius/freeradius-2.1.3.ebuild b/net-dialup/freeradius/freeradius-2.1.3.ebuild
new file mode 100644
index 000000000000..b51ad4e6c22d
--- /dev/null
+++ b/net-dialup/freeradius/freeradius-2.1.3.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/freeradius-2.1.3.ebuild,v 1.1 2009/03/01 13:57:04 mrness Exp $
+
+EAPI="2"
+WANT_AUTOMAKE="none"
+
+inherit eutils multilib pam
+
+DESCRIPTION="Highly configurable free RADIUS server"
+SRC_URI="ftp://ftp.freeradius.org/pub/radius/${PN}-server-${PV}.tar.gz"
+HOMEPAGE="http://www.freeradius.org/"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="bindist debug edirectory firebird frascend frxp kerberos ldap mysql pam postgres snmp ssl threads udpfromto"
+
+RDEPEND="!net-dialup/cistronradius
+ !net-dialup/gnuradius
+ >=sys-libs/db-3.2
+ sys-libs/gdbm
+ dev-lang/perl
+ snmp? ( net-analyzer/net-snmp )
+ mysql? ( virtual/mysql )
+ postgres? ( virtual/postgresql-server )
+ !bindist? ( firebird? ( dev-db/firebird ) )
+ pam? ( sys-libs/pam )
+ ssl? ( dev-libs/openssl )
+ ldap? ( net-nds/openldap )
+ kerberos? ( virtual/krb5 )
+ frxp? ( dev-lang/python )"
+DEPEND="${RDEPEND}
+ sys-devel/autoconf"
+
+S="${WORKDIR}/${PN}-server-${PV}"
+
+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
+}
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}/${P}-versionless-la-files.patch"
+ epatch "${FILESDIR}/${P}-ssl.patch"
+ epatch "${FILESDIR}/${P}-qafixes.patch"
+ epatch "${FILESDIR}/${P}-pkglibdir.patch"
+
+ cd "${S}"
+
+ # kill modules we don't use
+ if ! use ssl; then
+ einfo "removing rlm_eap_{tls,ttls,ikev2,peap} modules (no use ssl)"
+ rm -rf src/modules/rlm_eap/types/rlm_eap_{tls,ttls,ikev2,peap}
+ 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
+ if ! use mysql; then
+ einfo "removing rlm_sql_mysql (no use mysql)"
+ rm -rf src/modules/rlm_sql/drivers/rlm_sql_mysql
+ sed -i -e '/rlm_sql_mysql/d' src/modules/rlm_sql/stable
+ fi
+ if ! use postgres; then
+ einfo "removing rlm_sql_postgresql (no use postgres)"
+ rm -rf src/modules/rlm_sql/drivers/rlm_sql_postgresql
+ sed -i -e '/rlm_sql_postgresql/d' src/modules/rlm_sql/stable
+ fi
+ if use bindist || ! use firebird; then
+ einfo "removing rlm_sql_firebird (use bindist or no use firebird)"
+ rm -rf src/modules/rlm_sql/drivers/rlm_sql_firebird
+ sed -i -e '/rlm_sql_firebird/d' src/modules/rlm_sql/stable
+ fi
+}
+
+src_configure() {
+ 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) \
+ $(use_with threads)"
+
+ #fix bug #77613
+ if has_version app-crypt/heimdal; then
+ myconf="${myconf} --enable-heimdal-krb5"
+ fi
+
+ econf --disable-static --disable-ltdl-install \
+ --localstatedir=/var ${myconf} || die "econf failed"
+}
+
+src_compile() {
+ emake -j1 || die "emake 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/*
+
+ pamd_mimic_system radiusd auth account password session
+
+ mv "${D}/usr/share/doc/${PN}" "${D}/usr/share/doc/${PF}"
+ prepalldocs
+ dodoc CREDITS
+
+ rm "${D}/usr/sbin/rc.radiusd"
+
+ newinitd "${FILESDIR}/radius.init-r1" radiusd
+ newconfd "${FILESDIR}/radius.conf" radiusd
+}