summaryrefslogtreecommitdiff
blob: 5b8fc764c24b69de2a5c92eedbbec4ab28164ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Dummy ebuild provided to satisfy dependency"
HOMEPAGE="http://overlays.gentoo.org/proj/postgresql/"

LICENSE="POSTGRESQL"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
IUSE="fixme"

RDEPEND="dev-db/postgresql-libs"

pkg_setup() {
	if ! use fixme ; then
		ewarn "You should add fixme USE-flag to enable this ebuild"
		ewarn "This is the way you should express your awareness of"
		ewarn "this ebuild being a dirty hack. It's in experimental"
		ewarn "tree, isn't it?"
		die "Fix me!"
	fi
}

pkg_postinst() {
	if [[ "$(eselect postgresql show)" = "(none)" ]] ; then
		# You may think this is a dirty hack. But this whole ebuild is.
		eselect postgresql set "$(ls /usr/lib/eselect-postgresql/slots/ -1v|tail -n 1)"
	fi
}