Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dialup/freeradius: freeradius-3.0.3.ebuild ChangeLog freeradius-3.0.2.ebuild freeradius-3.0.2-r1.ebuild
Date: Sat, 07 Jun 2014 13:49:28
Message-Id: 20140607134923.EE9A82004E@flycatcher.gentoo.org
1 jer 14/06/07 13:49:23
2
3 Modified: ChangeLog
4 Added: freeradius-3.0.3.ebuild
5 Removed: freeradius-3.0.2.ebuild freeradius-3.0.2-r1.ebuild
6 Log:
7 Version bump. Remove CVS header from script.
8
9 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
10
11 Revision Changes Path
12 1.128 net-dialup/freeradius/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/ChangeLog?rev=1.128&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/ChangeLog?rev=1.128&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/ChangeLog?r1=1.127&r2=1.128
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-dialup/freeradius/ChangeLog,v
21 retrieving revision 1.127
22 retrieving revision 1.128
23 diff -u -r1.127 -r1.128
24 --- ChangeLog 19 May 2014 15:59:36 -0000 1.127
25 +++ ChangeLog 7 Jun 2014 13:49:23 -0000 1.128
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-dialup/freeradius
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/ChangeLog,v 1.127 2014/05/19 15:59:36 jer Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/ChangeLog,v 1.128 2014/06/07 13:49:23 jer Exp $
31 +
32 +*freeradius-3.0.3 (07 Jun 2014)
33 +
34 + 07 Jun 2014; Jeroen Roovers <jer@g.o> -freeradius-3.0.2.ebuild,
35 + -freeradius-3.0.2-r1.ebuild, +freeradius-3.0.3.ebuild, files/radius.init-r3:
36 + Version bump. Remove CVS header from script.
37
38 19 May 2014; Jeroen Roovers <jer@g.o> files/radius.init-r3:
39 Fix /run subdir to match init.d script.
40
41
42
43 1.1 net-dialup/freeradius/freeradius-3.0.3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/freeradius-3.0.3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/freeradius-3.0.3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: freeradius-3.0.3.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/freeradius-3.0.3.ebuild,v 1.1 2014/06/07 13:49:23 jer Exp $
53
54 EAPI=5
55
56 PYTHON_COMPAT=( python2_7 )
57 inherit autotools eutils pam python-any-r1 user
58
59 PATCHSET=4
60
61 MY_P="${PN}-server-${PV}"
62
63 DESCRIPTION="Highly configurable free RADIUS server"
64 SRC_URI="
65 ftp://ftp.freeradius.org/pub/radius/${MY_P}.tar.gz
66 ftp://ftp.freeradius.org/pub/radius/old/${MY_P}.tar.gz
67 "
68 HOMEPAGE="http://www.freeradius.org/"
69
70 KEYWORDS=""
71 LICENSE="GPL-2"
72 SLOT="0"
73
74 IUSE="
75 bindist debug firebird iodbc kerberos ldap mysql odbc oracle pam pcap
76 postgres python readline sqlite ssl
77 "
78
79 REQUIRED_USE="bindist? ( !firebird )"
80
81 RDEPEND="!net-dialup/cistronradius
82 !net-dialup/gnuradius
83 sys-devel/libtool
84 dev-lang/perl
85 sys-libs/gdbm
86 python? ( ${PYTHON_DEPS} )
87 readline? ( sys-libs/readline )
88 pcap? ( net-libs/libpcap )
89 mysql? ( virtual/mysql )
90 postgres? ( dev-db/postgresql-base )
91 firebird? ( dev-db/firebird )
92 pam? ( virtual/pam )
93 ssl? ( dev-libs/openssl )
94 ldap? ( net-nds/openldap )
95 kerberos? ( virtual/krb5 )
96 sqlite? ( dev-db/sqlite:3 )
97 odbc? ( dev-db/unixODBC )
98 iodbc? ( dev-db/libiodbc )
99 oracle? ( dev-db/oracle-instantclient-basic )"
100 DEPEND="${RDEPEND}"
101
102 S="${WORKDIR}/${MY_P}"
103
104 RESTRICT="test"
105
106 pkg_setup() {
107 enewgroup radius
108 enewuser radius -1 -1 /var/log/radius radius
109
110 python-any-r1_pkg_setup
111 export PYTHONBIN="${EPYTHON}"
112 }
113
114 src_prepare() {
115 # most of the configuration options do not appear as ./configure
116 # switches. Instead it identifies the directories that are available
117 # and run through them. These might check for the presence of
118 # various libraries, in which case they are not built. To avoid
119 # automagic dependencies, we just remove all the modules that we're
120 # not interested in using.
121
122 use ssl || rm -r src/modules/rlm_eap/types/rlm_eap_{tls,ttls,peap}
123 use ldap || rm -r src/modules/rlm_ldap
124 use kerberos || rm -r src/modules/rlm_krb5
125 use pam || rm -r src/modules/rlm_pam
126 use python || rm -r src/modules/rlm_python
127 # Do not install ruby rlm module, bug #483108
128 rm -r src/modules/rlm_ruby
129
130 # these are all things we don't have in portage/I don't want to deal
131 # with myself
132 rm -r src/modules/rlm_eap/types/rlm_eap_tnc # requires TNCS library
133 rm -r src/modules/rlm_eap/types/rlm_eap_ikev2 # requires libeap-ikev2
134 rm -r src/modules/rlm_opendirectory # requires some membership.h
135 rm -r src/modules/rlm_redis{,who} # requires redis
136 rm -r src/modules/rlm_sql/drivers/rlm_sql_{db2,freetds}
137
138 # sql drivers that are not part of experimental are loaded from a
139 # file, so we have to remove them from the file itself when we
140 # remove them.
141 usesqldriver() {
142 local flag=$1
143 local driver=rlm_sql_${2:-${flag}}
144
145 if ! use ${flag}; then
146 rm -r src/modules/rlm_sql/drivers/${driver} || die
147 sed -i -e /${driver}/d src/modules/rlm_sql/stable || die
148 fi
149 }
150
151 sed -i \
152 -e 's:/var/run/radiusd:/run/radiusd:g' \
153 -e '/^run_dir/s:${localstatedir}::g' \
154 raddb/radiusd.conf.in || die
155
156 # verbosity
157 # build shared libraries using jlibtool --shared
158 sed -i \
159 -e '/$(LIBTOOL)/s|--quiet ||g' \
160 -e 's:--mode=\(compile\|link\):& --shared:g' \
161 Make.inc.in || die
162
163 sed -i \
164 -e 's|--silent ||g' \
165 -e 's:--mode=\(compile\|link\):& --shared:g' \
166 scripts/libtool.mk || die
167
168 # crude measure to stop jlibtool from running ranlib and ar
169 sed -i \
170 -e '/LIBRARIAN/s|".*"|"true"|g' \
171 -e '/RANLIB/s|".*"|"true"|g' \
172 scripts/jlibtool.c || die
173
174 usesqldriver mysql
175 usesqldriver postgres postgresql
176 usesqldriver firebird
177 usesqldriver iodbc
178 usesqldriver odbc unixodbc
179 usesqldriver oracle
180 usesqldriver sqlite
181
182 epatch_user
183
184 eautoreconf
185 }
186
187 src_configure() {
188 # fix bug #77613
189 if has_version app-crypt/heimdal; then
190 myconf="${myconf} --enable-heimdal-krb5"
191 fi
192
193 use readline || export ac_cv_lib_readline=no
194 use pcap || export ac_cv_lib_pcap_pcap_open_live=no
195
196 # do not try to enable static with static-libs; upstream is a
197 # massacre of libtool best practices so you also have to make sure
198 # to --enable-shared explicitly.
199 econf \
200 --enable-shared \
201 --disable-static \
202 --disable-ltdl-install \
203 --with-system-libtool \
204 --with-system-libltdl \
205 --with-ascend-binary \
206 --with-udpfromto \
207 --with-dhcp \
208 --with-iodbc-include-dir=/usr/include/iodbc \
209 --with-experimental-modules \
210 --with-docdir=/usr/share/doc/${PF} \
211 --with-logdir=/var/log/radius \
212 $(use_enable debug developer) \
213 $(use_with ldap edir) \
214 $(use_with ssl openssl) \
215 ${myconf}
216 }
217
218 src_compile() {
219 # verbose, do not generate certificates
220 emake \
221 Q='' ECHO=true \
222 LOCAL_CERT_PRODUCTS=''
223 }
224
225 src_install() {
226 dodir /etc
227 diropts -m0750 -o root -g radius
228 dodir /etc/raddb
229 diropts -m0750 -o radius -g radius
230 dodir /var/log/radius
231 keepdir /var/log/radius/radacct
232 diropts
233
234 # verbose, do not install certificates
235 emake -j1 \
236 Q='' ECHO=true \
237 LOCAL_CERT_PRODUCTS='' \
238 R="${D}" \
239 install
240
241 fowners -R root:radius /etc/raddb
242
243 pamd_mimic_system radiusd auth account password session
244
245 dodoc CREDITS
246
247 rm "${D}/usr/sbin/rc.radiusd"
248
249 newinitd "${FILESDIR}/radius.init-r3" radiusd
250 newconfd "${FILESDIR}/radius.conf-r3" radiusd
251
252 prune_libtool_files
253 }
254
255 pkg_config() {
256 if use ssl; then
257 cd "${ROOT}"/etc/raddb/certs
258 ./bootstrap
259 fi
260 }
261
262 pkg_preinst() {
263 if ! has_version ${CATEGORY}/${PN} && use ssl; then
264 elog "You have to run \`emerge --config =${CATEGORY}/${PF}\` to be able"
265 elog "to start the radiusd service."
266 fi
267 }