summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/qmail-autoresponder/qmail-autoresponder-0.97-r1.ebuild')
-rw-r--r--net-mail/qmail-autoresponder/qmail-autoresponder-0.97-r1.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/net-mail/qmail-autoresponder/qmail-autoresponder-0.97-r1.ebuild b/net-mail/qmail-autoresponder/qmail-autoresponder-0.97-r1.ebuild
new file mode 100644
index 000000000000..85c3cdbc3c71
--- /dev/null
+++ b/net-mail/qmail-autoresponder/qmail-autoresponder-0.97-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Rate-limited autoresponder for qmail"
+HOMEPAGE="http://untroubled.org/qmail-autoresponder/"
+SRC_URI="http://untroubled.org/qmail-autoresponder/archive/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="alpha amd64 hppa ~mips ppc sparc x86"
+IUSE="mysql"
+
+DEPEND=">=dev-libs/bglibs-1.022
+ mysql? ( virtual/mysql )"
+RDEPEND="
+ ${DEPEND}
+ virtual/qmail
+ mysql? ( virtual/mysql )
+"
+
+src_prepare() {
+ use mysql || epatch "${FILESDIR}/${PN}-0.97-remove-mysql.h.diff"
+}
+
+src_configure() {
+ echo "/usr/include/bglibs" > conf-bgincs
+ echo "/usr/lib/bglibs" > conf-bglibs
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+}
+
+src_compile() {
+ # 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 || die
+ doman qmail-autoresponder.1
+ if use mysql; then
+ dobin qmail-autoresponder-mysql || die
+ dodoc schema.mysql
+ fi
+
+ dodoc ANNOUNCEMENT NEWS README TODO ChangeLog procedure.txt
+}
+
+pkg_postinst() {
+ elog "Please see the README file in /usr/share/doc/${PF}/ for per-user configurations."
+}