summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Scherbaum <dertobi123@gentoo.org>2010-07-09 19:28:18 +0000
committerTobias Scherbaum <dertobi123@gentoo.org>2010-07-09 19:28:18 +0000
commit3e901ed997e8caa3b0ddbc8e6ff3ace4c03f1229 (patch)
tree0b8406c719bf46f7e7475b307e73f93d23cd35e6 /mail-filter/postgrey
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-3e901ed997e8caa3b0ddbc8e6ff3ace4c03f1229.tar.gz
gentoo-2-3e901ed997e8caa3b0ddbc8e6ff3ace4c03f1229.tar.bz2
gentoo-2-3e901ed997e8caa3b0ddbc8e6ff3ace4c03f1229.zip
Version bump, #325401. Remove targrey as no current patch is available.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'mail-filter/postgrey')
-rw-r--r--mail-filter/postgrey/ChangeLog10
-rw-r--r--mail-filter/postgrey/postgrey-1.33.ebuild85
2 files changed, 93 insertions, 2 deletions
diff --git a/mail-filter/postgrey/ChangeLog b/mail-filter/postgrey/ChangeLog
index b372af4a9f7a..0a0af90cd561 100644
--- a/mail-filter/postgrey/ChangeLog
+++ b/mail-filter/postgrey/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-filter/postgrey
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/ChangeLog,v 1.62 2009/10/01 14:55:36 jer Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/ChangeLog,v 1.63 2010/07/09 19:28:18 dertobi123 Exp $
+
+*postgrey-1.33 (09 Jul 2010)
+
+ 09 Jul 2010; Tobias Scherbaum <dertobi123@gentoo.org>
+ +postgrey-1.33.ebuild:
+ Version bump, #325401. Remove targrey as no current patch is available.
01 Oct 2009; Jeroen Roovers <jer@gentoo.org> postgrey-1.32.ebuild:
Stable for HPPA (LuckyLuke).
diff --git a/mail-filter/postgrey/postgrey-1.33.ebuild b/mail-filter/postgrey/postgrey-1.33.ebuild
new file mode 100644
index 000000000000..2a86df081455
--- /dev/null
+++ b/mail-filter/postgrey/postgrey-1.33.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/postgrey-1.33.ebuild,v 1.1 2010/07/09 19:28:18 dertobi123 Exp $
+
+inherit eutils
+
+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"
+HOMEPAGE="http://postgrey.schweikert.ch/"
+LICENSE="GPL-2"
+SLOT="0"
+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"
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+
+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}
+ newconfd "${FILESDIR}"/${PN}.conf.new ${PN}
+}
+
+pkg_postinst() {
+ echo
+ elog "To make use of greylisting, please update your postfix config:"
+ elog
+
+ elog "In order to start using postgrey, edit /etc/conf.d/postgrey, add following lines"
+ elog "to smtpd_recipient restrictions setting in your /etc/postfix/main.cf:"
+ elog "\t\"check_policy_service inet:127.0.0.1:10030\", if you're using TCP socket"
+ elog "\t\"check_policy_service unix:private/postgrey\", if you're using UNIX socket"
+ elog "Then, start postgrey and restart postfix."
+
+ elog "Also remember to make the daemon start durig system boot:"
+ elog " rc-update add postgrey default"
+
+ if use targrey ; then
+ elog "The targrey patch has been applied, read the"
+ elog "documentation for more info at"
+ elog "\thttp://k2net.hakuba.jp/targrey/index.en.html"
+ elog
+ elog "Activate targrey and set options using POSTGREY_OPTS in"
+ elog "/etc/conf.d/postgrey"
+ elog
+ fi
+
+ elog "Read postgrey documentation for more info (perldoc postgrey)."
+}