# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="GNARWL is a 'vacation' autoreply package for mailservers" HOMEPAGE="http://www.oss.billiton.de/software.shtml" SRC_URI="http://www.oss.billiton.de/download/${P}.tgz" LICENSE="GPL-2" SLOT="0" DEPEND="sys-apps/gzip sys-apps/groff" RDEPEND=">=sys-libs/gdbm-1.8.0 >=net-nds/openldap-2.0.23 virtual/mta" USER="gnarwl" S=${WORKDIR}/${P} src_compile() { econf || die emake HOMEDIR=/var/lib/gnarwl || die } src_install() { make \ DESTDIR=${D} \ prefix=${D}/usr \ MANDIR=${D}/usr/share/man \ CONFDIR=${D}/etc \ HOMEDIR=${D}/var/lib/gnarwl \ install || die } pkg_setup() { if ! grep -q ^gnarwl: /etc/passwd ; then useradd -s /bin/false -c "Email autoreply agent" -d /var/lib/gnarwl ${USER} || die "problem adding group postdrop" fi chown -R ${USER} /var/lib/gnarwl chown ${USER} /etc/gnarwl.cfg }