Lines 17-23
Link Here
|
17 |
IUSE_BACKEND="+berkdb" |
17 |
IUSE_BACKEND="+berkdb" |
18 |
IUSE_OVERLAY="overlays perl" |
18 |
IUSE_OVERLAY="overlays perl" |
19 |
IUSE_OPTIONAL="gnutls iodbc sasl ssl odbc debug ipv6 syslog selinux" |
19 |
IUSE_OPTIONAL="gnutls iodbc sasl ssl odbc debug ipv6 syslog selinux" |
20 |
IUSE_CONTRIB="smbkrb5passwd kerberos" |
20 |
IUSE_CONTRIB="smbkrb5passwd kerberos cxx" |
21 |
IUSE="${IUSE_DAEMON} ${IUSE_BACKEND} ${IUSE_OVERLAY} ${IUSE_OPTIONAL} ${IUSE_CONTRIB}" |
21 |
IUSE="${IUSE_DAEMON} ${IUSE_BACKEND} ${IUSE_OVERLAY} ${IUSE_OPTIONAL} ${IUSE_CONTRIB}" |
22 |
|
22 |
|
23 |
# samba adding openssl is intentional --jokey |
23 |
# samba adding openssl is intentional --jokey |
Lines 37-42
Link Here
|
37 |
smbkrb5passwd? ( |
37 |
smbkrb5passwd? ( |
38 |
dev-libs/openssl |
38 |
dev-libs/openssl |
39 |
app-crypt/heimdal ) |
39 |
app-crypt/heimdal ) |
|
|
40 |
cxx? ( dev-libs/cyrus-sasl ) |
40 |
) |
41 |
) |
41 |
selinux? ( sec-policy/selinux-openldap )" |
42 |
selinux? ( sec-policy/selinux-openldap )" |
42 |
DEPEND="${RDEPEND}" |
43 |
DEPEND="${RDEPEND}" |
Lines 153-158
Link Here
|
153 |
} |
154 |
} |
154 |
|
155 |
|
155 |
pkg_setup() { |
156 |
pkg_setup() { |
|
|
157 |
if ! use sasl && use cxx ; then |
158 |
die "To build the ldapc++ library you must emerge openldap with sasl support" |
159 |
fi |
156 |
if use minimal && has_version "net-nds/openldap" && built_with_use net-nds/openldap minimal ; then |
160 |
if use minimal && has_version "net-nds/openldap" && built_with_use net-nds/openldap minimal ; then |
157 |
einfo |
161 |
einfo |
158 |
einfo "Skipping scan for previous datadirs as requested by minimal useflag" |
162 |
einfo "Skipping scan for previous datadirs as requested by minimal useflag" |
Lines 282-287
Link Here
|
282 |
emake CC=$(tc-getCC) AR=$(tc-getAR) || die "emake failed" |
286 |
emake CC=$(tc-getCC) AR=$(tc-getAR) || die "emake failed" |
283 |
|
287 |
|
284 |
if ! use minimal ; then |
288 |
if ! use minimal ; then |
|
|
289 |
if use cxx ; then |
290 |
einfo "Building contrib library: ldapc++" |
291 |
local myconf_ldapcpp |
292 |
myconf_ldapcpp="${myconf_ldapcpp} --with-ldap-includes=../../include" |
293 |
cd "${S}/contrib/ldapc++" |
294 |
OLD_LDFLAGS="$LDFLAGS" |
295 |
OLD_CPPFLAGS="$CPPFLAGS" |
296 |
append-ldflags "-L../../libraries/liblber/.libs -L../../libraries/libldap/.libs" |
297 |
append-ldflags "-L../../../libraries/liblber/.libs -L../../../libraries/libldap/.libs" |
298 |
append-cppflags "-I../../../include" |
299 |
econf ${myconf_ldapcpp} || die "configure ldapc++ failed" |
300 |
emake \ |
301 |
CC=$(tc-getCC) \ |
302 |
|| die "emake ldapc++ failed" |
303 |
CPPFLAGS="$OLD_CPPFLAGS" |
304 |
|
305 |
fi |
306 |
|
285 |
if use smbkrb5passwd ; then |
307 |
if use smbkrb5passwd ; then |
286 |
einfo "Building contrib-module: smbk5pwd" |
308 |
einfo "Building contrib-module: smbk5pwd" |
287 |
cd "${S}/contrib/slapd-modules/smbk5pwd" |
309 |
cd "${S}/contrib/slapd-modules/smbk5pwd" |
Lines 372-377
Link Here
|
372 |
sed -e "s,/usr/lib/,/usr/$(get_libdir)/," -i "${D}"etc/init.d/slapd |
394 |
sed -e "s,/usr/lib/,/usr/$(get_libdir)/," -i "${D}"etc/init.d/slapd |
373 |
fi |
395 |
fi |
374 |
|
396 |
|
|
|
397 |
if use cxx ; then |
398 |
einfo "Install the ldapc++ library" |
399 |
cd "${S}/contrib/ldapc++" |
400 |
emake DESTDIR="${D}" libexecdir="/usr/$(get_libdir)/openldap" install || die "emake install ldapc++ failed" |
401 |
newdoc README |
402 |
fi |
403 |
|
375 |
if use smbkrb5passwd ; then |
404 |
if use smbkrb5passwd ; then |
376 |
einfo "Install the smbk5pwd module" |
405 |
einfo "Install the smbk5pwd module" |
377 |
cd "${S}/contrib/slapd-modules/smbk5pwd" |
406 |
cd "${S}/contrib/slapd-modules/smbk5pwd" |