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-21
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 ) |
17 |
!postgres? ( virtual/mysql )" |
18 |
!postgres? ( virtual/mysql )" |
18 |
|
19 |
|
|
|
20 |
src_unpack() { |
21 |
unpack ${A} |
22 |
cd "${S}" |
23 |
|
24 |
sed -i -e '/strip .*/d' Makefile.in || die |
25 |
} |
26 |
|
19 |
src_compile() { |
27 |
src_compile() { |
20 |
# It's kind of weird. $(use_with postgres pgsql) won't work if you don't |
28 |
# It's kind of weird. $(use_with postgres pgsql) won't work if you don't |
21 |
# use it... |
29 |
# use it... |
Lines 23-31
Link Here
|
23 |
myconf="${myconf} --with-pgsql" |
31 |
myconf="${myconf} --with-pgsql" |
24 |
fi |
32 |
fi |
25 |
|
33 |
|
26 |
econf ${myconf} \ |
34 |
econf ${myconf} || die |
27 |
|| die "econf failed" |
35 |
emake || die |
28 |
emake || die "emake failed" |
|
|
29 |
} |
36 |
} |
30 |
|
37 |
|
31 |
src_install() { |
38 |
src_install() { |
Lines 33-55
Link Here
|
33 |
|
40 |
|
34 |
insinto /etc |
41 |
insinto /etc |
35 |
newins gld.conf gld.conf.example |
42 |
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 |
|
43 |
|
40 |
dodoc HISTORY README* |
44 |
dodoc HISTORY README* || die |
41 |
|
45 |
|
42 |
insinto /usr/share/${PN}/sql |
46 |
insinto /usr/share/${PN}/sql |
43 |
doins *.pgsql *-whitelist.sql "${FILESDIR}"/tables.sql |
47 |
doins *.pgsql *-whitelist.sql "${FILESDIR}"/tables.sql || die |
44 |
|
48 |
|
45 |
newinitd "${FILESDIR}"/gld.rc gld |
49 |
newinitd "${FILESDIR}"/gld.rc gld |
46 |
} |
50 |
} |
47 |
|
51 |
|
48 |
pkg_postinst() { |
52 |
pkg_postinst() { |
49 |
elog |
|
|
50 |
elog "Please read the README file in /usr/share/doc/${PF} for" |
53 |
elog "Please read the README file in /usr/share/doc/${PF} for" |
51 |
elog "details on how to setup gld." |
54 |
elog "details on how to setup gld." |
52 |
elog |
55 |
elog |
53 |
elog "The sql files have been installed to /usr/share/${PN}/sql." |
56 |
elog "The sql files have been installed to /usr/share/${PN}/sql." |
54 |
elog |
|
|
55 |
} |
57 |
} |