summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-11-27 23:35:41 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-11-27 23:35:41 +0000
commit9aec7874dd602dec3808630e22d69f581abe5594 (patch)
tree31fabfa1d88add970306e63ea10b2f89f4a14deb /net-nds/openldap/openldap-2.4.19-r1.ebuild
parentVersion bump. Also fix bug #288833 for --as-needed. (diff)
downloadgentoo-2-9aec7874dd602dec3808630e22d69f581abe5594.tar.gz
gentoo-2-9aec7874dd602dec3808630e22d69f581abe5594.tar.bz2
gentoo-2-9aec7874dd602dec3808630e22d69f581abe5594.zip
Check previously used version of sys-libs/db only with USE="berkdb".
(Portage version: 14908-svn/cvs/Linux x86_64)
Diffstat (limited to 'net-nds/openldap/openldap-2.4.19-r1.ebuild')
-rw-r--r--net-nds/openldap/openldap-2.4.19-r1.ebuild28
1 files changed, 15 insertions, 13 deletions
diff --git a/net-nds/openldap/openldap-2.4.19-r1.ebuild b/net-nds/openldap/openldap-2.4.19-r1.ebuild
index e476a61d0180..93870eebda07 100644
--- a/net-nds/openldap/openldap-2.4.19-r1.ebuild
+++ b/net-nds/openldap/openldap-2.4.19-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/openldap-2.4.19-r1.ebuild,v 1.3 2009/11/24 23:31:54 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/openldap-2.4.19-r1.ebuild,v 1.4 2009/11/27 23:35:41 arfrever Exp $
EAPI="2"
inherit db-use eutils flag-o-matic multilib ssl-cert versionator toolchain-funcs
@@ -118,18 +118,20 @@ openldap_find_versiontags() {
fi
done
- # Now we must check for the major version of sys-libs/db linked against.
- SLAPD_PATH=${ROOT}/usr/$(get_libdir)/openldap/slapd
- if [ -f "${SLAPD_PATH}" ]; then
- OLDVER="$(/usr/bin/ldd ${SLAPD_PATH} \
- | awk '/libdb-/{gsub("^libdb-","",$1);gsub(".so$","",$1);print $1}')"
- NEWVER="$(db_findver sys-libs/db)"
- if [ "${OLDVER}" != "${NEWVER}" ]; then
- eerror " Your existing version of OpenLDAP was built against"
- eerror " sys-libs/db:${OLDVER}, but the new one will build against"
- eerror " ${NEWVER} and your database would be inaccessible."
- echo
- openldap_upgrade_howto
+ if use berkdb ; then
+ # Now we must check for the major version of sys-libs/db linked against.
+ SLAPD_PATH=${ROOT}/usr/$(get_libdir)/openldap/slapd
+ if [ -f "${SLAPD_PATH}" ]; then
+ OLDVER="$(/usr/bin/ldd ${SLAPD_PATH} \
+ | awk '/libdb-/{gsub("^libdb-","",$1);gsub(".so$","",$1);print $1}')"
+ NEWVER="$(db_findver sys-libs/db)"
+ if [ "${OLDVER}" != "${NEWVER}" ]; then
+ eerror " Your existing version of OpenLDAP was built against"
+ eerror " sys-libs/db:${OLDVER}, but the new one will build against"
+ eerror " ${NEWVER} and your database would be inaccessible."
+ echo
+ openldap_upgrade_howto
+ fi
fi
fi