1 |
commit: 5cc8b11d5071ded23edc8556cb3746b976362928 |
2 |
Author: Daniele Rondina <geaaru <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Mar 8 18:02:17 2019 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 10 23:01:52 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cc8b11d |
7 |
|
8 |
net-dialup/freeradius: drop v.3.0.15. |
9 |
|
10 |
Package-Manager: Portage-2.3.51, Repoman-2.3.12 |
11 |
Signed-off-by: Daniele Rondina <geaaru <AT> gmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/11304 |
13 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
14 |
|
15 |
net-dialup/freeradius/Manifest | 1 - |
16 |
net-dialup/freeradius/freeradius-3.0.15.ebuild | 228 ------------------------- |
17 |
2 files changed, 229 deletions(-) |
18 |
|
19 |
diff --git a/net-dialup/freeradius/Manifest b/net-dialup/freeradius/Manifest |
20 |
index a82866d5b03..bbff14070c2 100644 |
21 |
--- a/net-dialup/freeradius/Manifest |
22 |
+++ b/net-dialup/freeradius/Manifest |
23 |
@@ -1,2 +1 @@ |
24 |
-DIST freeradius-server-3.0.15.tar.gz 4818244 BLAKE2B 24cded2c4f0c6fc6a6135058c40bb2c9d100a55161f2edfc388efba991ff85ecd0f546bc2008cc0c50f2753cf93ece8e67dc3fc0fe13a8b935193ff1f68514b9 SHA512 9b92045b445032bde9d421499fdc0f6a08d602c501730c31a8d3974b21cc5c12c78abb024ed62a176c7aa7fe260fe1d19386aaf558e0fecfcd3a0ba7aa47499c |
25 |
DIST freeradius-server-3.0.17.tar.gz 4843020 BLAKE2B 9e1f54a9f5ad8ede471881ffe4ec987c3ac655a3c39fcd920094760c006102be02f3b7f25b14379a0bac876ac0944e8698c2781bbd804cd22d8b915b6c13a693 SHA512 381222e452288c56a1bf68953be57379a5568f0c92de022abc3004cc6a15078d46535b867b31801de3eb096ba7af92e745e79decfa7cc8151a1ffb371b1aea79 |
26 |
|
27 |
diff --git a/net-dialup/freeradius/freeradius-3.0.15.ebuild b/net-dialup/freeradius/freeradius-3.0.15.ebuild |
28 |
deleted file mode 100644 |
29 |
index bf595e6d93b..00000000000 |
30 |
--- a/net-dialup/freeradius/freeradius-3.0.15.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,228 +0,0 @@ |
33 |
-# Copyright 1999-2018 Gentoo Foundation |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=6 |
37 |
- |
38 |
-PYTHON_COMPAT=( python2_7 ) |
39 |
-inherit autotools pam python-single-r1 systemd user |
40 |
- |
41 |
-MY_P="${PN}-server-${PV}" |
42 |
- |
43 |
-DESCRIPTION="Highly configurable free RADIUS server" |
44 |
-SRC_URI=" |
45 |
- ftp://ftp.freeradius.org/pub/radius/${MY_P}.tar.gz |
46 |
- ftp://ftp.freeradius.org/pub/radius/old/${MY_P}.tar.gz |
47 |
-" |
48 |
-HOMEPAGE="http://www.freeradius.org/" |
49 |
- |
50 |
-KEYWORDS="amd64 ~arm ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" |
51 |
-LICENSE="GPL-2" |
52 |
-SLOT="0" |
53 |
- |
54 |
-IUSE=" |
55 |
- debug firebird iodbc kerberos ldap libressl mysql odbc oracle pam pcap |
56 |
- postgres python readline sqlite ssl |
57 |
-" |
58 |
-RESTRICT="test firebird? ( bindist )" |
59 |
- |
60 |
-RDEPEND="!net-dialup/cistronradius |
61 |
- !net-dialup/gnuradius |
62 |
- sys-devel/libtool |
63 |
- dev-lang/perl:= |
64 |
- sys-libs/gdbm:= |
65 |
- sys-libs/talloc |
66 |
- python? ( ${PYTHON_DEPS} ) |
67 |
- readline? ( sys-libs/readline:0= ) |
68 |
- pcap? ( net-libs/libpcap ) |
69 |
- mysql? ( dev-db/mysql-connector-c:= ) |
70 |
- postgres? ( dev-db/postgresql:= ) |
71 |
- firebird? ( dev-db/firebird ) |
72 |
- pam? ( virtual/pam ) |
73 |
- ssl? ( |
74 |
- !libressl? ( dev-libs/openssl:0= ) |
75 |
- libressl? ( dev-libs/libressl:0= ) |
76 |
- ) |
77 |
- ldap? ( net-nds/openldap ) |
78 |
- kerberos? ( virtual/krb5 ) |
79 |
- sqlite? ( dev-db/sqlite:3 ) |
80 |
- odbc? ( dev-db/unixODBC ) |
81 |
- iodbc? ( dev-db/libiodbc ) |
82 |
- oracle? ( dev-db/oracle-instantclient-basic )" |
83 |
-DEPEND="${RDEPEND}" |
84 |
- |
85 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
86 |
- |
87 |
-S="${WORKDIR}/${MY_P}" |
88 |
- |
89 |
-pkg_setup() { |
90 |
- enewgroup radius |
91 |
- enewuser radius -1 -1 /var/log/radius radius |
92 |
- |
93 |
- python-single-r1_pkg_setup |
94 |
- export PYTHONBIN="${EPYTHON}" |
95 |
-} |
96 |
- |
97 |
-src_prepare() { |
98 |
- # most of the configuration options do not appear as ./configure |
99 |
- # switches. Instead it identifies the directories that are available |
100 |
- # and run through them. These might check for the presence of |
101 |
- # various libraries, in which case they are not built. To avoid |
102 |
- # automagic dependencies, we just remove all the modules that we're |
103 |
- # not interested in using. |
104 |
- |
105 |
- use ssl || { rm -r src/modules/rlm_eap/types/rlm_eap_{tls,ttls,peap} || die ; } |
106 |
- use ldap || { rm -r src/modules/rlm_ldap || die ; } |
107 |
- use kerberos || { rm -r src/modules/rlm_krb5 || die ; } |
108 |
- use pam || { rm -r src/modules/rlm_pam || die ; } |
109 |
- use python || { rm -r src/modules/rlm_python || die ; } |
110 |
- # Do not install ruby rlm module, bug #483108 |
111 |
- rm -r src/modules/rlm_ruby || die |
112 |
- |
113 |
- # these are all things we don't have in portage/I don't want to deal |
114 |
- # with myself |
115 |
- rm -r src/modules/rlm_eap/types/rlm_eap_tnc || die # requires TNCS library |
116 |
- rm -r src/modules/rlm_eap/types/rlm_eap_ikev2 || die # requires libeap-ikev2 |
117 |
- rm -r src/modules/rlm_opendirectory || die # requires some membership.h |
118 |
- rm -r src/modules/rlm_redis{,who} || die # requires redis |
119 |
- rm -r src/modules/rlm_sql/drivers/rlm_sql_{db2,freetds} || die |
120 |
- |
121 |
- # sql drivers that are not part of experimental are loaded from a |
122 |
- # file, so we have to remove them from the file itself when we |
123 |
- # remove them. |
124 |
- usesqldriver() { |
125 |
- local flag=$1 |
126 |
- local driver=rlm_sql_${2:-${flag}} |
127 |
- |
128 |
- if ! use ${flag}; then |
129 |
- rm -r src/modules/rlm_sql/drivers/${driver} || die |
130 |
- sed -i -e /${driver}/d src/modules/rlm_sql/stable || die |
131 |
- fi |
132 |
- } |
133 |
- |
134 |
- sed -i \ |
135 |
- -e 's:^#\tuser = :\tuser = :g' \ |
136 |
- -e 's:^#\tgroup = :\tgroup = :g' \ |
137 |
- -e 's:/var/run/radiusd:/run/radiusd:g' \ |
138 |
- -e '/^run_dir/s:${localstatedir}::g' \ |
139 |
- raddb/radiusd.conf.in || die |
140 |
- |
141 |
- # verbosity |
142 |
- # build shared libraries using jlibtool --shared |
143 |
- sed -i \ |
144 |
- -e '/$(LIBTOOL)/s|--quiet ||g' \ |
145 |
- -e 's:--mode=\(compile\|link\):& --shared:g' \ |
146 |
- Make.inc.in || die |
147 |
- |
148 |
- sed -i \ |
149 |
- -e 's|--silent ||g' \ |
150 |
- -e 's:--mode=\(compile\|link\):& --shared:g' \ |
151 |
- scripts/libtool.mk || die |
152 |
- |
153 |
- # crude measure to stop jlibtool from running ranlib and ar |
154 |
- sed -i \ |
155 |
- -e '/LIBRARIAN/s|".*"|"true"|g' \ |
156 |
- -e '/RANLIB/s|".*"|"true"|g' \ |
157 |
- scripts/jlibtool.c || die |
158 |
- |
159 |
- usesqldriver mysql |
160 |
- usesqldriver postgres postgresql |
161 |
- usesqldriver firebird |
162 |
- usesqldriver iodbc |
163 |
- usesqldriver odbc unixodbc |
164 |
- usesqldriver oracle |
165 |
- usesqldriver sqlite |
166 |
- |
167 |
- default |
168 |
- |
169 |
- eautoreconf |
170 |
-} |
171 |
- |
172 |
-src_configure() { |
173 |
- # fix bug #77613 |
174 |
- local myeconfargs=() |
175 |
- if has_version app-crypt/heimdal; then |
176 |
- myeconfargs+=( --enable-heimdal-krb5 ) |
177 |
- fi |
178 |
- |
179 |
- use readline || export ac_cv_lib_readline=no |
180 |
- use pcap || export ac_cv_lib_pcap_pcap_open_live=no |
181 |
- |
182 |
- # do not try to enable static with static-libs; upstream is a |
183 |
- # massacre of libtool best practices so you also have to make sure |
184 |
- # to --enable-shared explicitly. |
185 |
- myeconfargs+=( |
186 |
- --enable-shared |
187 |
- --disable-static |
188 |
- --disable-ltdl-install |
189 |
- --with-system-libtool |
190 |
- --with-system-libltdl |
191 |
- --with-ascend-binary |
192 |
- --with-udpfromto |
193 |
- --with-dhcp |
194 |
- --with-iodbc-include-dir=/usr/include/iodbc |
195 |
- --with-experimental-modules |
196 |
- --with-docdir=/usr/share/doc/${PF} |
197 |
- --with-logdir=/var/log/radius |
198 |
- $(use_enable debug developer) |
199 |
- $(use_with ldap edir) |
200 |
- $(use_with ssl openssl) |
201 |
- ) |
202 |
- econf "${myeconfargs[@]}" |
203 |
-} |
204 |
- |
205 |
-src_compile() { |
206 |
- # verbose, do not generate certificates |
207 |
- emake \ |
208 |
- Q='' ECHO=true \ |
209 |
- LOCAL_CERT_PRODUCTS='' |
210 |
-} |
211 |
- |
212 |
-src_install() { |
213 |
- dodir /etc |
214 |
- diropts -m0750 -o root -g radius |
215 |
- dodir /etc/raddb |
216 |
- diropts -m0750 -o radius -g radius |
217 |
- dodir /var/log/radius |
218 |
- keepdir /var/log/radius/radacct |
219 |
- diropts |
220 |
- |
221 |
- # verbose, do not install certificates |
222 |
- # Parallel install fails (#509498) |
223 |
- emake -j1 \ |
224 |
- Q='' ECHO=true \ |
225 |
- LOCAL_CERT_PRODUCTS='' \ |
226 |
- R="${D}" \ |
227 |
- install |
228 |
- |
229 |
- fowners -R root:radius /etc/raddb |
230 |
- |
231 |
- pamd_mimic_system radiusd auth account password session |
232 |
- |
233 |
- dodoc CREDITS |
234 |
- |
235 |
- rm "${D}/usr/sbin/rc.radiusd" || die |
236 |
- |
237 |
- newinitd "${FILESDIR}/radius.init-r3" radiusd |
238 |
- newconfd "${FILESDIR}/radius.conf-r4" radiusd |
239 |
- |
240 |
- systemd_newtmpfilesd "${FILESDIR}"/freeradius.tmpfiles freeradius.conf |
241 |
- systemd_dounit "${FILESDIR}"/freeradius.service |
242 |
- |
243 |
- find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die |
244 |
-} |
245 |
- |
246 |
-pkg_config() { |
247 |
- if use ssl; then |
248 |
- cd "${ROOT}"/etc/raddb/certs |
249 |
- ./bootstrap |
250 |
- |
251 |
- chown -R root:radius "${ROOT}"/etc/raddb/certs |
252 |
- fi |
253 |
-} |
254 |
- |
255 |
-pkg_preinst() { |
256 |
- if ! has_version ${CATEGORY}/${PN} && use ssl; then |
257 |
- elog "You have to run \`emerge --config =${CATEGORY}/${PF}\` to be able" |
258 |
- elog "to start the radiusd service." |
259 |
- fi |
260 |
-} |