# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Create ad userid/groupid dedicated to dkfilter inside ebuild inherit eutils DESCRIPTION="SMTP-proxy designed for Postfix" HOMEPAGE="http://jason.long.name/dkfilter/" SRC_URI="http://jason.long.name/dkfilter/${P}.tar.gz" ## FEATURES="-sandbox" LICENSE="" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="dev-lang/perl dev-perl/MailTools dev-perl/Crypt-OpenSSL-RSA dev-perl/Email-Address perl-core/MIME-Base64 dev-perl/Net-DNS dev-perl/net-server" RDEPEND="" src_unpack() { unpack ${A} cd "${S}" ## Patch to allow to set the right perllibdir include dir ## Works only with default parameter epatch "${FILESDIR}"/${PN}-0.11-configure.patch } src_compile() { local myconf="--perllibdir=/usr/lib" myconf="${myconf}" econf ${myconf} || die emake || die "make failed" } src_install() { einstall || die newinitd ${FILESDIR}/${PN}.initd ${PN} || die } pkg_postinst() { elog "Attention if you want to install it with sandbox it is needed to think a way to do the follow substitutions" elog "sed -ie \"s#-I/var/tmp/portage/mail-mta/dkfilter-0.11/image/usr/lib#-I/usr/lib#\" /usr/bin/dk*" elog "To see an howto to implement DomainKeys with Postfix you can see the follow site: " elog "http://www.itss.it/documentazione/mail/spam/" }