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