summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2009-12-05 08:28:58 +0000
committerAlin Năstac <mrness@gentoo.org>2009-12-05 08:28:58 +0000
commitfce8f0df140c6a6ea73ceadd1da205d22fd0ce59 (patch)
treee9a991aa2150048189f65f08d49f01aa4f14f395 /net-dialup/freeradius
parentUse selected CC (#293277). Install more doc files (#294533). (diff)
downloadhistorical-fce8f0df140c6a6ea73ceadd1da205d22fd0ce59.tar.gz
historical-fce8f0df140c6a6ea73ceadd1da205d22fd0ce59.tar.bz2
historical-fce8f0df140c6a6ea73ceadd1da205d22fd0ce59.zip
Version bump (#295438).
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'net-dialup/freeradius')
-rw-r--r--net-dialup/freeradius/ChangeLog11
-rw-r--r--net-dialup/freeradius/Manifest19
-rw-r--r--net-dialup/freeradius/files/freeradius-2.1.7-nothreads.patch13
-rw-r--r--net-dialup/freeradius/files/freeradius-2.1.7-pkglibdir.patch63
-rw-r--r--net-dialup/freeradius/files/freeradius-2.1.7-qafixes.patch89
-rw-r--r--net-dialup/freeradius/files/freeradius-2.1.7-ssl.patch11
-rw-r--r--net-dialup/freeradius/files/freeradius-2.1.7-versionless-la-files.patch33
-rw-r--r--net-dialup/freeradius/freeradius-2.1.7.ebuild144
8 files changed, 381 insertions, 2 deletions
diff --git a/net-dialup/freeradius/ChangeLog b/net-dialup/freeradius/ChangeLog
index 45cd768600a6..401498e34d06 100644
--- a/net-dialup/freeradius/ChangeLog
+++ b/net-dialup/freeradius/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for net-dialup/freeradius
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/ChangeLog,v 1.91 2009/09/12 04:35:43 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/ChangeLog,v 1.92 2009/12/05 08:28:57 mrness Exp $
+
+*freeradius-2.1.7 (05 Dec 2009)
+
+ 05 Dec 2009; Alin Năstac <mrness@gentoo.org> +freeradius-2.1.7.ebuild,
+ +files/freeradius-2.1.7-nothreads.patch,
+ +files/freeradius-2.1.7-pkglibdir.patch,
+ +files/freeradius-2.1.7-qafixes.patch, +files/freeradius-2.1.7-ssl.patch,
+ +files/freeradius-2.1.7-versionless-la-files.patch:
+ Version bump (#295438).
12 Sep 2009; Alin Năstac <mrness@gentoo.org>
-files/freeradius-1.1.7-qa-fixes.patch, -files/freeradius-1.1.7-ssl.patch,
diff --git a/net-dialup/freeradius/Manifest b/net-dialup/freeradius/Manifest
index b7cd7e7766b0..bc6acf83acfb 100644
--- a/net-dialup/freeradius/Manifest
+++ b/net-dialup/freeradius/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX freeradius-2.0.5-ssl.patch 577 RMD160 f8082efad0f668771246d0022439588de95f0a10 SHA1 bed0145c6806fa84bac26252a4e945d3cf084986 SHA256 95e8a4ea4a36d53997b63dc9d509e5617cbd9d01fa43762e0e34883a3bb96363
AUX freeradius-2.0.5-threads.patch 488 RMD160 5d155cd4582fd03dcbaa6a207d1c21d6495129ff SHA1 2cb9d3da653f082a7210339d821a525e51466798 SHA256 3706944349b6dcfb003931dcd48278d766b53ca56a062b5e17c92535c242c273
AUX freeradius-2.0.5-versionless-la-files.patch 1708 RMD160 24b1c1b12a967732b492976300052a9c153c7db4 SHA1 81d25ed73da565adc61bc8c882bb208648f25b76 SHA256 0b223ffa3e5bf4331737a58ef53e8cc80fd53cc76f8cec1b42653e3307689b48
@@ -13,15 +16,29 @@ AUX freeradius-2.1.6-pkglibdir.patch 2547 RMD160 46fa13ce524ba1a61db27d130161464
AUX freeradius-2.1.6-qafixes.patch 3686 RMD160 0860ee3afdec320406b2d2398fc8b73d80ec4e07 SHA1 ea1bc3e906e2d3e6d65f69d78ee2c845775b1004 SHA256 f0b3fc440636eeb33cc42a36d3ff344c816db55a8295bdbe816d00d4214eb1ec
AUX freeradius-2.1.6-ssl.patch 577 RMD160 ac2fab3d5ffd8e78a09d1ec3f15b44026293739c SHA1 5b2ee68eb6ea5024feea868827f6dc784bba6554 SHA256 a7a3ed31fd470c23035f79a5b6252e163dde430a5d9dbcad5cf75bbd34b78672
AUX freeradius-2.1.6-versionless-la-files.patch 1747 RMD160 80aba198197d373d70b4b83996389074e3995af4 SHA1 7613cad1b4824118c94d745f5c3e5bf494f3290f SHA256 4e60188f1a2cd63b6dc775dbc8d09afd93e94b43431f7a930fed86399dd4883b
+AUX freeradius-2.1.7-nothreads.patch 514 RMD160 5e9347618054af8bea8d7d3d4d32f5d86b87abd4 SHA1 2651faed2c41139beb129f8925a58ab1336869b4 SHA256 09a33aaa0dae9223028564907324bfb869d52b027188211148ffe9a922fc083f
+AUX freeradius-2.1.7-pkglibdir.patch 2547 RMD160 1ca51a6ffc993995c72bd9a9a8d417448d399b64 SHA1 f850162266ad05723f560b138131837841d895d8 SHA256 471bff48a68fa104e4e10eed5a71721a9924f2072ebdfbb223f932ccdb6c556f
+AUX freeradius-2.1.7-qafixes.patch 3686 RMD160 4a1f8190fa25f06519895d5cd941c5e1af084556 SHA1 a75bcea06d0ee18cfcf832f904e651d87b2612e6 SHA256 59e9c05eadb6bb0da32bd75e2317a613f37698da576e6feced041d95f7c59299
+AUX freeradius-2.1.7-ssl.patch 577 RMD160 ae45ac513884a2e04d3ed49264e9dbf910a713a0 SHA1 9a62cb5e9c7bb1d0451577c441cd88073e2d2186 SHA256 160d021a70b293e651f1e834d17a5373a0be9afa2bde70eb323a5b27bddc4210
+AUX freeradius-2.1.7-versionless-la-files.patch 1747 RMD160 2caefaa605c11cdcfb45e178ee795aa0a8f92dff SHA1 d80d662df96f0521707a24ed3a9f7d710dd2a57f SHA256 156078ae2b72a388d5514fe27721d076853cd6fa4394a9fd02060088fad69b8f
AUX radius.conf 129 RMD160 2509d00c869ddb2d4db84e0e4b5a9334ffd69964 SHA1 174194106a6a7698f92e884463f49f0f974cb569 SHA256 2d5b3e1af1299373182f2c8021bdf45c29db5d82b0a077b965a16ded32cb6292
AUX radius.init-r1 1575 RMD160 68e08912962c74ed2bdbe43bb27ae5e0c449254f SHA1 75bae5946776c5b0493b2b2b5cb6ee0de0a2fc6c SHA256 5f20b72e4b627442313818cbe3c31cadfdc747fad18cacdafe58de62812eea41
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
DIST freeradius-server-2.1.6.tar.gz 3845088 RMD160 4335851a1a7800059f76e4860532a4d8ce0e6486 SHA1 de4f65f4c38864996a594f016cde798605aca370 SHA256 abeb0837c8c15c2261edc1029b32b4beff2879a50838589d73c1481bd0ae90a9
+DIST freeradius-server-2.1.7.tar.gz 3894247 RMD160 52225b612af87bdf74844ea361de3701b6a9f3dd SHA1 5fc6b5ddf100aea8abf0ab73f1b13460189fd4f5 SHA256 43504dc7fd2780e576361f9101ed7935d8c34782bb8954336a4196efab59b587
EBUILD freeradius-2.0.5.ebuild 3902 RMD160 a6d262612984f85bc939d2353e035ce0b8699c26 SHA1 b3b6fffd840eae628eefbdf22d7e8ba85020a09d SHA256 f20eab141fd00f5248d9ad322c9597d3fae58964cfc7e32f31c3876e50379211
EBUILD freeradius-2.1.1.ebuild 3904 RMD160 cc64ed34905007ac53eb27778d2adbb8ca7a44ac SHA1 198a69a6089bba780b43acf91602e92ff30e6c0d SHA256 7548cb67ef6d9d0a453a3e4838c62bf9e976eb908be538d7af35172307c9eec1
EBUILD freeradius-2.1.3-r1.ebuild 4139 RMD160 42d9a0030b24ad1fdfaa08db4b7b9b3156f3951c SHA1 aa13ee25291df378b1201cd3605f015ee8a1b03f SHA256 32aff2306158849a0ec91bd3729e63108d891db9d012df013f868ee302fae1be
EBUILD freeradius-2.1.6.ebuild 4152 RMD160 70d9b8dffc8ced92a749f6e5375c42181eca78c0 SHA1 30e179292a6325549281b0aea8e4c76124d6601f SHA256 438727609804741db69ee250371d363856a2666896bc3c97fb4cae93478b7e16
-MISC ChangeLog 18358 RMD160 6956bdad4e94e72c8db4757d647daf1c83afe48d SHA1 c0cfcb7b7e0c102794d1018698af37ff4163c554 SHA256 da5ad4ea0114dd8d15cbbe5661de6a8d80fdaf9678ce00b50de66b1b987ce2c4
+EBUILD freeradius-2.1.7.ebuild 4152 RMD160 99a848cf59a7b3dd28af9b784df6c9d7012fe3c2 SHA1 4a4e0114f5a92cf70cfdec61fea2a46dc4181473 SHA256 c60834d5ec59b79e921cb9ac72a80420d93d9c48d01bfcbefa75977c07ea653d
+MISC ChangeLog 18708 RMD160 4a314df4eb3fd84aeba1ed40186ebabf8efde589 SHA1 b92ad6b0a6340597390af0a474d5d8d0f83f0298 SHA256 924924bcd4d2dcd6bb3c734f73d05f8f274f75d8f4eb4a83a46f9856eb47a38b
MISC metadata.xml 662 RMD160 012a8de3e3f92245daab2e990c0e7c4f7869d52d SHA1 458d2af2523e5271e868bf90e203906ba01db0c3 SHA256 5c2f186c265e36fe36ea663e04d0a1604af89b3be4e7af52c0fdca7e0db84db8
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.11 (GNU/Linux)
+
+iEYEARECAAYFAksaGdQACgkQ9A5kJBGSrsv1jACgk2QvNa+XHmgQGwXWNfG/cK+4
+lHkAmwertej1KVTCoKTUBYuwsiJBkz+I
+=EpB2
+-----END PGP SIGNATURE-----
diff --git a/net-dialup/freeradius/files/freeradius-2.1.7-nothreads.patch b/net-dialup/freeradius/files/freeradius-2.1.7-nothreads.patch
new file mode 100644
index 000000000000..a1835ff783d7
--- /dev/null
+++ b/net-dialup/freeradius/files/freeradius-2.1.7-nothreads.patch
@@ -0,0 +1,13 @@
+diff -Nru freeradius-server-2.1.7.orig/src/main/event.c freeradius-server-2.1.7/src/main/event.c
+--- freeradius-server-2.1.7.orig/src/main/event.c 2009-09-14 16:43:29.000000000 +0200
++++ freeradius-server-2.1.7/src/main/event.c 2009-12-05 09:17:06.000000000 +0100
+@@ -1617,7 +1617,9 @@
+ */
+ request->num_proxied_requests = 1;
+ request->num_proxied_responses = 0;
++#ifdef HAVE_PTHREAD_H
+ request->child_pid = NO_SUCH_CHILD_PID;
++#endif
+
+ update_event_timestamp(request->proxy, request->proxy_when.tv_sec);
+
diff --git a/net-dialup/freeradius/files/freeradius-2.1.7-pkglibdir.patch b/net-dialup/freeradius/files/freeradius-2.1.7-pkglibdir.patch
new file mode 100644
index 000000000000..c11ca3199160
--- /dev/null
+++ b/net-dialup/freeradius/files/freeradius-2.1.7-pkglibdir.patch
@@ -0,0 +1,63 @@
+diff -Nru freeradius-server-2.1.7.orig/Make.inc.in freeradius-server-2.1.7/Make.inc.in
+--- freeradius-server-2.1.7.orig/Make.inc.in 2009-09-14 16:43:29.000000000 +0200
++++ freeradius-server-2.1.7/Make.inc.in 2009-12-05 09:16:12.000000000 +0100
+@@ -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.7.orig/raddb/radiusd.conf.in freeradius-server-2.1.7/raddb/radiusd.conf.in
+--- freeradius-server-2.1.7.orig/raddb/radiusd.conf.in 2009-09-14 16:43:29.000000000 +0200
++++ freeradius-server-2.1.7/raddb/radiusd.conf.in 2009-12-05 09:16:12.000000000 +0100
+@@ -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.7.orig/src/modules/Makefile freeradius-server-2.1.7/src/modules/Makefile
+--- freeradius-server-2.1.7.orig/src/modules/Makefile 2009-09-14 16:43:29.000000000 +0200
++++ freeradius-server-2.1.7/src/modules/Makefile 2009-12-05 09:16:12.000000000 +0100
+@@ -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.7.orig/src/modules/rules.mak freeradius-server-2.1.7/src/modules/rules.mak
+--- freeradius-server-2.1.7.orig/src/modules/rules.mak 2009-12-05 09:13:50.000000000 +0100
++++ freeradius-server-2.1.7/src/modules/rules.mak 2009-12-05 09:16:12.000000000 +0100
+@@ -123,7 +123,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)
+
+ #######################################################################
+ #
+@@ -164,13 +164,13 @@
+ # 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
+
+ .PHONY: scan
diff --git a/net-dialup/freeradius/files/freeradius-2.1.7-qafixes.patch b/net-dialup/freeradius/files/freeradius-2.1.7-qafixes.patch
new file mode 100644
index 000000000000..28d6e373c23e
--- /dev/null
+++ b/net-dialup/freeradius/files/freeradius-2.1.7-qafixes.patch
@@ -0,0 +1,89 @@
+diff -Nru freeradius-server-2.1.7.orig/configure.in freeradius-server-2.1.7/configure.in
+--- freeradius-server-2.1.7.orig/configure.in 2009-09-14 16:43:29.000000000 +0200
++++ freeradius-server-2.1.7/configure.in 2009-12-05 09:15:14.000000000 +0100
+@@ -552,7 +552,19 @@
+ ],
+ [ AC_MSG_WARN([pcap library not found, silently disabling the RADIUS sniffer.]) ])
+
+-AC_LIB_READLINE
++AC_CHECK_LIB(readline, readline,
++ [ LIBREADLINE="-lreadline"
++ AC_DEFINE(HAVE_LIBREADLINE, 1,
++ [Define to 1 if you have a readline compatible library.])
++ AC_DEFINE(HAVE_READLINE_READLINE_H, 1,
++ [Define to 1 if you have the <readline/readline.h> header file.])
++ AC_DEFINE(HAVE_READLINE_HISTORY, 1,
++ [Define if your readline library has \`add_history'])
++ AC_DEFINE(HAVE_READLINE_HISTORY_H, 1,
++ [Define to 1 if you have the <readline/history.h> header file.])
++ ],
++ [ LIBREADLINE="" ])
++AC_SUBST(LIBREADLINE)
+
+ dnl #############################################################
+ dnl #
+diff -Nru freeradius-server-2.1.7.orig/src/include/radiusd.h freeradius-server-2.1.7/src/include/radiusd.h
+--- freeradius-server-2.1.7.orig/src/include/radiusd.h 2009-09-14 16:43:29.000000000 +0200
++++ freeradius-server-2.1.7/src/include/radiusd.h 2009-12-05 09:15:14.000000000 +0100
+@@ -642,6 +642,7 @@
+ void event_new_fd(rad_listen_t *listener);
+
+ /* evaluate.c */
++int radius_get_vp(REQUEST *request, const char *name, VALUE_PAIR **vp_p);
+ int radius_evaluate_condition(REQUEST *request, int modreturn, int depth,
+ const char **ptr, int evaluate_it, int *presult);
+ int radius_update_attrlist(REQUEST *request, CONF_SECTION *cs,
+diff -Nru freeradius-server-2.1.7.orig/src/lib/Makefile freeradius-server-2.1.7/src/lib/Makefile
+--- freeradius-server-2.1.7.orig/src/lib/Makefile 2009-12-05 09:13:50.000000000 +0100
++++ freeradius-server-2.1.7/src/lib/Makefile 2009-12-05 09:15:14.000000000 +0100
+@@ -41,7 +41,7 @@
+
+ $(TARGET).la: $(LT_OBJS)
+ $(LIBTOOL) --mode=link $(CC) -release $(RADIUSD_VERSION) \
+- $(LDFLAGS) $(LINK_MODE) -o $@ -rpath $(libdir) $^
++ $(LDFLAGS) $(LINK_MODE) -o $@ -rpath $(libdir) $^ $(LIBS)
+
+ $(LT_OBJS): $(INCLUDES)
+
+diff -Nru freeradius-server-2.1.7.orig/src/main/listen.c freeradius-server-2.1.7/src/main/listen.c
+--- freeradius-server-2.1.7.orig/src/main/listen.c 2009-09-14 16:43:29.000000000 +0200
++++ freeradius-server-2.1.7/src/main/listen.c 2009-12-05 09:15:14.000000000 +0100
+@@ -49,6 +49,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.7.orig/src/modules/rlm_passwd/rlm_passwd.c freeradius-server-2.1.7/src/modules/rlm_passwd/rlm_passwd.c
+--- freeradius-server-2.1.7.orig/src/modules/rlm_passwd/rlm_passwd.c 2009-09-14 16:43:29.000000000 +0200
++++ freeradius-server-2.1.7/src/modules/rlm_passwd/rlm_passwd.c 2009-12-05 09:15:14.000000000 +0100
+@@ -247,8 +247,7 @@
+
+ static struct mypasswd * get_next(char *name, struct hashtable *ht)
+ {
+-#define passwd ((struct mypasswd *) ht->buffer)
+- struct mypasswd * hashentry;
++ struct mypasswd * hashentry, * passwd;
+ char buffer[1024];
+ int len;
+ char *list, *nextlist;
+@@ -267,6 +266,7 @@
+ }
+ /* printf("try to find in file\n"); */
+ if (!ht->fp) return NULL;
++ passwd = (struct mypasswd *) ht->buffer;
+ while (fgets(buffer, 1024,ht->fp)) {
+ if(*buffer && *buffer!='\n' && (len = string_to_entry(buffer, ht->nfields, ht->delimiter, passwd, sizeof(ht->buffer)-1)) &&
+ (!ht->ignorenis || (*buffer !='-' && *buffer != '+') ) ){
+@@ -288,7 +288,6 @@
+ fclose(ht->fp);
+ ht->fp = NULL;
+ return NULL;
+-#undef passwd
+ }
+
+ static struct mypasswd * get_pw_nam(char * name, struct hashtable* ht)
diff --git a/net-dialup/freeradius/files/freeradius-2.1.7-ssl.patch b/net-dialup/freeradius/files/freeradius-2.1.7-ssl.patch
new file mode 100644
index 000000000000..f30c09da182d
--- /dev/null
+++ b/net-dialup/freeradius/files/freeradius-2.1.7-ssl.patch
@@ -0,0 +1,11 @@
+diff -Nru freeradius-server-2.1.7.orig/src/modules/rlm_eap/libeap/Makefile freeradius-server-2.1.7/src/modules/rlm_eap/libeap/Makefile
+--- freeradius-server-2.1.7.orig/src/modules/rlm_eap/libeap/Makefile 2009-12-05 09:13:50.000000000 +0100
++++ freeradius-server-2.1.7/src/modules/rlm_eap/libeap/Makefile 2009-12-05 09:14:06.000000000 +0100
+@@ -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.7-versionless-la-files.patch b/net-dialup/freeradius/files/freeradius-2.1.7-versionless-la-files.patch
new file mode 100644
index 000000000000..c33bb761e801
--- /dev/null
+++ b/net-dialup/freeradius/files/freeradius-2.1.7-versionless-la-files.patch
@@ -0,0 +1,33 @@
+diff -Nru freeradius-server-2.1.7.orig/src/lib/Makefile freeradius-server-2.1.7/src/lib/Makefile
+--- freeradius-server-2.1.7.orig/src/lib/Makefile 2009-09-14 16:43:29.000000000 +0200
++++ freeradius-server-2.1.7/src/lib/Makefile 2009-12-05 09:12:55.000000000 +0100
+@@ -53,8 +53,6 @@
+ $(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
+
+ .PHONY: scan
+ scan:
+diff -Nru freeradius-server-2.1.7.orig/src/modules/rlm_eap/libeap/Makefile freeradius-server-2.1.7/src/modules/rlm_eap/libeap/Makefile
+--- freeradius-server-2.1.7.orig/src/modules/rlm_eap/libeap/Makefile 2009-09-14 16:43:29.000000000 +0200
++++ freeradius-server-2.1.7/src/modules/rlm_eap/libeap/Makefile 2009-12-05 09:12:55.000000000 +0100
+@@ -44,5 +44,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.7.orig/src/modules/rules.mak freeradius-server-2.1.7/src/modules/rules.mak
+--- freeradius-server-2.1.7.orig/src/modules/rules.mak 2009-09-14 16:43:29.000000000 +0200
++++ freeradius-server-2.1.7/src/modules/rules.mak 2009-12-05 09:12:55.000000000 +0100
+@@ -171,8 +171,6 @@
+ 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
+
+ .PHONY: scan
diff --git a/net-dialup/freeradius/freeradius-2.1.7.ebuild b/net-dialup/freeradius/freeradius-2.1.7.ebuild
new file mode 100644
index 000000000000..c9e9627ff112
--- /dev/null
+++ b/net-dialup/freeradius/freeradius-2.1.7.ebuild
@@ -0,0 +1,144 @@
+# 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.7.ebuild,v 1.1 2009/12/05 08:28:57 mrness Exp $
+
+EAPI="2"
+
+inherit eutils multilib pam autotools libtool
+
+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
+ sys-libs/readline
+ net-libs/libpcap
+ 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}"
+
+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_prepare() {
+ epatch "${FILESDIR}/${P}-versionless-la-files.patch"
+ epatch "${FILESDIR}/${P}-ssl.patch"
+ epatch "${FILESDIR}/${P}-qafixes.patch"
+ epatch "${FILESDIR}/${P}-pkglibdir.patch"
+ epatch "${FILESDIR}/${P}-nothreads.patch"
+
+ # 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
+
+ # These are needed for fixing libtool-2 related issues (#261189)
+ # Keep these lines even if you don't patch *.{in,am} files!
+ eautoreconf
+ elibtoolize
+}
+
+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
+}