blob: 847256b156ccc0f5f609087a9542bfe470db6927 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/qmail-autoresponder/qmail-autoresponder-0.96.1-r1.ebuild,v 1.13 2006/07/11 18:54:54 bangert Exp $
inherit fixheadtails eutils toolchain-funcs
DESCRIPTION="Rate-limited autoresponder for qmail."
SRC_URI="http://untroubled.org/qmail-autoresponder/archive/${P}.tar.gz"
HOMEPAGE="http://untroubled.org/qmail-autoresponder/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="alpha ~amd64 hppa mips ppc sparc x86"
IUSE="mysql"
DEPEND="virtual/libc
>=dev-libs/bglibs-1.019-r1
mysql? ( dev-db/mysql )"
RDEPEND="
${DEPEND}
virtual/qmail
mysql? ( dev-db/mysql )
"
src_unpack() {
unpack ${A}
# This patch fixes a multi-line string issue with gcc-3.3
# Closes Bug #30137
epatch ${FILESDIR}/${P}-gcc33-multiline-string-fix.patch
cd ${S}
ht_fix_file Makefile
}
src_compile() {
cd ${S}
echo "${ROOT}/usr/include/bglibs" > conf-bgincs
echo "${ROOT}/usr/lib/bglibs" > conf-bglibs
echo "$(tc-getCC) ${CFLAGS}" > conf-cc
echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
# fails on parallel builds!
make qmail-autoresponder || die "Failed to make qmail-autoresponder"
if use mysql; then
make qmail-autoresponder-mysql || die "Failed to make qmail-autoresponder-mysql"
fi
}
src_install () {
dobin qmail-autoresponder
doman qmail-autoresponder.1
if use mysql; then
dobin qmail-autoresponder-mysql
dodoc schema.mysql
fi
dodoc ANNOUNCEMENT FILES NEWS README TARGETS TODO VERSION COPYING ChangeLog procedure.txt
}
pkg_postinst() {
einfo "Please see /usr/share/doc/${PF}/README.gz for per-user configurations"
}
|