# $Header: $ inherit eutils DESCRIPTION="Gnarwl is a serverside email autoresponder, which is backed by an LDAP database." SRC_URI="http://www.onyxbits.de/sites/default/files/${P}.tgz" HOMEPAGE="http://www.onyxbits.de/gnarwl" LICENSE="GPL-2" SLOT="0" #IUSE="targrey" DEPEND="" RDEPEND=" >=sys-devel/gcc-2.95.3 >=sys-libs/gdbm-1.8.0 >=net-nds/openldap-2.0.23 mail-mta/postfix sys-devel/make sys-apps/groff app-arch/gzip " KEYWORDS="~amd64 x86" src_compile() { econf --prefix=${D} --mandir=${D}/usr/share/man --sysconfdir=${D}/etc || die "econf failed" emake || die "emake failed" } src_install() { emake install || die "emake install failed" } pkg_postinst() { einfo "Checking for gnarwl group ..." enewgroup gnarwl || die "enewgroup fail" einfo "Checking for gnarwl user ..." enewuser gnarwl -1 -1 /var/lib/gnarwl "gnarwl" -c "Email autoreply agent" || die "enewuser failed" chown -R gnarwl /var/lib/gnarwl || die "chown fail" chown gnarwl /etc/gnarwl.cfg || die "chown fail" echo elog "To integrate to postfix, you need to append to master.cf" elog elog "gnarwl unix - n n - - pipe" elog " flags=R user=gnarwl argv=/usr/bin/gnarwl" elog elog "and upgrade your transport_map." echo }