Gentoo Archives: gentoo-commits

From: "Fabio Erculiani (lxnay)" <lxnay@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-nds/389-ds-base: ChangeLog 389-ds-base-1.2.6_rc3-r1.ebuild 389-ds-base-1.2.5-r1.ebuild 389-ds-base-1.2.5.ebuild 389-ds-base-1.2.6_rc3.ebuild
Date: Wed, 28 Jul 2010 13:57:03
Message-Id: 20100728135701.1A2982CF37@corvid.gentoo.org
1 lxnay 10/07/28 13:57:00
2
3 Modified: ChangeLog
4 Added: 389-ds-base-1.2.6_rc3-r1.ebuild
5 389-ds-base-1.2.5-r1.ebuild
6 Removed: 389-ds-base-1.2.5.ebuild
7 389-ds-base-1.2.6_rc3.ebuild
8 Log:
9 backport upstream patch from git, see https://bugzilla.redhat.com/show_bug.cgi?id=617629
10 (Portage version: 2.2_rc67/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.5 net-nds/389-ds-base/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/ChangeLog?rev=1.5&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/ChangeLog?rev=1.5&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/ChangeLog?r1=1.4&r2=1.5
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-nds/389-ds-base/ChangeLog,v
22 retrieving revision 1.4
23 retrieving revision 1.5
24 diff -u -r1.4 -r1.5
25 --- ChangeLog 23 Jul 2010 15:15:53 -0000 1.4
26 +++ ChangeLog 28 Jul 2010 13:57:00 -0000 1.5
27 @@ -1,6 +1,16 @@
28 # ChangeLog for net-nds/389-ds-base
29 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-nds/389-ds-base/ChangeLog,v 1.4 2010/07/23 15:15:53 lxnay Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-nds/389-ds-base/ChangeLog,v 1.5 2010/07/28 13:57:00 lxnay Exp $
32 +
33 +*389-ds-base-1.2.6_rc3-r1 (28 Jul 2010)
34 +*389-ds-base-1.2.5-r1 (28 Jul 2010)
35 +
36 + 28 Jul 2010; Fabio Erculiani <lxnay@g.o> -389-ds-base-1.2.5.ebuild,
37 + +389-ds-base-1.2.5-r1.ebuild, -389-ds-base-1.2.6_rc3.ebuild,
38 + +389-ds-base-1.2.6_rc3-r1.ebuild,
39 + +files/0001-Bug-617629-Missing-aliases-in-new-schema-files.patch:
40 + backport upstream patch from git, see
41 + https://bugzilla.redhat.com/show_bug.cgi?id=617629
42
43 *389-ds-base-1.2.5 (23 Jul 2010)
44
45
46
47
48 1.1 net-nds/389-ds-base/389-ds-base-1.2.6_rc3-r1.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/389-ds-base-1.2.6_rc3-r1.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/389-ds-base-1.2.6_rc3-r1.ebuild?rev=1.1&content-type=text/plain
52
53 Index: 389-ds-base-1.2.6_rc3-r1.ebuild
54 ===================================================================
55 # Copyright 1999-2010 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/net-nds/389-ds-base/389-ds-base-1.2.6_rc3-r1.ebuild,v 1.1 2010/07/28 13:57:00 lxnay Exp $
58
59 EAPI=2
60
61 WANT_AUTOMAKE="1.9"
62 MY_P=${P/_alpha/.a}
63 MY_P=${MY_P/_rc/.rc}
64 inherit eutils multilib flag-o-matic autotools
65
66 DESCRIPTION="389 Directory Server (core librares and daemons )"
67 HOMEPAGE="http://port389.org/"
68 SRC_URI="http://directory.fedoraproject.org/sources/${MY_P}.tar.bz2"
69
70 LICENSE="GPL-2-with-exceptions"
71 SLOT="0"
72 KEYWORDS="~amd64 ~x86"
73 IUSE="autobind auto-dn-suffix debug doc +pam-passthru +dna +ldapi +bitwise +presence kerberos selinux"
74
75 ALL_DEPEND="dev-libs/nss[utils]
76 dev-libs/nspr
77 dev-libs/svrcore
78 dev-libs/mozldap
79 >=dev-libs/cyrus-sasl-2.1.19
80 >=dev-libs/icu-3.4
81 >=sys-libs/db-4.5
82 >=net-analyzer/net-snmp-5.1.2
83 dev-libs/openssl
84 sys-apps/tcp-wrappers
85 sys-libs/pam
86 sys-libs/zlib
87 dev-perl/perl-mozldap
88 dev-libs/libpcre:3
89 kerberos? ( net-nds/openldap
90 >=app-crypt/mit-krb5-1.7-r100[ldap] )
91 selinux? ( >=sys-apps/policycoreutils-1.30.30
92 sec-policy/selinux-base-policy )"
93
94 DEPEND="${ALL_DEPEND}
95 dev-util/pkgconfig
96 sys-devel/libtool:1.5
97 doc? ( app-doc/doxygen )
98 selinux? ( sys-devel/m4 >=sys-apps/checkpolicy-1.30.12 )
99 sys-apps/sed"
100 RDEPEND="${ALL_DEPEND}
101 virtual/perl-Time-Local
102 virtual/perl-MIME-Base64"
103
104 S="${WORKDIR}/${MY_P}"
105
106 pkg_setup() {
107 enewgroup dirsrv
108 enewuser dirsrv -1 -1 -1 dirsrv
109 }
110
111 src_prepare() {
112
113 # as per 389 documentation, when 64bit, export USE_64
114 use amd64 && export USE_64=1
115
116 sed -i -e 's/nobody/dirsrv/g' configure.ac || die "sed failed on configure.ac"
117 use selinux && epatch "${FILESDIR}/1.2.6"/*selinux*.patch
118 eautoreconf
119
120 # enable nsslapd-allow-unauthenticated-binds by default
121 sed -i '/^nsslapd-allow-unauthenticated-binds/ s/off/on/' "${S}"/ldap/ldif/template-dse.ldif.in || \
122 die "cannot tweak default setting: nsslapd-allow-unauthenticated-binds"
123
124 # Fix buggy .ldiff, see RedHat #617629
125 epatch "${FILESDIR}/0001-Bug-617629-Missing-aliases-in-new-schema-files.patch"
126
127 }
128
129 src_configure() {
130 local myconf=""
131
132 use auto-dn-suffix && myconf="${myconf} --enable-auto-dn-suffix"
133 use selinux && myconf="${myconf} --with-selinux"
134
135 econf \
136 $(use_enable debug) \
137 $(use_enable pam-passthru) \
138 $(use_enable ldapi) \
139 $(use_enable autobind) \
140 $(use_enable dna) \
141 $(use_enable bitwise) \
142 $(use_enable presence) \
143 $(use_with kerberos) \
144 --enable-maintainer-mode \
145 --enable-autobind \
146 --with-fhs \
147 $myconf || die "econf failed"
148 }
149
150 src_compile() {
151 append-lfs-flags
152
153 # Use -j1 otherwise libacl-plugin.so could fail to install properly
154 emake -j1 || die "compile failed"
155 if use selinux; then
156 emake -f selinux/Makefile || die " build selinux policy failed"
157 fi
158 }
159
160 src_install () {
161 # Use -j1 otherwise libacl-plugin.so could fail to install properly
162 emake -j1 DESTDIR="${D}" install || die "emake install failed"
163
164 if use selinux;then
165 emake -f selinux/Makefile DESTDIR="${D}" install || die "Install selinux policy failed"
166 fi
167
168 # install not installed header
169 insinto /usr/include/dirsrv
170 doins ldap/servers/slapd/slapi-plugin.h
171
172 # for build free-ipa require winsync-plugin
173 doins ldap/servers/plugins/replication/winsync-plugin.h
174
175 # make sure perl scripts have a proper shebang
176 cd "${D}"/usr/share/dirsrv/script-templates/
177
178 for i in $(find ./ -iname '*.pl') ;do
179 sed -i -e 's/#{{PERL-EXEC}}/#\!\/usr\/bin\/perl/' $i || die
180 done
181
182 # remove redhat style init script
183 rm -rf "${D}"/etc/rc.d || die
184 rm -rf "${D}"/etc/default || die
185
186 # and install gentoo style init script
187 newinitd "${FILESDIR}"/389-ds.initd 389-ds
188 newinitd "${FILESDIR}"/389-ds-snmp.initd 389-ds-snmp
189
190 # install Gentoo-specific start/stop scripts
191 rm -f "${D}"/usr/sbin/{re,}start-dirsrv || die "cannot remove 389 start/stop executables"
192 exeinto /usr/sbin
193 doexe "${FILESDIR}"/{re,}start-dirsrv
194
195 # cope with libraries being in /usr/lib/dirsrv
196 dodir /etc/env.d
197 echo "LDPATH=/usr/$(get_libdir)/dirsrv" > "${D}"/etc/env.d/08dirsrv
198
199 # create the directory where our log file and database
200 diropts -m 0750 -o dirsrv -g dirsrv
201 keepdir /var/lib/dirsrv
202 dodir /var/lock/dirsrv
203
204 # snmp agent, required directory
205 keepdir /var/agentx
206 dodir /var/agentx
207
208 if use doc; then
209 cd "${S}"
210 doxygen slapi.doxy || die "cannot run doxygen"
211 dohtml -r docs/html
212 fi
213 }
214
215 pkg_postinst() {
216 if use selinux; then
217 if has "loadpolicy" $FEATURES; then
218 einfo "Inserting the following modules into the module store"
219 cd /usr/share/selinux/targeted # struct policy not supported
220 semodule -s dirsrv -i dirsrv.pp
221 else
222 elog
223 elog "Policy has not been loaded. It is strongly suggested"
224 elog "that the policy be loaded before continuing!!"
225 elog
226 elog "Automatic policy loading can be enabled by adding"
227 elog "\"loadpolicy\" to the FEATURES in make.conf."
228 elog
229 ebeep 4
230 fi
231 fi
232
233 elog
234 elog "If you are planning to use 389-ds-snmp (ldap-agent),"
235 elog "make sure to properly configure: /etc/dirsrv/config/ldap-agent.conf"
236 elog "adding proper 'server' entries, and adding the lines below to"
237 elog " => /etc/snmp/snmpd.conf"
238 elog
239 elog "master agentx"
240 elog "agentXSocket /var/agentx/master"
241 elog
242 elog
243 elog "To start 389 Directory Server (LDAP service) at boot:"
244 elog
245 elog " rc-update add 389-ds default"
246 elog
247 }
248
249
250
251 1.1 net-nds/389-ds-base/389-ds-base-1.2.5-r1.ebuild
252
253 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/389-ds-base-1.2.5-r1.ebuild?rev=1.1&view=markup
254 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/389-ds-base-1.2.5-r1.ebuild?rev=1.1&content-type=text/plain
255
256 Index: 389-ds-base-1.2.5-r1.ebuild
257 ===================================================================
258 # Copyright 1999-2010 Gentoo Foundation
259 # Distributed under the terms of the GNU General Public License v2
260 # $Header: /var/cvsroot/gentoo-x86/net-nds/389-ds-base/389-ds-base-1.2.5-r1.ebuild,v 1.1 2010/07/28 13:57:00 lxnay Exp $
261
262 EAPI=2
263
264 WANT_AUTOMAKE="1.9"
265 MY_P=${P/_alpha/.a}
266 MY_P=${MY_P/_rc/.rc}
267 inherit eutils multilib flag-o-matic autotools
268
269 DESCRIPTION="389 Directory Server (core librares and daemons )"
270 HOMEPAGE="http://port389.org/"
271 SRC_URI="http://directory.fedoraproject.org/sources/${MY_P}.tar.bz2"
272
273 LICENSE="GPL-2-with-exceptions"
274 SLOT="0"
275 KEYWORDS="~amd64 ~x86"
276 IUSE="autobind auto-dn-suffix debug doc +pam-passthru +dna +ldapi +bitwise +presence kerberos selinux"
277
278 ALL_DEPEND="dev-libs/nss[utils]
279 dev-libs/nspr
280 dev-libs/svrcore
281 dev-libs/mozldap
282 >=dev-libs/cyrus-sasl-2.1.19
283 >=dev-libs/icu-3.4
284 >=sys-libs/db-4.5
285 >=net-analyzer/net-snmp-5.1.2
286 dev-libs/openssl
287 sys-apps/tcp-wrappers
288 sys-libs/pam
289 sys-libs/zlib
290 dev-perl/perl-mozldap
291 dev-libs/libpcre:3
292 kerberos? ( net-nds/openldap
293 >=app-crypt/mit-krb5-1.7-r100[ldap] )
294 selinux? ( >=sys-apps/policycoreutils-1.30.30
295 sec-policy/selinux-base-policy )"
296
297 DEPEND="${ALL_DEPEND}
298 dev-util/pkgconfig
299 sys-devel/libtool:1.5
300 doc? ( app-doc/doxygen )
301 selinux? ( sys-devel/m4 >=sys-apps/checkpolicy-1.30.12 )
302 sys-apps/sed"
303 RDEPEND="${ALL_DEPEND}
304 virtual/perl-Time-Local
305 virtual/perl-MIME-Base64"
306
307 S="${WORKDIR}/${MY_P}"
308
309 pkg_setup() {
310 enewgroup dirsrv
311 enewuser dirsrv -1 -1 -1 dirsrv
312 }
313
314 src_prepare() {
315
316 # as per 389 documentation, when 64bit, export USE_64
317 use amd64 && export USE_64=1
318
319 sed -i -e 's/nobody/dirsrv/g' configure.ac || die "sed failed on configure.ac"
320 use selinux && epatch "${FILESDIR}/1.2.6"/*selinux*.patch
321 eautoreconf
322
323 # enable nsslapd-allow-unauthenticated-binds by default
324 sed -i '/^nsslapd-allow-unauthenticated-binds/ s/off/on/' "${S}"/ldap/ldif/template-dse.ldif.in || \
325 die "cannot tweak default setting: nsslapd-allow-unauthenticated-binds"
326
327 # Fix buggy .ldiff, see RedHat #617629
328 epatch "${FILESDIR}/0001-Bug-617629-Missing-aliases-in-new-schema-files.patch"
329
330
331 }
332
333 src_configure() {
334 local myconf=""
335
336 use auto-dn-suffix && myconf="${myconf} --enable-auto-dn-suffix"
337 use selinux && myconf="${myconf} --with-selinux"
338
339 econf \
340 $(use_enable debug) \
341 $(use_enable pam-passthru) \
342 $(use_enable ldapi) \
343 $(use_enable autobind) \
344 $(use_enable dna) \
345 $(use_enable bitwise) \
346 $(use_enable presence) \
347 $(use_with kerberos) \
348 --enable-maintainer-mode \
349 --enable-autobind \
350 --with-fhs \
351 $myconf || die "econf failed"
352 }
353
354 src_compile() {
355 append-lfs-flags
356
357 # Use -j1 otherwise libacl-plugin.so could fail to install properly
358 emake -j1 || die "compile failed"
359 if use selinux; then
360 emake -f selinux/Makefile || die " build selinux policy failed"
361 fi
362 }
363
364 src_install () {
365 # Use -j1 otherwise libacl-plugin.so could fail to install properly
366 emake -j1 DESTDIR="${D}" install || die "emake install failed"
367
368 if use selinux;then
369 emake -f selinux/Makefile DESTDIR="${D}" install || die "Install selinux policy failed"
370 fi
371
372 # install not installed header
373 insinto /usr/include/dirsrv
374 doins ldap/servers/slapd/slapi-plugin.h
375
376 # for build free-ipa require winsync-plugin
377 doins ldap/servers/plugins/replication/winsync-plugin.h
378
379 # make sure perl scripts have a proper shebang
380 cd "${D}"/usr/share/dirsrv/script-templates/
381
382 for i in $(find ./ -iname '*.pl') ;do
383 sed -i -e 's/#{{PERL-EXEC}}/#\!\/usr\/bin\/perl/' $i || die
384 done
385
386 # remove redhat style init script
387 rm -rf "${D}"/etc/rc.d || die
388 rm -rf "${D}"/etc/default || die
389
390 # and install gentoo style init script
391 newinitd "${FILESDIR}"/389-ds.initd 389-ds
392 newinitd "${FILESDIR}"/389-ds-snmp.initd 389-ds-snmp
393
394 # install Gentoo-specific start/stop scripts
395 rm -f "${D}"/usr/sbin/{re,}start-dirsrv || die "cannot remove 389 start/stop executables"
396 exeinto /usr/sbin
397 doexe "${FILESDIR}"/{re,}start-dirsrv
398
399 # cope with libraries being in /usr/lib/dirsrv
400 dodir /etc/env.d
401 echo "LDPATH=/usr/$(get_libdir)/dirsrv" > "${D}"/etc/env.d/08dirsrv
402
403 # create the directory where our log file and database
404 diropts -m 0750 -o dirsrv -g dirsrv
405 keepdir /var/lib/dirsrv
406 dodir /var/lock/dirsrv
407
408 # snmp agent, required directory
409 keepdir /var/agentx
410 dodir /var/agentx
411
412 if use doc; then
413 cd "${S}"
414 doxygen slapi.doxy || die "cannot run doxygen"
415 dohtml -r docs/html
416 fi
417 }
418
419 pkg_postinst() {
420 if use selinux; then
421 if has "loadpolicy" $FEATURES; then
422 einfo "Inserting the following modules into the module store"
423 cd /usr/share/selinux/targeted # struct policy not supported
424 semodule -s dirsrv -i dirsrv.pp
425 else
426 elog
427 elog "Policy has not been loaded. It is strongly suggested"
428 elog "that the policy be loaded before continuing!!"
429 elog
430 elog "Automatic policy loading can be enabled by adding"
431 elog "\"loadpolicy\" to the FEATURES in make.conf."
432 elog
433 ebeep 4
434 fi
435 fi
436
437 elog
438 elog "If you are planning to use 389-ds-snmp (ldap-agent),"
439 elog "make sure to properly configure: /etc/dirsrv/config/ldap-agent.conf"
440 elog "adding proper 'server' entries, and adding the lines below to"
441 elog " => /etc/snmp/snmpd.conf"
442 elog
443 elog "master agentx"
444 elog "agentXSocket /var/agentx/master"
445 elog
446 elog
447 elog "To start 389 Directory Server (LDAP service) at boot:"
448 elog
449 elog " rc-update add 389-ds default"
450 elog
451 }