1 |
|
# Copyright 1999-2022 Gentoo Authors
|
|
1 |
# Copyright 1999-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI=7
|
|
4 |
EAPI=8
|
5 |
5 |
|
6 |
6 |
inherit toolchain-funcs
|
7 |
7 |
|
8 |
8 |
DESCRIPTION="Rate-limited autoresponder for qmail"
|
9 |
|
HOMEPAGE="http://untroubled.org/qmail-autoresponder/"
|
10 |
|
SRC_URI="http://untroubled.org/qmail-autoresponder/archive/${P}.tar.gz"
|
|
9 |
HOMEPAGE="https://untroubled.org/qmail-autoresponder/"
|
|
10 |
SRC_URI="https://untroubled.org/qmail-autoresponder/archive/${P}.tar.gz"
|
11 |
11 |
|
12 |
12 |
SLOT="0"
|
13 |
|
LICENSE="GPL-2"
|
|
13 |
LICENSE="GPL-2+"
|
14 |
14 |
KEYWORDS="~alpha amd64 ~hppa ~mips ~sparc x86"
|
15 |
15 |
IUSE="mysql"
|
16 |
16 |
|
17 |
|
DEPEND=">=dev-libs/bglibs-1.106
|
18 |
|
mysql? ( dev-db/mysql-connector-c:0= )"
|
|
17 |
DEPEND="
|
|
18 |
>=dev-libs/bglibs-2.04
|
|
19 |
mysql? ( dev-db/mysql-connector-c:0= )
|
|
20 |
"
|
19 |
21 |
RDEPEND="
|
20 |
22 |
${DEPEND}
|
21 |
23 |
virtual/qmail
|
22 |
24 |
mysql? ( virtual/mysql )
|
23 |
25 |
"
|
24 |
26 |
|
25 |
|
src_prepare() {
|
26 |
|
use mysql || eapply "${FILESDIR}/${PN}-0.97-remove-mysql.h.diff"
|
27 |
|
default
|
28 |
|
}
|
|
27 |
PATCHES=(
|
|
28 |
"${FILESDIR}/${P}-clear-struct.patch"
|
|
29 |
"${FILESDIR}/${P}-drop-mysql.patch"
|
|
30 |
)
|
29 |
31 |
|
30 |
32 |
src_configure() {
|
31 |
|
echo "/usr/include/bglibs" > conf-bgincs || die
|
32 |
|
echo "/usr/$(get_libdir)/bglibs" > conf-bglibs || die
|
33 |
33 |
echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die
|
34 |
34 |
echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
|
35 |
35 |
}
|
36 |
36 |
|
37 |
37 |
src_compile() {
|
38 |
|
# fails on parallel builds!
|
39 |
|
make qmail-autoresponder || die "Failed to make qmail-autoresponder"
|
|
38 |
emake qmail-autoresponder
|
40 |
39 |
if use mysql; then
|
41 |
|
make qmail-autoresponder-mysql || die "Failed to make qmail-autoresponder-mysql"
|
|
40 |
emake qmail-autoresponder-mysql
|
42 |
41 |
fi
|
43 |
42 |
}
|
44 |
43 |
|
... | ... | |
47 |
46 |
doman qmail-autoresponder.1
|
48 |
47 |
if use mysql; then
|
49 |
48 |
dobin qmail-autoresponder-mysql
|
|
49 |
doman qmail-autoresponder-mysql.1
|
50 |
50 |
dodoc schema.mysql
|
51 |
51 |
fi
|
52 |
52 |
|
53 |
53 |
dodoc ANNOUNCEMENT NEWS README TODO ChangeLog procedure.txt
|
54 |
54 |
}
|
55 |
|
|
56 |
|
pkg_postinst() {
|
57 |
|
elog "Please see the README file in /usr/share/doc/${PF}/ for per-user configurations."
|
58 |
|
}
|