summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2011-06-08 14:33:36 +0000
committerEray Aslan <eras@gentoo.org>2011-06-08 14:33:36 +0000
commit2f0eaa3787edf0c020b09467462818fb3e932252 (patch)
treec8f21b8f35ff151b41a12efbec3fb61063225f39 /mail-filter/postgrey
parentRemove non-live ebuilds, they are broken by design. Discussion: <http://archi... (diff)
downloadgentoo-2-2f0eaa3787edf0c020b09467462818fb3e932252.tar.gz
gentoo-2-2f0eaa3787edf0c020b09467462818fb3e932252.tar.bz2
gentoo-2-2f0eaa3787edf0c020b09467462818fb3e932252.zip
Drop targrey use flag. Version bump.
(Portage version: 2.1.10/cvs/Linux x86_64)
Diffstat (limited to 'mail-filter/postgrey')
-rw-r--r--mail-filter/postgrey/ChangeLog9
-rw-r--r--mail-filter/postgrey/postgrey-1.34.ebuild62
2 files changed, 69 insertions, 2 deletions
diff --git a/mail-filter/postgrey/ChangeLog b/mail-filter/postgrey/ChangeLog
index 93a707b6a47a..c9a4ddc5a95d 100644
--- a/mail-filter/postgrey/ChangeLog
+++ b/mail-filter/postgrey/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for mail-filter/postgrey
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/ChangeLog,v 1.65 2010/11/07 18:26:04 radhermit Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/ChangeLog,v 1.66 2011/06/08 14:33:36 eras Exp $
+
+*postgrey-1.34 (08 Jun 2011)
+
+ 08 Jun 2011; Eray Aslan <eras@gentoo.org> +postgrey-1.34.ebuild:
+ Drop targrey use flag. Version bump.
*postgrey-1.33-r1 (07 Nov 2010)
diff --git a/mail-filter/postgrey/postgrey-1.34.ebuild b/mail-filter/postgrey/postgrey-1.34.ebuild
new file mode 100644
index 000000000000..32b027e3bc84
--- /dev/null
+++ b/mail-filter/postgrey/postgrey-1.34.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/postgrey-1.34.ebuild,v 1.1 2011/06/08 14:33:36 eras Exp $
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Postgrey is a Postfix policy server implementing greylisting"
+HOMEPAGE="http://postgrey.schweikert.ch/"
+SRC_URI="http://postgrey.schweikert.ch/pub/${P}.tar.gz
+ http://postgrey.schweikert.ch/pub/old/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=dev-lang/perl-5.6.0
+ dev-perl/net-server
+ dev-perl/IO-Multiplex
+ dev-perl/BerkeleyDB
+ dev-perl/Net-DNS
+ dev-perl/Parse-Syslog
+ dev-perl/Net-RBLClient
+ >=sys-libs/db-4.1"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /dev/null ${PN}
+}
+
+src_install() {
+ # postgrey data/DB in /var
+ diropts -m0770 -o ${PN} -g ${PN}
+ dodir /var/spool/postfix/${PN}
+ keepdir /var/spool/postfix/${PN}
+ fowners postgrey:postgrey /var/spool/postfix/${PN}
+ fperms 0770 /var/spool/postfix/${PN}
+
+ # postgrey binary
+ dosbin ${PN}
+ dosbin contrib/postgreyreport
+
+ # policy-test script
+ dosbin policy-test
+
+ # postgrey data in /etc/postfix
+ insinto /etc/postfix
+ insopts -o root -g ${PN} -m 0640
+ doins postgrey_whitelist_clients postgrey_whitelist_recipients
+
+ # documentation
+ dodoc Changes README
+
+ # init.d + conf.d files
+ insopts -o root -g root -m 755
+ newinitd "${FILESDIR}"/${PN}.rc.new ${PN}
+ insopts -o root -g root -m 640
+ newconfd "${FILESDIR}"/${PN}.conf.new ${PN}
+}