summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2009-09-20 19:52:44 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2009-09-20 19:52:44 +0000
commitaa54a84acd012e3903b32ed511cf03e69c086283 (patch)
treebd073b5294264300fac69a913664ee8bb9128fb7 /sys-libs/db/db-4.4.20_p4.ebuild
parentadd ~arm, bug #283953 (diff)
downloadgentoo-2-aa54a84acd012e3903b32ed511cf03e69c086283.tar.gz
gentoo-2-aa54a84acd012e3903b32ed511cf03e69c086283.tar.bz2
gentoo-2-aa54a84acd012e3903b32ed511cf03e69c086283.zip
berkeley_db_svc is not always built, and might be going away permanently in db-4.8 series, but I suspect it might come back too, so just don't try to rename it if it doesn't exist. Thanks to Sebastian Luettich <selu@mediman.org>.
(Portage version: 2.2_rc40/cvs/Linux x86_64)
Diffstat (limited to 'sys-libs/db/db-4.4.20_p4.ebuild')
-rw-r--r--sys-libs/db/db-4.4.20_p4.ebuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys-libs/db/db-4.4.20_p4.ebuild b/sys-libs/db/db-4.4.20_p4.ebuild
index a7830883771d..ff2231a643ce 100644
--- a/sys-libs/db/db-4.4.20_p4.ebuild
+++ b/sys-libs/db/db-4.4.20_p4.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/sys-libs/db/db-4.4.20_p4.ebuild,v 1.8 2009/07/30 11:01:33 pauldv Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/db-4.4.20_p4.ebuild,v 1.9 2009/09/20 19:52:44 robbat2 Exp $
inherit eutils db flag-o-matic java-pkg-opt-2
@@ -116,6 +116,8 @@ src_install() {
db_src_install_usrlibcleanup
dodir /usr/sbin
+ # This file is not always built, and no longer exists as of db-4.8
+ [[ -f "${D}"/usr/bin/berkeley_db_svc ]] && \
mv "${D}"/usr/bin/berkeley_db_svc "${D}"/usr/sbin/berkeley_db"${SLOT/./}"_svc
if use java; then