# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="GNARWL is a 'vacation' autoreply package for mailservers" HOMEPAGE="http://www.home.unix-ag.org/patrick/index.php?gnarwl" SRC_URI="http://www.home.unix-ag.org/patrick/software/gnarwl/${P}.tgz" RESTRICT="nomirror" LICENSE="GPL-2" KEYWORDS="~x86" SLOT="0" DEPEND="app-arch/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() { EXTRA_ECONF="--with-docdir=/usr/share/doc/${P} --with-homedir=/var/lib/gnarwl" econf || die emake || die } src_install() { make \ DESTDIR=${D} \ prefix=${D}/usr \ MANDIR=${D}/usr/share/man \ CONFDIR=${D}/etc \ HOMEDIR=${D}/var/lib/gnarwl \ DOCDIR=${D}/usr/share/doc/${P} \ install || die insinto /etc/openldap/schema doins ${S}/doc/*.schema } pkg_postinst() { enewuser ${USER} 215 -1 /var/lib/gnarwl chown -R ${USER} /var/lib/gnarwl chown ${USER} /etc/gnarwl.cfg }