1 |
lxnay 12/10/02 20:23:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: 389-ds-base-1.2.11.15.ebuild |
5 |
Removed: 389-ds-base-1.2.8.3.ebuild |
6 |
389-ds-base-1.2.9.6.ebuild |
7 |
Log: |
8 |
version bump, closes #405127, #428178, #436768 |
9 |
|
10 |
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.22 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.22&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/ChangeLog?rev=1.22&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/ChangeLog?r1=1.21&r2=1.22 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/net-nds/389-ds-base/ChangeLog,v |
22 |
retrieving revision 1.21 |
23 |
retrieving revision 1.22 |
24 |
diff -u -r1.21 -r1.22 |
25 |
--- ChangeLog 3 May 2012 04:24:37 -0000 1.21 |
26 |
+++ ChangeLog 2 Oct 2012 20:23:36 -0000 1.22 |
27 |
@@ -1,6 +1,15 @@ |
28 |
# ChangeLog for net-nds/389-ds-base |
29 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/net-nds/389-ds-base/ChangeLog,v 1.21 2012/05/03 04:24:37 jdhore Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/net-nds/389-ds-base/ChangeLog,v 1.22 2012/10/02 20:23:36 lxnay Exp $ |
32 |
+ |
33 |
+*389-ds-base-1.2.11.15 (02 Oct 2012) |
34 |
+ |
35 |
+ 02 Oct 2012; Fabio Erculiani <lxnay@g.o> |
36 |
+ +389-ds-base-1.2.11.15.ebuild, |
37 |
+ +files/389-ds-base-1.2.11.16-cve-2012-4450.patch, |
38 |
+ +files/389-ds-base-1.2.11-fix-mozldap.patch, -389-ds-base-1.2.8.3.ebuild, |
39 |
+ -389-ds-base-1.2.9.6.ebuild: |
40 |
+ version bump, closes #405127, #428178, #436768 |
41 |
|
42 |
03 May 2012; Jeff Horelick <jdhore@g.o> 389-ds-base-1.2.8.3.ebuild, |
43 |
389-ds-base-1.2.9.6.ebuild: |
44 |
|
45 |
|
46 |
|
47 |
1.1 net-nds/389-ds-base/389-ds-base-1.2.11.15.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/389-ds-base-1.2.11.15.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/389-ds-base-1.2.11.15.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: 389-ds-base-1.2.11.15.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2012 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/net-nds/389-ds-base/389-ds-base-1.2.11.15.ebuild,v 1.1 2012/10/02 20:23:36 lxnay Exp $ |
57 |
|
58 |
EAPI=2 |
59 |
|
60 |
WANT_AUTOMAKE="1.9" |
61 |
MY_P=${P/_alpha/.a} |
62 |
MY_P=${MY_P/_rc/.rc} |
63 |
inherit eutils multilib flag-o-matic autotools |
64 |
|
65 |
DESCRIPTION="389 Directory Server (core librares and daemons )" |
66 |
HOMEPAGE="http://port389.org/" |
67 |
SRC_URI="http://directory.fedoraproject.org/sources/${MY_P}.tar.bz2" |
68 |
|
69 |
LICENSE="GPL-2-with-exceptions" |
70 |
SLOT="0" |
71 |
KEYWORDS="~amd64 ~x86" |
72 |
IUSE="autobind auto-dn-suffix debug doc +pam-passthru +dna +ldapi +bitwise +presence kerberos selinux" |
73 |
|
74 |
ALL_DEPEND="!>=sys-libs/db-5.0 |
75 |
>=dev-libs/cyrus-sasl-2.1.19 |
76 |
>=dev-libs/icu-3.4 |
77 |
dev-libs/nss[utils] |
78 |
dev-libs/nspr |
79 |
dev-libs/svrcore |
80 |
dev-libs/openssl |
81 |
dev-libs/libpcre:3 |
82 |
dev-libs/mozldap |
83 |
dev-perl/perl-mozldap |
84 |
>=net-analyzer/net-snmp-5.1.2 |
85 |
sys-apps/tcp-wrappers |
86 |
>=sys-libs/db-4.5 |
87 |
sys-libs/pam |
88 |
sys-libs/zlib |
89 |
kerberos? ( net-nds/openldap >=app-crypt/mit-krb5-1.7-r100[openldap] ) |
90 |
selinux? ( >=sys-apps/policycoreutils-1.30.30 |
91 |
sec-policy/selinux-base-policy )" |
92 |
|
93 |
DEPEND="${ALL_DEPEND} |
94 |
virtual/pkgconfig |
95 |
sys-devel/libtool |
96 |
doc? ( app-doc/doxygen ) |
97 |
selinux? ( sys-devel/m4 >=sys-apps/checkpolicy-1.30.12 ) |
98 |
sys-apps/sed" |
99 |
RDEPEND="${ALL_DEPEND} |
100 |
virtual/perl-Time-Local |
101 |
virtual/perl-MIME-Base64" |
102 |
|
103 |
S="${WORKDIR}/${MY_P}" |
104 |
|
105 |
pkg_setup() { |
106 |
enewgroup dirsrv |
107 |
enewuser dirsrv -1 -1 -1 dirsrv |
108 |
} |
109 |
|
110 |
src_prepare() { |
111 |
epatch "${FILESDIR}/selinux.patch" |
112 |
# Fix compilation against mozldap |
113 |
epatch "${FILESDIR}/389-ds-base-1.2.11-fix-mozldap.patch" |
114 |
# Upstream patch, will be in 1.2.11.16, fixes CVE-2012-4450 |
115 |
epatch "${FILESDIR}/389-ds-base-1.2.11.16-cve-2012-4450.patch" |
116 |
|
117 |
# as per 389 documentation, when 64bit, export USE_64 |
118 |
use amd64 && export USE_64=1 |
119 |
|
120 |
sed -i -e 's/nobody/dirsrv/g' configure.ac || die "sed failed on configure.ac" |
121 |
eautoreconf |
122 |
|
123 |
# enable nsslapd-allow-unauthenticated-binds by default |
124 |
sed -i '/^nsslapd-allow-unauthenticated-binds/ s/off/on/' "${S}"/ldap/ldif/template-dse.ldif.in || \ |
125 |
die "cannot tweak default setting: nsslapd-allow-unauthenticated-binds" |
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 |
doins ldap/servers/plugins/replication/repl-session-plugin.h |
175 |
|
176 |
# make sure perl scripts have a proper shebang |
177 |
cd "${D}"/usr/share/dirsrv/script-templates/ |
178 |
|
179 |
for i in $(find ./ -iname '*.pl') ;do |
180 |
sed -i -e 's/#{{PERL-EXEC}}/#\!\/usr\/bin\/perl/' $i || die |
181 |
done |
182 |
|
183 |
# remove redhat style init script |
184 |
rm -rf "${D}"/etc/rc.d || die |
185 |
rm -rf "${D}"/etc/default || die |
186 |
|
187 |
# and install gentoo style init script |
188 |
newinitd "${FILESDIR}"/389-ds.initd 389-ds |
189 |
newinitd "${FILESDIR}"/389-ds-snmp.initd 389-ds-snmp |
190 |
|
191 |
# install Gentoo-specific start/stop scripts |
192 |
rm -f "${D}"/usr/sbin/{re,}start-dirsrv || die "cannot remove 389 start/stop executables" |
193 |
exeinto /usr/sbin |
194 |
doexe "${FILESDIR}"/{re,}start-dirsrv |
195 |
|
196 |
# cope with libraries being in /usr/lib/dirsrv |
197 |
dodir /etc/env.d |
198 |
echo "LDPATH=/usr/$(get_libdir)/dirsrv" > "${D}"/etc/env.d/08dirsrv |
199 |
|
200 |
# create the directory where our log file and database |
201 |
diropts -m 0755 |
202 |
dodir /var/lib/dirsrv |
203 |
keepdir /var/lib/dirsrv |
204 |
dodir /var/lock/dirsrv |
205 |
keepdir /var/lock/dirsrv |
206 |
# snmp agent, required directory |
207 |
keepdir /var/agentx |
208 |
dodir /var/agentx |
209 |
|
210 |
if use doc; then |
211 |
cd "${S}" |
212 |
doxygen slapi.doxy || die "cannot run doxygen" |
213 |
dohtml -r docs/html |
214 |
fi |
215 |
} |
216 |
|
217 |
pkg_postinst() { |
218 |
if use selinux; then |
219 |
if has "loadpolicy" $FEATURES; then |
220 |
einfo "Inserting the following modules into the module store" |
221 |
cd /usr/share/selinux/targeted # struct policy not supported |
222 |
semodule -s dirsrv -i dirsrv.pp |
223 |
else |
224 |
elog |
225 |
elog "Policy has not been loaded. It is strongly suggested" |
226 |
elog "that the policy be loaded before continuing!!" |
227 |
elog |
228 |
elog "Automatic policy loading can be enabled by adding" |
229 |
elog "\"loadpolicy\" to the FEATURES in make.conf." |
230 |
elog |
231 |
ebeep 4 |
232 |
fi |
233 |
fi |
234 |
|
235 |
elog |
236 |
elog "If you are planning to use 389-ds-snmp (ldap-agent)," |
237 |
elog "make sure to properly configure: /etc/dirsrv/config/ldap-agent.conf" |
238 |
elog "adding proper 'server' entries, and adding the lines below to" |
239 |
elog " => /etc/snmp/snmpd.conf" |
240 |
elog |
241 |
elog "master agentx" |
242 |
elog "agentXSocket /var/agentx/master" |
243 |
elog |
244 |
elog |
245 |
elog "To start 389 Directory Server (LDAP service) at boot:" |
246 |
elog |
247 |
elog " rc-update add 389-ds default" |
248 |
elog |
249 |
|
250 |
elog "If you are upgrading from previous 1.2.6 release candidates" |
251 |
elog "please see:" |
252 |
elog "http://directory.fedoraproject.org/wiki/Subtree_Rename#warning:_upgrade_from_389_v1.2.6_.28a.3F.2C_rc1_.7E_rc6.29_to_v1.2.6_rc6_or_newer" |
253 |
elog |
254 |
|
255 |
} |