--- /usr/portage/mail-filter/postgrey/postgrey-1.31.ebuild 2007-11-19 07:36:21.000000000 -0500 +++ /home/portage/mail-filter/postgrey/postgrey-1.31.ebuild 2008-02-29 16:51:02.000000000 -0500 @@ -6,11 +6,12 @@ DESCRIPTION="Postgrey is a Postfix policy server implementing greylisting" SRC_URI="http://postgrey.schweikert.ch/pub/${P}.tar.gz - http://postgrey.schweikert.ch/pub/old/${P}.tar.gz" + http://postgrey.schweikert.ch/pub/old/${P}.tar.gz + targrey? (http://k2net.hakuba.jp/pub/targrey-0.31-${P}.patch)" HOMEPAGE="http://postgrey.schweikert.ch/" LICENSE="GPL-2" SLOT="0" -IUSE="" +IUSE="targrey" DEPEND="" RDEPEND=">=dev-lang/perl-5.6.0 dev-perl/net-server @@ -28,6 +29,14 @@ enewuser ${PN} -1 -1 /dev/null ${PN} } +src_unpack() { + unpack ${A} + cd "${S}" + if use targrey; then + epatch "${DISTDIR}/targrey-0.31-${P}.patch" + fi +} + src_install () { cd ${S}