# Copyright 1999-2004 Gentoo Technologies, Inc. # 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.5 2004/05/05 07:17:18 dragonheart Exp $ inherit fixheadtails eutils S=${WORKDIR}/${P} DESCRIPTION="Rate-limited autoresponder for qmail." SRC_URI="http://untroubled.org/qmail-autoresponder/${P}.tar.gz" HOMEPAGE="http://untroubled.org/qmail-autoresponder/" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86 sparc ppc ~alpha ~mips ~hppa" DEPEND="virtual/glibc dev-libs/bglibs mysql? ( dev-db/mysql )" RDEPEND=">=net-mail/qmail-1.03-r7 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 "/usr/lib/bglibs/include" > conf-bgincs echo "/usr/lib/bglibs/lib" > conf-bglibs echo "${CC} ${CFLAGS}" > conf-cc echo "${CC} ${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" }