diff options
author | 2007-04-24 13:36:53 +0000 | |
---|---|---|
committer | 2007-04-24 13:36:53 +0000 | |
commit | 818e4feb0c37b64d517e66af4189dc8f9b6e6cdf (patch) | |
tree | feafeac3d2fd9f7ceb66f343119a8ac93cbdcc0a | |
parent | app-admin/eselect-postgresql: added unselection of uninstalled selections (diff) | |
download | experimental-818e4feb0c37b64d517e66af4189dc8f9b6e6cdf.tar.gz experimental-818e4feb0c37b64d517e66af4189dc8f9b6e6cdf.tar.bz2 experimental-818e4feb0c37b64d517e66af4189dc8f9b6e6cdf.zip |
app-admin/eselect-postgresql: the rest of previous commit
svn path=/experimental/; revision=257
-rw-r--r-- | app-admin/eselect-postgresql/eselect-postgresql-0.1.ebuild | 58 | ||||
-rw-r--r-- | app-admin/eselect-postgresql/files/digest-eselect-postgresql-0.1 | 0 |
2 files changed, 0 insertions, 58 deletions
diff --git a/app-admin/eselect-postgresql/eselect-postgresql-0.1.ebuild b/app-admin/eselect-postgresql/eselect-postgresql-0.1.ebuild deleted file mode 100644 index 9a66eac..0000000 --- a/app-admin/eselect-postgresql/eselect-postgresql-0.1.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -inherit multilib - -DESCRIPTION="Utility to change the default postgresql installation" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" -IUSE="" - -RDEPEND=" - app-admin/eselect - !<dev-db/libpq-99.99.99 - " - -src_install() { - keepdir /etc/eselect/postgresql - insinto /usr/share/eselect/modules - doins ${FILESDIR}/postgresql.eselect - dosed "s,alibdir='/usr/lib/',alibdir='/usr/$(get_libdir)/',g" \ - /usr/share/eselect/modules/postgresql.eselect - exeinto /usr/lib/${PN} - doexe ${FILESDIR}/binwrapper - dodir /usr/bin - dosym /usr/bin/eselect /usr/bin/postgresql-config -} - -pkg_preinst() { - local ff="" - for f in "${ROOT}"/usr/include/{postgresql,libpq-fe.h,libpq,postgres_ext.h} ; do - [[ -e "${f}" ]] || continue - [[ -L "${f}" ]] && continue - if [[ -d "${f}" ]] ; then - if [[ -z "$(find "${f}" -not \( -type l -or -type d \))" ]] ; then - rm -rf "${f}" - else - ff="$ff $f" - fi - else - ff="$ff $f" - fi - done - if [[ ! -z "$ff" ]] ; then - eerror "You have leftovers from previous postgresql installations that" - eerror "can't be dealt with automatically. The proper way to treat" - eerror "files is:" - eerror "" - eerror "rm -rf ${ff}" - eerror "" - die "Please, remove the files manually" - fi -} - diff --git a/app-admin/eselect-postgresql/files/digest-eselect-postgresql-0.1 b/app-admin/eselect-postgresql/files/digest-eselect-postgresql-0.1 deleted file mode 100644 index e69de29..0000000 --- a/app-admin/eselect-postgresql/files/digest-eselect-postgresql-0.1 +++ /dev/null |