1 |
commit: 9aad3cdfa56561697dbceb6e39c0f9858537c4f5 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 21:45:01 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 21:59:32 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9aad3cdf |
7 |
|
8 |
net-dialup/freeradius: remove old ebuilds |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
net-dialup/freeradius/freeradius-2.2.5.ebuild | 195 ---------------------- |
13 |
net-dialup/freeradius/freeradius-2.2.9.ebuild | 196 ---------------------- |
14 |
net-dialup/freeradius/freeradius-3.0.11.ebuild | 216 ------------------------- |
15 |
3 files changed, 607 deletions(-) |
16 |
|
17 |
diff --git a/net-dialup/freeradius/freeradius-2.2.5.ebuild b/net-dialup/freeradius/freeradius-2.2.5.ebuild |
18 |
deleted file mode 100644 |
19 |
index a41b000..0000000 |
20 |
--- a/net-dialup/freeradius/freeradius-2.2.5.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,195 +0,0 @@ |
23 |
-# Copyright 1999-2015 Gentoo Foundation |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Id$ |
26 |
- |
27 |
-EAPI=5 |
28 |
- |
29 |
-PYTHON_COMPAT=( python2_7 ) |
30 |
-inherit autotools eutils pam python-any-r1 user |
31 |
- |
32 |
-PATCHSET=4 |
33 |
- |
34 |
-MY_P="${PN}-server-${PV}" |
35 |
- |
36 |
-DESCRIPTION="Highly configurable free RADIUS server" |
37 |
-SRC_URI=" |
38 |
- ftp://ftp.freeradius.org/pub/radius/${MY_P}.tar.gz |
39 |
- ftp://ftp.freeradius.org/pub/radius/old/${MY_P}.tar.gz |
40 |
- https://dev.gentoo.org/~flameeyes/${PN}/${PN}-2.2.0-patches-${PATCHSET}.tar.xz |
41 |
- |
42 |
-" |
43 |
-HOMEPAGE="http://www.freeradius.org/" |
44 |
- |
45 |
-KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" |
46 |
-LICENSE="GPL-2" |
47 |
-SLOT="0" |
48 |
- |
49 |
-IUSE=" |
50 |
- debug firebird iodbc kerberos ldap mysql odbc oracle pam pcap |
51 |
- postgres python readline sqlite ssl |
52 |
-" |
53 |
-RESTRICT="firebird? ( bindist )" |
54 |
- |
55 |
-RDEPEND="!net-dialup/cistronradius |
56 |
- !net-dialup/gnuradius |
57 |
- sys-devel/libtool |
58 |
- dev-lang/perl |
59 |
- sys-libs/gdbm |
60 |
- python? ( ${PYTHON_DEPS} ) |
61 |
- readline? ( sys-libs/readline ) |
62 |
- pcap? ( net-libs/libpcap ) |
63 |
- mysql? ( virtual/mysql ) |
64 |
- postgres? ( dev-db/postgresql ) |
65 |
- firebird? ( dev-db/firebird ) |
66 |
- pam? ( virtual/pam ) |
67 |
- ssl? ( dev-libs/openssl ) |
68 |
- ldap? ( net-nds/openldap ) |
69 |
- kerberos? ( virtual/krb5 ) |
70 |
- sqlite? ( dev-db/sqlite:3 ) |
71 |
- odbc? ( dev-db/unixODBC ) |
72 |
- iodbc? ( dev-db/libiodbc ) |
73 |
- oracle? ( dev-db/oracle-instantclient-basic )" |
74 |
-DEPEND="${RDEPEND}" |
75 |
- |
76 |
-S="${WORKDIR}/${MY_P}" |
77 |
- |
78 |
-pkg_setup() { |
79 |
- enewgroup radius |
80 |
- enewuser radius -1 -1 /var/log/radius radius |
81 |
- |
82 |
- python-any-r1_pkg_setup |
83 |
- export PYTHONBIN="${EPYTHON}" |
84 |
-} |
85 |
- |
86 |
-src_prepare() { |
87 |
- epatch \ |
88 |
- "${WORKDIR}"/patches/0002*patch \ |
89 |
- "${WORKDIR}"/patches/0004*patch \ |
90 |
- "${FILESDIR}"/${P}-gentoo.patch |
91 |
- |
92 |
- # most of the configuration options do not appear as ./configure |
93 |
- # switches. Instead it identifies the directories that are available |
94 |
- # and run through them. These might check for the presence of |
95 |
- # various libraries, in which case they are not built. To avoid |
96 |
- # automagic dependencies, we just remove all the modules that we're |
97 |
- # not interested in using. |
98 |
- |
99 |
- use ssl || rm -r src/modules/rlm_eap/types/rlm_eap_{tls,ttls,peap} |
100 |
- use ldap || rm -r src/modules/rlm_ldap |
101 |
- use kerberos || rm -r src/modules/rlm_krb5 |
102 |
- use pam || rm -r src/modules/rlm_pam |
103 |
- use python || rm -r src/modules/rlm_python |
104 |
- # Do not install ruby rlm module, bug #483108 |
105 |
- rm -r src/modules/rlm_ruby |
106 |
- |
107 |
- # these are all things we don't have in portage/I don't want to deal |
108 |
- # with myself |
109 |
- rm -r src/modules/rlm_eap/types/rlm_eap_tnc # requires TNCS library |
110 |
- rm -r src/modules/rlm_eap/types/rlm_eap_ikev2 # requires libeap-ikev2 |
111 |
- rm -r src/modules/rlm_opendirectory # requires some membership.h |
112 |
- rm -r src/modules/rlm_redis{,who} # requires redis |
113 |
- rm -r src/modules/rlm_sql/drivers/rlm_sql_{db2,freetds,sybase} |
114 |
- |
115 |
- # sql drivers that are not part of experimental are loaded from a |
116 |
- # file, so we have to remove them from the file itself when we |
117 |
- # remove them. |
118 |
- usesqldriver() { |
119 |
- local flag=$1 |
120 |
- local driver=rlm_sql_${2:-${flag}} |
121 |
- |
122 |
- if ! use ${flag}; then |
123 |
- rm -r src/modules/rlm_sql/drivers/${driver} || die |
124 |
- sed -i -e /${driver}/d src/modules/rlm_sql/stable || die |
125 |
- fi |
126 |
- } |
127 |
- |
128 |
- usesqldriver mysql |
129 |
- usesqldriver postgres postgresql |
130 |
- usesqldriver firebird |
131 |
- usesqldriver iodbc |
132 |
- usesqldriver odbc unixodbc |
133 |
- usesqldriver oracle |
134 |
- usesqldriver sqlite |
135 |
- |
136 |
- # remove bundled ltdl to avoid conflicts |
137 |
- rm -r libltdl |
138 |
- |
139 |
- epatch_user |
140 |
- |
141 |
- eautoreconf |
142 |
-} |
143 |
- |
144 |
-src_configure() { |
145 |
- # fix bug #77613 |
146 |
- if has_version app-crypt/heimdal; then |
147 |
- myconf="${myconf} --enable-heimdal-krb5" |
148 |
- fi |
149 |
- |
150 |
- use readline || export ac_cv_lib_readline=no |
151 |
- use pcap || export ac_cv_lib_pcap_pcap_open_live=no |
152 |
- |
153 |
- # do not try to enable static with static-libs; upstream is a |
154 |
- # massacre of libtool best practices so you also have to make sure |
155 |
- # to --enable-shared explicitly. |
156 |
- econf \ |
157 |
- --enable-shared --disable-static \ |
158 |
- --disable-ltdl-install \ |
159 |
- --with-system-libtool \ |
160 |
- --with-system-libltdl \ |
161 |
- --with-ascend-binary \ |
162 |
- --with-udpfromto \ |
163 |
- --with-dhcp \ |
164 |
- --with-iodbc-include-dir=/usr/include/iodbc \ |
165 |
- --with-experimental-modules \ |
166 |
- --with-docdir=/usr/share/doc/${PF} \ |
167 |
- --with-logdir=/var/log/radius \ |
168 |
- $(use_enable debug developer) \ |
169 |
- $(use_with ldap edir) \ |
170 |
- $(use_with ssl openssl) \ |
171 |
- ${myconf} |
172 |
-} |
173 |
- |
174 |
-src_compile() { |
175 |
- emake LIBTOOL=libtool |
176 |
-} |
177 |
- |
178 |
-src_install() { |
179 |
- dodir /etc |
180 |
- diropts -m0750 -o root -g radius |
181 |
- dodir /etc/raddb |
182 |
- diropts -m0750 -o radius -g radius |
183 |
- dodir /var/log/radius |
184 |
- keepdir /var/log/radius/radacct |
185 |
- diropts |
186 |
- |
187 |
- emake LIBTOOL=libtool R="${D}" install |
188 |
- |
189 |
- fowners -R root:radius /etc/raddb |
190 |
- |
191 |
- sed -i \ |
192 |
- -e 's:/var/run/radiusd:/run/radiusd:' \ |
193 |
- "${D}"/etc/raddb/radiusd.conf || die |
194 |
- |
195 |
- pamd_mimic_system radiusd auth account password session |
196 |
- |
197 |
- dodoc CREDITS |
198 |
- |
199 |
- rm "${D}/usr/sbin/rc.radiusd" |
200 |
- |
201 |
- newinitd "${FILESDIR}/radius.init-r3" radiusd |
202 |
- newconfd "${FILESDIR}/radius.conf-r3" radiusd |
203 |
-} |
204 |
- |
205 |
-pkg_config() { |
206 |
- if use ssl; then |
207 |
- cd "${ROOT}"/etc/raddb/certs |
208 |
- ./bootstrap |
209 |
- fi |
210 |
-} |
211 |
- |
212 |
-pkg_preinst() { |
213 |
- if ! has_version ${CATEGORY}/${PN} && use ssl; then |
214 |
- elog "You have to run \`emerge --config =${CATEGORY}/${PF}\` to be able" |
215 |
- elog "to start the radiusd service." |
216 |
- fi |
217 |
-} |
218 |
|
219 |
diff --git a/net-dialup/freeradius/freeradius-2.2.9.ebuild b/net-dialup/freeradius/freeradius-2.2.9.ebuild |
220 |
deleted file mode 100644 |
221 |
index 27f0126..0000000 |
222 |
--- a/net-dialup/freeradius/freeradius-2.2.9.ebuild |
223 |
+++ /dev/null |
224 |
@@ -1,196 +0,0 @@ |
225 |
-# Copyright 1999-2016 Gentoo Foundation |
226 |
-# Distributed under the terms of the GNU General Public License v2 |
227 |
-# $Id$ |
228 |
- |
229 |
-EAPI=6 |
230 |
- |
231 |
-PYTHON_COMPAT=( python2_7 ) |
232 |
-inherit autotools eutils pam python-any-r1 user |
233 |
- |
234 |
-PATCHSET=4 |
235 |
- |
236 |
-MY_P="${PN}-server-${PV}" |
237 |
- |
238 |
-DESCRIPTION="Highly configurable free RADIUS server" |
239 |
-SRC_URI=" |
240 |
- ftp://ftp.freeradius.org/pub/radius/${MY_P}.tar.gz |
241 |
- ftp://ftp.freeradius.org/pub/radius/old/${MY_P}.tar.gz |
242 |
- https://dev.gentoo.org/~flameeyes/${PN}/${PN}-2.2.0-patches-${PATCHSET}.tar.xz |
243 |
- |
244 |
-" |
245 |
-HOMEPAGE="http://www.freeradius.org/" |
246 |
- |
247 |
-KEYWORDS="amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
248 |
-LICENSE="GPL-2" |
249 |
-SLOT="0" |
250 |
- |
251 |
-IUSE=" |
252 |
- debug firebird iodbc kerberos ldap mysql odbc oracle pam pcap |
253 |
- postgres python readline sqlite ssl |
254 |
-" |
255 |
-RESTRICT="firebird? ( bindist )" |
256 |
- |
257 |
-RDEPEND="!net-dialup/cistronradius |
258 |
- !net-dialup/gnuradius |
259 |
- sys-devel/libtool |
260 |
- dev-lang/perl |
261 |
- sys-libs/gdbm |
262 |
- python? ( ${PYTHON_DEPS} ) |
263 |
- readline? ( sys-libs/readline:0= ) |
264 |
- pcap? ( net-libs/libpcap ) |
265 |
- mysql? ( virtual/mysql ) |
266 |
- postgres? ( dev-db/postgresql:= ) |
267 |
- firebird? ( dev-db/firebird ) |
268 |
- pam? ( virtual/pam ) |
269 |
- ssl? ( dev-libs/openssl:0= ) |
270 |
- ldap? ( net-nds/openldap ) |
271 |
- kerberos? ( virtual/krb5 ) |
272 |
- sqlite? ( dev-db/sqlite:3 ) |
273 |
- odbc? ( dev-db/unixODBC ) |
274 |
- iodbc? ( dev-db/libiodbc ) |
275 |
- oracle? ( dev-db/oracle-instantclient-basic )" |
276 |
-DEPEND="${RDEPEND}" |
277 |
- |
278 |
-S="${WORKDIR}/${MY_P}" |
279 |
- |
280 |
-pkg_setup() { |
281 |
- enewgroup radius |
282 |
- enewuser radius -1 -1 /var/log/radius radius |
283 |
- |
284 |
- python-any-r1_pkg_setup |
285 |
- export PYTHONBIN="${EPYTHON}" |
286 |
-} |
287 |
- |
288 |
-src_prepare() { |
289 |
- eapply \ |
290 |
- "${WORKDIR}"/patches/0002*patch \ |
291 |
- "${WORKDIR}"/patches/0004*patch \ |
292 |
- "${FILESDIR}"/${PN}-2.2.5-gentoo.patch |
293 |
- |
294 |
- # most of the configuration options do not appear as ./configure |
295 |
- # switches. Instead it identifies the directories that are available |
296 |
- # and run through them. These might check for the presence of |
297 |
- # various libraries, in which case they are not built. To avoid |
298 |
- # automagic dependencies, we just remove all the modules that we're |
299 |
- # not interested in using. |
300 |
- |
301 |
- use ssl || { rm -r src/modules/rlm_eap/types/rlm_eap_{tls,ttls,peap} || die ; } |
302 |
- use ldap || { rm -r src/modules/rlm_ldap || die ; } |
303 |
- use kerberos || { rm -r src/modules/rlm_krb5 || die ; } |
304 |
- use pam || { rm -r src/modules/rlm_pam || die ; } |
305 |
- use python || { rm -r src/modules/rlm_python || die ; } |
306 |
- # Do not install ruby rlm module, bug #483108 |
307 |
- rm -r src/modules/rlm_ruby || die |
308 |
- |
309 |
- # these are all things we don't have in portage/I don't want to deal |
310 |
- # with myself |
311 |
- rm -r src/modules/rlm_eap/types/rlm_eap_tnc || die # requires TNCS library |
312 |
- rm -r src/modules/rlm_eap/types/rlm_eap_ikev2 || die # requires libeap-ikev2 |
313 |
- rm -r src/modules/rlm_opendirectory || die # requires some membership.h |
314 |
- rm -r src/modules/rlm_redis{,who} || die # requires redis |
315 |
- rm -r src/modules/rlm_sql/drivers/rlm_sql_{db2,freetds,sybase} || die |
316 |
- |
317 |
- # sql drivers that are not part of experimental are loaded from a |
318 |
- # file, so we have to remove them from the file itself when we |
319 |
- # remove them. |
320 |
- usesqldriver() { |
321 |
- local flag=$1 |
322 |
- local driver=rlm_sql_${2:-${flag}} |
323 |
- |
324 |
- if ! use ${flag}; then |
325 |
- rm -r src/modules/rlm_sql/drivers/${driver} || die |
326 |
- sed -i -e /${driver}/d src/modules/rlm_sql/stable || die |
327 |
- fi |
328 |
- } |
329 |
- |
330 |
- usesqldriver mysql |
331 |
- usesqldriver postgres postgresql |
332 |
- usesqldriver firebird |
333 |
- usesqldriver iodbc |
334 |
- usesqldriver odbc unixodbc |
335 |
- usesqldriver oracle |
336 |
- usesqldriver sqlite |
337 |
- |
338 |
- # remove bundled ltdl to avoid conflicts |
339 |
- rm -r libltdl |
340 |
- |
341 |
- default |
342 |
- |
343 |
- eautoreconf |
344 |
-} |
345 |
- |
346 |
-src_configure() { |
347 |
- # fix bug #77613 |
348 |
- if has_version app-crypt/heimdal; then |
349 |
- myconf+=( --enable-heimdal-krb5 ) |
350 |
- fi |
351 |
- |
352 |
- use readline || export ac_cv_lib_readline=no |
353 |
- use pcap || export ac_cv_lib_pcap_pcap_open_live=no |
354 |
- |
355 |
- # do not try to enable static with static-libs; upstream is a |
356 |
- # massacre of libtool best practices so you also have to make sure |
357 |
- # to --enable-shared explicitly. |
358 |
- econf \ |
359 |
- --enable-shared --disable-static \ |
360 |
- --disable-ltdl-install \ |
361 |
- --with-system-libtool \ |
362 |
- --with-system-libltdl \ |
363 |
- --with-ascend-binary \ |
364 |
- --with-udpfromto \ |
365 |
- --with-dhcp \ |
366 |
- --with-iodbc-include-dir=/usr/include/iodbc \ |
367 |
- --with-experimental-modules \ |
368 |
- --with-docdir=/usr/share/doc/${PF} \ |
369 |
- --with-logdir=/var/log/radius \ |
370 |
- $(use_enable debug developer) \ |
371 |
- $(use_with ldap edir) \ |
372 |
- $(use_with ssl openssl) \ |
373 |
- ${myconf[@]} |
374 |
-} |
375 |
- |
376 |
-src_compile() { |
377 |
- emake LIBTOOL=libtool |
378 |
-} |
379 |
- |
380 |
-src_install() { |
381 |
- dodir /etc |
382 |
- diropts -m0750 -o root -g radius |
383 |
- dodir /etc/raddb |
384 |
- diropts -m0750 -o radius -g radius |
385 |
- dodir /var/log/radius |
386 |
- keepdir /var/log/radius/radacct |
387 |
- diropts |
388 |
- |
389 |
- emake LIBTOOL=libtool R="${D}" install |
390 |
- |
391 |
- fowners -R root:radius /etc/raddb |
392 |
- |
393 |
- # Fixing pidfile location (#546482) |
394 |
- sed \ |
395 |
- '/^run_dir =/s@${localstatedir}@@' \ |
396 |
- -i "${D}"/etc/raddb/radiusd.conf || die |
397 |
- |
398 |
- pamd_mimic_system radiusd auth account password session |
399 |
- |
400 |
- dodoc CREDITS |
401 |
- |
402 |
- rm "${D}/usr/sbin/rc.radiusd" || die |
403 |
- |
404 |
- newinitd "${FILESDIR}/radius.init-r3" radiusd |
405 |
- newconfd "${FILESDIR}/radius.conf-r3" radiusd |
406 |
-} |
407 |
- |
408 |
-pkg_config() { |
409 |
- if use ssl; then |
410 |
- cd "${ROOT}"/etc/raddb/certs |
411 |
- ./bootstrap |
412 |
- fi |
413 |
-} |
414 |
- |
415 |
-pkg_preinst() { |
416 |
- if ! has_version ${CATEGORY}/${PN} && use ssl; then |
417 |
- elog "You have to run \`emerge --config =${CATEGORY}/${PF}\` to be able" |
418 |
- elog "to start the radiusd service." |
419 |
- fi |
420 |
-} |
421 |
|
422 |
diff --git a/net-dialup/freeradius/freeradius-3.0.11.ebuild b/net-dialup/freeradius/freeradius-3.0.11.ebuild |
423 |
deleted file mode 100644 |
424 |
index 900a8f8..0000000 |
425 |
--- a/net-dialup/freeradius/freeradius-3.0.11.ebuild |
426 |
+++ /dev/null |
427 |
@@ -1,216 +0,0 @@ |
428 |
-# Copyright 1999-2016 Gentoo Foundation |
429 |
-# Distributed under the terms of the GNU General Public License v2 |
430 |
-# $Id$ |
431 |
- |
432 |
-EAPI=6 |
433 |
- |
434 |
-PYTHON_COMPAT=( python2_7 ) |
435 |
-inherit autotools eutils pam python-any-r1 user |
436 |
- |
437 |
-#PATCHSET=4 |
438 |
- |
439 |
-MY_P="${PN}-server-${PV}" |
440 |
- |
441 |
-DESCRIPTION="Highly configurable free RADIUS server" |
442 |
-SRC_URI=" |
443 |
- ftp://ftp.freeradius.org/pub/radius/${MY_P}.tar.gz |
444 |
- ftp://ftp.freeradius.org/pub/radius/old/${MY_P}.tar.gz |
445 |
-" |
446 |
-HOMEPAGE="http://www.freeradius.org/" |
447 |
- |
448 |
-KEYWORDS="" |
449 |
-LICENSE="GPL-2" |
450 |
-SLOT="0" |
451 |
- |
452 |
-IUSE=" |
453 |
- debug firebird iodbc kerberos ldap mysql odbc oracle pam pcap |
454 |
- postgres python readline sqlite ssl |
455 |
-" |
456 |
-RESTRICT="test firebird? ( bindist )" |
457 |
- |
458 |
-RDEPEND="!net-dialup/cistronradius |
459 |
- !net-dialup/gnuradius |
460 |
- sys-devel/libtool |
461 |
- dev-lang/perl |
462 |
- sys-libs/gdbm |
463 |
- sys-libs/talloc |
464 |
- python? ( ${PYTHON_DEPS} ) |
465 |
- readline? ( sys-libs/readline:0= ) |
466 |
- pcap? ( net-libs/libpcap ) |
467 |
- mysql? ( virtual/mysql ) |
468 |
- postgres? ( dev-db/postgresql:= ) |
469 |
- firebird? ( dev-db/firebird ) |
470 |
- pam? ( virtual/pam ) |
471 |
- ssl? ( dev-libs/openssl:0= ) |
472 |
- ldap? ( net-nds/openldap ) |
473 |
- kerberos? ( virtual/krb5 ) |
474 |
- sqlite? ( dev-db/sqlite:3 ) |
475 |
- odbc? ( dev-db/unixODBC ) |
476 |
- iodbc? ( dev-db/libiodbc ) |
477 |
- oracle? ( dev-db/oracle-instantclient-basic )" |
478 |
-DEPEND="${RDEPEND}" |
479 |
- |
480 |
-S="${WORKDIR}/${MY_P}" |
481 |
- |
482 |
-pkg_setup() { |
483 |
- enewgroup radius |
484 |
- enewuser radius -1 -1 /var/log/radius radius |
485 |
- |
486 |
- python-any-r1_pkg_setup |
487 |
- export PYTHONBIN="${EPYTHON}" |
488 |
-} |
489 |
- |
490 |
-src_prepare() { |
491 |
- # most of the configuration options do not appear as ./configure |
492 |
- # switches. Instead it identifies the directories that are available |
493 |
- # and run through them. These might check for the presence of |
494 |
- # various libraries, in which case they are not built. To avoid |
495 |
- # automagic dependencies, we just remove all the modules that we're |
496 |
- # not interested in using. |
497 |
- |
498 |
- use ssl || { rm -r src/modules/rlm_eap/types/rlm_eap_{tls,ttls,peap} || die ; } |
499 |
- use ldap || { rm -r src/modules/rlm_ldap || die ; } |
500 |
- use kerberos || { rm -r src/modules/rlm_krb5 || die ; } |
501 |
- use pam || { rm -r src/modules/rlm_pam || die ; } |
502 |
- use python || { rm -r src/modules/rlm_python || die ; } |
503 |
- # Do not install ruby rlm module, bug #483108 |
504 |
- rm -r src/modules/rlm_ruby || die |
505 |
- |
506 |
- # these are all things we don't have in portage/I don't want to deal |
507 |
- # with myself |
508 |
- rm -r src/modules/rlm_eap/types/rlm_eap_tnc || die # requires TNCS library |
509 |
- rm -r src/modules/rlm_eap/types/rlm_eap_ikev2 || die # requires libeap-ikev2 |
510 |
- rm -r src/modules/rlm_opendirectory || die # requires some membership.h |
511 |
- rm -r src/modules/rlm_redis{,who} || die # requires redis |
512 |
- rm -r src/modules/rlm_sql/drivers/rlm_sql_{db2,freetds} || die |
513 |
- |
514 |
- # sql drivers that are not part of experimental are loaded from a |
515 |
- # file, so we have to remove them from the file itself when we |
516 |
- # remove them. |
517 |
- usesqldriver() { |
518 |
- local flag=$1 |
519 |
- local driver=rlm_sql_${2:-${flag}} |
520 |
- |
521 |
- if ! use ${flag}; then |
522 |
- rm -r src/modules/rlm_sql/drivers/${driver} || die |
523 |
- sed -i -e /${driver}/d src/modules/rlm_sql/stable || die |
524 |
- fi |
525 |
- } |
526 |
- |
527 |
- sed -i \ |
528 |
- -e 's:/var/run/radiusd:/run/radiusd:g' \ |
529 |
- -e '/^run_dir/s:${localstatedir}::g' \ |
530 |
- raddb/radiusd.conf.in || die |
531 |
- |
532 |
- # verbosity |
533 |
- # build shared libraries using jlibtool --shared |
534 |
- sed -i \ |
535 |
- -e '/$(LIBTOOL)/s|--quiet ||g' \ |
536 |
- -e 's:--mode=\(compile\|link\):& --shared:g' \ |
537 |
- Make.inc.in || die |
538 |
- |
539 |
- sed -i \ |
540 |
- -e 's|--silent ||g' \ |
541 |
- -e 's:--mode=\(compile\|link\):& --shared:g' \ |
542 |
- scripts/libtool.mk || die |
543 |
- |
544 |
- # crude measure to stop jlibtool from running ranlib and ar |
545 |
- sed -i \ |
546 |
- -e '/LIBRARIAN/s|".*"|"true"|g' \ |
547 |
- -e '/RANLIB/s|".*"|"true"|g' \ |
548 |
- scripts/jlibtool.c || die |
549 |
- |
550 |
- usesqldriver mysql |
551 |
- usesqldriver postgres postgresql |
552 |
- usesqldriver firebird |
553 |
- usesqldriver iodbc |
554 |
- usesqldriver odbc unixodbc |
555 |
- usesqldriver oracle |
556 |
- usesqldriver sqlite |
557 |
- |
558 |
- default |
559 |
- |
560 |
- eautoreconf |
561 |
-} |
562 |
- |
563 |
-src_configure() { |
564 |
- # fix bug #77613 |
565 |
- if has_version app-crypt/heimdal; then |
566 |
- myconf+=( --enable-heimdal-krb5 ) |
567 |
- fi |
568 |
- |
569 |
- use readline || export ac_cv_lib_readline=no |
570 |
- use pcap || export ac_cv_lib_pcap_pcap_open_live=no |
571 |
- |
572 |
- # do not try to enable static with static-libs; upstream is a |
573 |
- # massacre of libtool best practices so you also have to make sure |
574 |
- # to --enable-shared explicitly. |
575 |
- econf \ |
576 |
- --enable-shared \ |
577 |
- --disable-static \ |
578 |
- --disable-ltdl-install \ |
579 |
- --with-system-libtool \ |
580 |
- --with-system-libltdl \ |
581 |
- --with-ascend-binary \ |
582 |
- --with-udpfromto \ |
583 |
- --with-dhcp \ |
584 |
- --with-iodbc-include-dir=/usr/include/iodbc \ |
585 |
- --with-experimental-modules \ |
586 |
- --with-docdir=/usr/share/doc/${PF} \ |
587 |
- --with-logdir=/var/log/radius \ |
588 |
- $(use_enable debug developer) \ |
589 |
- $(use_with ldap edir) \ |
590 |
- $(use_with ssl openssl) \ |
591 |
- ${myconf[@]} |
592 |
-} |
593 |
- |
594 |
-src_compile() { |
595 |
- # verbose, do not generate certificates |
596 |
- emake \ |
597 |
- Q='' ECHO=true \ |
598 |
- LOCAL_CERT_PRODUCTS='' |
599 |
-} |
600 |
- |
601 |
-src_install() { |
602 |
- dodir /etc |
603 |
- diropts -m0750 -o root -g radius |
604 |
- dodir /etc/raddb |
605 |
- diropts -m0750 -o radius -g radius |
606 |
- dodir /var/log/radius |
607 |
- keepdir /var/log/radius/radacct |
608 |
- diropts |
609 |
- |
610 |
- # verbose, do not install certificates |
611 |
- emake -j1 \ |
612 |
- Q='' ECHO=true \ |
613 |
- LOCAL_CERT_PRODUCTS='' \ |
614 |
- R="${D}" \ |
615 |
- install |
616 |
- |
617 |
- fowners -R root:radius /etc/raddb |
618 |
- |
619 |
- pamd_mimic_system radiusd auth account password session |
620 |
- |
621 |
- dodoc CREDITS |
622 |
- |
623 |
- rm "${D}/usr/sbin/rc.radiusd" || die |
624 |
- |
625 |
- newinitd "${FILESDIR}/radius.init-r3" radiusd |
626 |
- newconfd "${FILESDIR}/radius.conf-r3" radiusd |
627 |
- |
628 |
- prune_libtool_files |
629 |
-} |
630 |
- |
631 |
-pkg_config() { |
632 |
- if use ssl; then |
633 |
- cd "${ROOT}"/etc/raddb/certs |
634 |
- ./bootstrap |
635 |
- fi |
636 |
-} |
637 |
- |
638 |
-pkg_preinst() { |
639 |
- if ! has_version ${CATEGORY}/${PN} && use ssl; then |
640 |
- elog "You have to run \`emerge --config =${CATEGORY}/${PF}\` to be able" |
641 |
- elog "to start the radiusd service." |
642 |
- fi |
643 |
-} |