1 |
flameeyes 12/09/30 07:01:04 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: freeradius-2.2.0.ebuild |
5 |
Log: |
6 |
Remove stale patches. Version bump, ebuild and init script rewrite: patches are now hosted on dev.gentoo.org instead than in $FILESDIR; remove threads USE flag (solves bug #296907); enable DHCP support unconditionally, as it's not an extra dependency (solves bug #376721); add "old" directory to SRC_URI (solves bug #398771); adds sqlite support (solves bug #401569) as well as oracle (untested), iodbc and unixodbc; make readline, python and pcap optional; use REQUIRED_USE to disallow firebird support for bindist packages; support USE=-ssl properly; always turn on optional features that add no extra dependencies, including experimental modules (drops frascend, frxp and udpfromto USE flags); enable edirectory support when ldap is enabled (drops edirectory USE flag); add pkg_config function to generate required TLS certificates; new init script uses the latest runscript syntax support, which allows for detecting crashed radiusd instances. |
7 |
|
8 |
(Portage version: 2.2.0_alpha134/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.9 net-dialup/freeradius/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/metadata.xml?rev=1.9&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/metadata.xml?rev=1.9&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/metadata.xml?r1=1.8&r2=1.9 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-dialup/freeradius/metadata.xml,v |
20 |
retrieving revision 1.8 |
21 |
retrieving revision 1.9 |
22 |
diff -u -r1.8 -r1.9 |
23 |
--- metadata.xml 6 Apr 2012 21:54:37 -0000 1.8 |
24 |
+++ metadata.xml 30 Sep 2012 07:01:04 -0000 1.9 |
25 |
@@ -1,13 +1,23 @@ |
26 |
<?xml version="1.0" encoding="UTF-8"?> |
27 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
28 |
<pkgmetadata> |
29 |
-<herd>net-dialup</herd> |
30 |
-<longdescription>Highly configurable free RADIUS server.</longdescription> |
31 |
-<use> |
32 |
- <flag name='edirectory'>Enables Novell eDirectory integration</flag> |
33 |
- <flag name='frascend'>Enables Ascend binary mode</flag> |
34 |
- <flag name='frxp'>Enables experimental modules</flag> |
35 |
- <flag name='udpfromto'>Compile in UDPFROMTO support (enables freeradius to |
36 |
- specify source address correctly in multi-homed setups)</flag> |
37 |
-</use> |
38 |
+ <herd>net-dialup</herd> |
39 |
+ <use> |
40 |
+ <flag name='edirectory' restrict='<net-dialup/freeradius-2.2.0'> |
41 |
+ Enables Novell eDirectory integration. Requires ldap USE flag enabled. |
42 |
+ </flag> |
43 |
+ <flag name='frascend' restrict='<net-dialup/freeradius-2.2.0'> |
44 |
+ Enables Ascend binary mode |
45 |
+ </flag> |
46 |
+ <flag name='frxp' restrict='<net-dialup/freeradius-2.2.0'> |
47 |
+ Enables experimental modules |
48 |
+ </flag> |
49 |
+ <flag name='udpfromto' restrict='<net-dialup/freeradius-2.2.0'> |
50 |
+ Compile in UDPFROMTO support (enables freeradius to |
51 |
+ specify source address correctly in multi-homed setups) |
52 |
+ </flag> |
53 |
+ <flag name='pcap' restrict='>=net-dialup/freeradius-2.2.0'> |
54 |
+ Build the RADIUS sniffer which requires <pkg>net-libs/libpcap</pkg>. |
55 |
+ </flag> |
56 |
+ </use> |
57 |
</pkgmetadata> |
58 |
|
59 |
|
60 |
|
61 |
1.104 net-dialup/freeradius/ChangeLog |
62 |
|
63 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/ChangeLog?rev=1.104&view=markup |
64 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/ChangeLog?rev=1.104&content-type=text/plain |
65 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/ChangeLog?r1=1.103&r2=1.104 |
66 |
|
67 |
Index: ChangeLog |
68 |
=================================================================== |
69 |
RCS file: /var/cvsroot/gentoo-x86/net-dialup/freeradius/ChangeLog,v |
70 |
retrieving revision 1.103 |
71 |
retrieving revision 1.104 |
72 |
diff -u -r1.103 -r1.104 |
73 |
--- ChangeLog 9 Jul 2012 09:42:05 -0000 1.103 |
74 |
+++ ChangeLog 30 Sep 2012 07:01:04 -0000 1.104 |
75 |
@@ -1,6 +1,39 @@ |
76 |
# ChangeLog for net-dialup/freeradius |
77 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
78 |
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/ChangeLog,v 1.103 2012/07/09 09:42:05 polynomial-c Exp $ |
79 |
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/ChangeLog,v 1.104 2012/09/30 07:01:04 flameeyes Exp $ |
80 |
+ |
81 |
+*freeradius-2.2.0 (30 Sep 2012) |
82 |
+ |
83 |
+ 30 Sep 2012; Diego E. Pettenò <flameeyes@g.o> +files/radius.conf-r3, |
84 |
+ +files/radius.init-r3, +freeradius-2.2.0.ebuild, |
85 |
+ -files/freeradius-2.0.5-ssl.patch, -files/freeradius-2.0.5-threads.patch, |
86 |
+ -files/freeradius-2.0.5-versionless-la-files.patch, |
87 |
+ -files/freeradius-2.1.1-qafixes.patch, -files/freeradius-2.1.1-ssl.patch, |
88 |
+ -files/freeradius-2.1.1-versionless-la-files.patch, |
89 |
+ -files/freeradius-2.1.3-pkglibdir.patch, |
90 |
+ -files/freeradius-2.1.3-qafixes.patch, -files/freeradius-2.1.3-ssl.patch, |
91 |
+ -files/freeradius-2.1.3-versionless-la-files.patch, |
92 |
+ -files/freeradius-2.1.6-nothreads.patch, |
93 |
+ -files/freeradius-2.1.6-pkglibdir.patch, |
94 |
+ -files/freeradius-2.1.6-qafixes.patch, -files/freeradius-2.1.6-ssl.patch, |
95 |
+ -files/freeradius-2.1.6-versionless-la-files.patch, |
96 |
+ -files/freeradius-2.1.7-nothreads.patch, |
97 |
+ -files/freeradius-2.1.7-pkglibdir.patch, |
98 |
+ -files/freeradius-2.1.7-qafixes.patch, -files/freeradius-2.1.7-ssl.patch, |
99 |
+ -files/freeradius-2.1.7-versionless-la-files.patch, metadata.xml: |
100 |
+ Remove stale patches. Version bump, ebuild and init script rewrite: patches |
101 |
+ are now hosted on dev.gentoo.org instead than in $FILESDIR; remove threads USE |
102 |
+ flag (solves bug #296907); enable DHCP support unconditionally, as it's not an |
103 |
+ extra dependency (solves bug #376721); add "old" directory to SRC_URI (solves |
104 |
+ bug #398771); adds sqlite support (solves bug #401569) as well as oracle |
105 |
+ (untested), iodbc and unixodbc; make readline, python and pcap optional; use |
106 |
+ REQUIRED_USE to disallow firebird support for bindist packages; support |
107 |
+ USE=-ssl properly; always turn on optional features that add no extra |
108 |
+ dependencies, including experimental modules (drops frascend, frxp and |
109 |
+ udpfromto USE flags); enable edirectory support when ldap is enabled (drops |
110 |
+ edirectory USE flag); add pkg_config function to generate required TLS |
111 |
+ certificates; new init script uses the latest runscript syntax support, which |
112 |
+ allows for detecting crashed radiusd instances. |
113 |
|
114 |
*freeradius-2.1.11-r1 (09 Jul 2012) |
115 |
|
116 |
|
117 |
|
118 |
|
119 |
1.1 net-dialup/freeradius/freeradius-2.2.0.ebuild |
120 |
|
121 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/freeradius-2.2.0.ebuild?rev=1.1&view=markup |
122 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/freeradius-2.2.0.ebuild?rev=1.1&content-type=text/plain |
123 |
|
124 |
Index: freeradius-2.2.0.ebuild |
125 |
=================================================================== |
126 |
# Copyright 1999-2012 Gentoo Foundation |
127 |
# Distributed under the terms of the GNU General Public License v2 |
128 |
# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/freeradius-2.2.0.ebuild,v 1.1 2012/09/30 07:01:04 flameeyes Exp $ |
129 |
|
130 |
EAPI=4 |
131 |
|
132 |
PATCHSET=4 |
133 |
|
134 |
inherit eutils pam autotools user |
135 |
|
136 |
MY_P="${PN}-server-${PV}" |
137 |
|
138 |
DESCRIPTION="Highly configurable free RADIUS server" |
139 |
SRC_URI="ftp://ftp.freeradius.org/pub/radius/${MY_P}.tar.gz |
140 |
ftp://ftp.freeradius.org/pub/radius/old/${MY_P}.tar.gz |
141 |
http://dev.gentoo.org/~flameeyes/${PN}/${P}-patches-${PATCHSET}.tar.xz" |
142 |
HOMEPAGE="http://www.freeradius.org/" |
143 |
|
144 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
145 |
LICENSE="GPL-2" |
146 |
SLOT="0" |
147 |
|
148 |
IUSE="bindist debug firebird kerberos ldap mysql |
149 |
pam postgres ssl pcap readline ruby sqlite python odbc iodbc |
150 |
oracle" |
151 |
|
152 |
RDEPEND="!net-dialup/cistronradius |
153 |
!net-dialup/gnuradius |
154 |
sys-devel/libtool |
155 |
dev-lang/perl |
156 |
sys-libs/gdbm |
157 |
python? ( dev-lang/python ) |
158 |
readline? ( sys-libs/readline ) |
159 |
pcap? ( net-libs/libpcap ) |
160 |
mysql? ( virtual/mysql ) |
161 |
postgres? ( dev-db/postgresql-server ) |
162 |
firebird? ( dev-db/firebird ) |
163 |
pam? ( sys-libs/pam ) |
164 |
ssl? ( dev-libs/openssl ) |
165 |
ldap? ( net-nds/openldap ) |
166 |
kerberos? ( virtual/krb5 ) |
167 |
ruby? ( dev-lang/ruby:1.8 ) |
168 |
sqlite? ( dev-db/sqlite:3 ) |
169 |
odbc? ( dev-db/unixODBC ) |
170 |
iodbc? ( dev-db/libiodbc ) |
171 |
oracle? ( dev-db/oracle-instantclient-basic )" |
172 |
DEPEND="${RDEPEND}" |
173 |
|
174 |
REQUIRED_USE="bindist? ( !firebird )" |
175 |
|
176 |
S="${WORKDIR}/${MY_P}" |
177 |
|
178 |
pkg_setup() { |
179 |
enewgroup radius |
180 |
enewuser radius -1 -1 /var/log/radius radius |
181 |
} |
182 |
|
183 |
src_prepare() { |
184 |
epatch "${WORKDIR}"/patches/*.patch |
185 |
|
186 |
# most of the configuration options do not appear as ./configure |
187 |
# switches. Instead it identifies the directories that are available |
188 |
# and run through them. These might check for the presence of |
189 |
# various libraries, in which case they are not built. To avoid |
190 |
# automagic dependencies, we just remove all the modules that we're |
191 |
# not interested in using. |
192 |
|
193 |
use ssl || rm -r src/modules/rlm_eap/types/rlm_eap_{tls,ttls,peap} |
194 |
use ldap || rm -r src/modules/rlm_ldap |
195 |
use kerberos || rm -r src/modules/rlm_krb5 |
196 |
use pam || rm -r src/modules/rlm_pam |
197 |
use python || rm -r src/modules/rlm_python |
198 |
use ruby || rm -r src/modules/rlm_ruby |
199 |
|
200 |
# these are all things we don't have in portage/I don't want to deal |
201 |
# with myself |
202 |
rm -r src/modules/rlm_eap/types/rlm_eap_tnc # requires TNCS library |
203 |
rm -r src/modules/rlm_eap/types/rlm_eap_ikev2 # requires libeap-ikev2 |
204 |
rm -r src/modules/rlm_opendirectory # requires some membership.h |
205 |
rm -r src/modules/rlm_redis{,who} # requires redis |
206 |
rm -r src/modules/rlm_sql/drivers/rlm_sql_{db2,freetds,sybase} |
207 |
|
208 |
# sql drivers that are not part of experimental are loaded from a |
209 |
# file, so we have to remove them from the file itself when we |
210 |
# remove them. |
211 |
usesqldriver() { |
212 |
local flag=$1 |
213 |
local driver=rlm_sql_${2:-${flag}} |
214 |
|
215 |
if ! use ${flag}; then |
216 |
rm -r src/modules/rlm_sql/drivers/${driver} || die |
217 |
sed -i -e /${driver}/d src/modules/rlm_sql/stable || die |
218 |
fi |
219 |
} |
220 |
|
221 |
usesqldriver mysql |
222 |
usesqldriver postgres postgresql |
223 |
usesqldriver firebird |
224 |
usesqldriver iodbc |
225 |
usesqldriver odbc unixodbc |
226 |
usesqldriver oracle |
227 |
usesqldriver sqlite |
228 |
|
229 |
# remove bundled ltdl to avoid conflicts |
230 |
rm -r libltdl |
231 |
|
232 |
eautoreconf |
233 |
} |
234 |
|
235 |
src_configure() { |
236 |
# fix bug #77613 |
237 |
if has_version app-crypt/heimdal; then |
238 |
myconf="${myconf} --enable-heimdal-krb5" |
239 |
fi |
240 |
|
241 |
use readline || export ac_cv_lib_readline=no |
242 |
use pcap || export ac_cv_lib_pcap_pcap_open_live=no |
243 |
|
244 |
# do not try to enable static with static-libs; upstream is a |
245 |
# massacre of libtool best practices so you also have to make sure |
246 |
# to --enable-shared explicitly. |
247 |
econf \ |
248 |
--enable-shared --disable-static \ |
249 |
--disable-ltdl-install \ |
250 |
--with-system-libtool \ |
251 |
--with-system-libltdl \ |
252 |
--with-ascend-binary \ |
253 |
--with-udpfromto \ |
254 |
--with-dhcp \ |
255 |
--with-iodbc-include-dir=/usr/include/iodbc \ |
256 |
--with-experimental-modules \ |
257 |
--with-docdir=/usr/share/doc/${PF} \ |
258 |
--with-logdir=/var/log/radius \ |
259 |
$(use_enable debug developer) \ |
260 |
$(use_with ldap edir) \ |
261 |
$(use_with ssl openssl) |
262 |
} |
263 |
|
264 |
src_install() { |
265 |
dodir /etc |
266 |
diropts -m0750 -o root -g radius |
267 |
dodir /etc/raddb |
268 |
diropts -m0750 -o radius -g radius |
269 |
dodir /var/log/radius |
270 |
keepdir /var/log/radius/radacct |
271 |
diropts |
272 |
|
273 |
emake R="${D}" install |
274 |
chown -R root:radius "${D}"/etc/raddb |
275 |
|
276 |
sed -i -e '/run_dir/s:=.*:=/var/run/radiusd:' \ |
277 |
"${D}"/etc/raddb/radiusd.conf |
278 |
|
279 |
pamd_mimic_system radiusd auth account password session |
280 |
|
281 |
dodoc CREDITS |
282 |
|
283 |
rm "${D}/usr/sbin/rc.radiusd" |
284 |
|
285 |
newinitd "${FILESDIR}/radius.init-r3" radiusd |
286 |
newconfd "${FILESDIR}/radius.conf-r3" radiusd |
287 |
} |
288 |
|
289 |
pkg_config() { |
290 |
if use ssl; then |
291 |
cd "${ROOT}"/etc/raddb/certs |
292 |
./bootstrap |
293 |
fi |
294 |
} |
295 |
|
296 |
pkg_postinst() { |
297 |
elog "Users are no longer read from /etc/raddb/radiusd.conf. Please" |
298 |
elog "configure them in /etc/conf.d/radius instead." |
299 |
elog "Also make sure that if you change the pidfile in /etc/raddb/radiusd.conf" |
300 |
elog "you change the pidfile definition in /etc/conf.d/radius as well." |
301 |
if use ssl; then |
302 |
ewarn "You have to run \`emerge --config =${CATEGORY}/${PF}\` to be able" |
303 |
ewarn "to start the radiusd service." |
304 |
fi |
305 |
} |