Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 296846
Collapse All | Expand All

(-)gld-1.7.ebuild.orig (-14 / +9 lines)
Lines 1-4 Link Here
1
# Copyright 1999-2009 Gentoo Foundation
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/mail-filter/gld/gld-1.7.ebuild,v 1.10 2009/09/23 17:53:11 patrick Exp $
3
# $Header: /var/cvsroot/gentoo-x86/mail-filter/gld/gld-1.7.ebuild,v 1.10 2009/09/23 17:53:11 patrick Exp $
4
4
Lines 11-16 Link Here
11
KEYWORDS="amd64 ppc x86"
11
KEYWORDS="amd64 ppc x86"
12
IUSE="postgres"
12
IUSE="postgres"
13
# Not adding a mysql USE flag. The package defaults to it, so we will too.
13
# Not adding a mysql USE flag. The package defaults to it, so we will too.
14
14
DEPEND="sys-libs/zlib
15
DEPEND="sys-libs/zlib
15
	>=dev-libs/openssl-0.9.6
16
	>=dev-libs/openssl-0.9.6
16
	postgres? ( virtual/postgresql-server )
17
	postgres? ( virtual/postgresql-server )
Lines 19-55 Link Here
19
src_compile() {
20
src_compile() {
20
	# It's kind of weird. $(use_with postgres pgsql) won't work if you don't
21
	# It's kind of weird. $(use_with postgres pgsql) won't work if you don't
21
	# use it...
22
	# use it...
22
	if use postgres ; then
23
	if use postgres; then
23
		myconf="${myconf} --with-pgsql"
24
		myconf="${myconf} --with-pgsql"
24
	fi
25
	fi
25
26
26
	econf ${myconf} \
27
	econf ${myconf} || die
27
	|| die "econf failed"
28
	emake || die
28
	emake || die "emake failed"
29
}
29
}
30
30
31
src_install() {
31
src_install() {
32
	dobin gld
32
	dobin gld || die
33
33
34
	insinto /etc
34
	insinto /etc
35
	newins gld.conf gld.conf.example
35
	newins gld.conf gld.conf.example
36
	dosed 's:^LOOPBACKONLY=.*:LOOPBACKONLY=1:' /etc/gld.conf.sample
37
	dosed 's:^#USER=.*:USER=nobody:' /etc/gld.conf.sample
38
	dosed 's:^#GROUP=.*:GROUP=nobody:' /etc/gld.conf.sample
39
36
40
	dodoc HISTORY README*
37
	dodoc HISTORY README* || die
41
38
42
	insinto /usr/share/${PN}/sql
39
	insinto /usr/share/${PN}/sql
43
	doins *.pgsql *-whitelist.sql "${FILESDIR}"/tables.sql
40
	doins *.pgsql *-whitelist.sql "${FILESDIR}"/tables.sql || die
44
41
45
	newinitd "${FILESDIR}"/gld.rc gld
42
	newinitd "${FILESDIR}"/gld.rc gld || die
46
}
43
}
47
44
48
pkg_postinst() {
45
pkg_postinst() {
49
	elog
50
	elog "Please read the README file in /usr/share/doc/${PF} for"
46
	elog "Please read the README file in /usr/share/doc/${PF} for"
51
	elog "details on how to setup gld."
47
	elog "details on how to setup gld."
52
	elog
48
	elog
53
	elog "The sql files have been installed to /usr/share/${PN}/sql."
49
	elog "The sql files have been installed to /usr/share/${PN}/sql."
54
	elog
55
}
50
}

Return to bug 296846