diff options
author | Andrej Kacian <ticho@gentoo.org> | 2006-02-25 17:59:13 +0000 |
---|---|---|
committer | Andrej Kacian <ticho@gentoo.org> | 2006-02-25 17:59:13 +0000 |
commit | 7399aadae5d22988a9c35e265a103a33f528b5f1 (patch) | |
tree | cebd88748d95f685f395e5d1cbed7943ced3dd46 /mail-filter/postgrey | |
parent | Version bumped, Bug 117107. (diff) | |
download | gentoo-2-7399aadae5d22988a9c35e265a103a33f528b5f1.tar.gz gentoo-2-7399aadae5d22988a9c35e265a103a33f528b5f1.tar.bz2 gentoo-2-7399aadae5d22988a9c35e265a103a33f528b5f1.zip |
Version bump, bug #123437, reported by Daniel Webert <rockoo at gmail.com>. Added delay and response settings to .conf file, bug #119109, reported by Jeremy Clifton <j.clifton at intuiworx.com>.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'mail-filter/postgrey')
-rw-r--r-- | mail-filter/postgrey/ChangeLog | 12 | ||||
-rw-r--r-- | mail-filter/postgrey/Manifest | 55 | ||||
-rw-r--r-- | mail-filter/postgrey/files/digest-postgrey-1.24 | 3 | ||||
-rw-r--r-- | mail-filter/postgrey/files/postgrey.conf | 7 | ||||
-rw-r--r-- | mail-filter/postgrey/files/postgrey.conf.new | 10 | ||||
-rw-r--r-- | mail-filter/postgrey/files/postgrey.rc | 6 | ||||
-rw-r--r-- | mail-filter/postgrey/files/postgrey.rc.new | 20 | ||||
-rw-r--r-- | mail-filter/postgrey/files/postgrey.rc.new-r2 | 77 | ||||
-rw-r--r-- | mail-filter/postgrey/postgrey-1.21-r1.ebuild | 8 | ||||
-rw-r--r-- | mail-filter/postgrey/postgrey-1.21-r2.ebuild | 8 | ||||
-rw-r--r-- | mail-filter/postgrey/postgrey-1.23.ebuild | 8 | ||||
-rw-r--r-- | mail-filter/postgrey/postgrey-1.24.ebuild | 74 |
12 files changed, 170 insertions, 118 deletions
diff --git a/mail-filter/postgrey/ChangeLog b/mail-filter/postgrey/ChangeLog index 0125dae5fe74..d04253ef67d1 100644 --- a/mail-filter/postgrey/ChangeLog +++ b/mail-filter/postgrey/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for mail-filter/postgrey # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/ChangeLog,v 1.17 2006/01/02 00:27:07 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/ChangeLog,v 1.18 2006/02/25 17:59:13 ticho Exp $ + +*postgrey-1.24 (25 Feb 2006) + + 25 Feb 2006; Andrej Kacian <ticho@gentoo.org> files/postgrey.conf, + files/postgrey.conf.new, files/postgrey.rc, files/postgrey.rc.new, + -files/postgrey.rc.new-r2, postgrey-1.21-r1.ebuild, + postgrey-1.21-r2.ebuild, postgrey-1.23.ebuild, +postgrey-1.24.ebuild: + Version bump, bug #123437, reported by Daniel Webert <rockoo at gmail.com>. + Added delay and response settings to .conf file, bug #119109, reported by + Jeremy Clifton <j.clifton at intuiworx.com>. *postgrey-1.23 (02 Jan 2006) diff --git a/mail-filter/postgrey/Manifest b/mail-filter/postgrey/Manifest index eedc4a54b4c1..dad0d5891fda 100644 --- a/mail-filter/postgrey/Manifest +++ b/mail-filter/postgrey/Manifest @@ -1,25 +1,48 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - MD5 2d1327911975fb1aeb9e95412bf144ee ChangeLog 2782 +RMD160 8c076f4f7061726c1d9b98640227cdc7b2e2cdcd ChangeLog 2782 +SHA256 056a79583f2d98b319b0e85e81637c933b9f62881477577cb653d224aa463a47 ChangeLog 2782 MD5 2197c50ab163af184389dbf781d6bc21 files/digest-postgrey-1.21 64 +RMD160 d9baf9542b280e0d77343752630e8f6bb5d4276e files/digest-postgrey-1.21 64 +SHA256 e623f0e4588add93eaa860b2109ddeac8a824534b5becf04bdb64e753e24499a files/digest-postgrey-1.21 64 MD5 2197c50ab163af184389dbf781d6bc21 files/digest-postgrey-1.21-r1 64 +RMD160 d9baf9542b280e0d77343752630e8f6bb5d4276e files/digest-postgrey-1.21-r1 64 +SHA256 e623f0e4588add93eaa860b2109ddeac8a824534b5becf04bdb64e753e24499a files/digest-postgrey-1.21-r1 64 MD5 2197c50ab163af184389dbf781d6bc21 files/digest-postgrey-1.21-r2 64 +RMD160 d9baf9542b280e0d77343752630e8f6bb5d4276e files/digest-postgrey-1.21-r2 64 +SHA256 e623f0e4588add93eaa860b2109ddeac8a824534b5becf04bdb64e753e24499a files/digest-postgrey-1.21-r2 64 MD5 92cedf9f37a6b6fdcdce5824229a2d3a files/digest-postgrey-1.23 64 +RMD160 4eef5352743cbc1c6b45b79a817f6f00e65774ed files/digest-postgrey-1.23 64 +SHA256 c7f510e0d29893f4098b0f74f1ca6100b02af5713ee933a9a81019d9a8c3eb6a files/digest-postgrey-1.23 64 +MD5 22030ac8baf8f96ddb9e61411b9d2173 files/digest-postgrey-1.24 238 +RMD160 be8ee1750832743c4c57e8afc59d9b23f917d0cf files/digest-postgrey-1.24 238 +SHA256 7ec77baad4af9c88a7eb41da924a0b715cc77ee7b71cd57a93d8a57f3e481585 files/digest-postgrey-1.24 238 MD5 be9aa0c5ab50b82e7eb5c465e78abfb6 files/postgrey.conf 2057 -MD5 6dfb29bdf769bd95b3da9611e89e9e67 files/postgrey.conf.new 1882 +RMD160 6d31239abee89d595eed622271bcc95068a3d4ac files/postgrey.conf 2057 +SHA256 c9f4d38bbfe019ced4e010fecdc204f09bdc9bb737ca2841ddffa774a3ae7e22 files/postgrey.conf 2057 +MD5 caaad5770ab07fb5af3bbd522a05b84f files/postgrey.conf.new 1915 +RMD160 15b64509c13c5fbb50e620da7339763a88969357 files/postgrey.conf.new 1915 +SHA256 2c84116caad8ba675ad73c4f2a10c766bd048572677c74720ad3ae2448ea9519 files/postgrey.conf.new 1915 MD5 92755b7ca1258447038718aa283825d9 files/postgrey.rc 1906 -MD5 574606b16ba42a5ed86921c12fdac7f5 files/postgrey.rc.new 1910 -MD5 658e1b1fbd690aa27418992e73b5360f files/postgrey.rc.new-r2 1984 +RMD160 7f063ee4f0ab9d131b4152f65594aa9d2943d9be files/postgrey.rc 1906 +SHA256 77849ea9a0fe48d2bc44cd09cf50ee8fafcda307bf3b51cfb7d7f4218641abcc files/postgrey.rc 1906 +MD5 68feb493b63301ee636494ec532bbfb1 files/postgrey.rc.new 2285 +RMD160 66277d2ec0a8c535bcd8300ea7e5a37ab49bc811 files/postgrey.rc.new 2285 +SHA256 56e4f260b7abf21cc486cfe0d55bcbcb1f488782fe112f4c3d8806ce72309322 files/postgrey.rc.new 2285 MD5 97640b63104544cebd37ca40384a056b metadata.xml 304 -MD5 b07b3135ffa215dd7a71f139eef10d21 postgrey-1.21-r1.ebuild 2104 -MD5 ac16d9e76c2e7acdd2e5c639f0cabf59 postgrey-1.21-r2.ebuild 2107 +RMD160 5ea326ad63c413b939071e1db865ccf570de61b8 metadata.xml 304 +SHA256 66d816b6bbbb5bcc1ded82027b2d2fd6b6f439faf149ac70f305003d7ace1e2b metadata.xml 304 +MD5 75664bbc3f4979351000ef93024b2f5e postgrey-1.21-r1.ebuild 2096 +RMD160 de66106dfc7fcee87525a5e42b5e8f324f1f28ac postgrey-1.21-r1.ebuild 2096 +SHA256 e84ebdfc042b04c8725f409b95c3018db998138f7001ca2738970b4fda741440 postgrey-1.21-r1.ebuild 2096 +MD5 4e2c9aab2968ffb992bc43aecbfbc1e4 postgrey-1.21-r2.ebuild 2096 +RMD160 e93961ad0fb0e1915d8288e20b9cc92039d984ce postgrey-1.21-r2.ebuild 2096 +SHA256 ae0923f48be35b15ebb8ba496d639cf6cecdf39ca3991fcb5747d4e705bd7915 postgrey-1.21-r2.ebuild 2096 MD5 b1e7b37dc0abff9d55d28d59dc7f0f7e postgrey-1.21.ebuild 1919 -MD5 1d0dcf46def285a5ab8e2b518021ecbc postgrey-1.23.ebuild 2106 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2 (GNU/Linux) - -iD8DBQFDuHNrQlM6RnzZP+IRAkMaAJ4zUBxe8SO6F+hMCtIYN17dZDOlWQCfVUK0 -kcMjd1Xmi3eWBMM8U1tk2oU= -=0yid ------END PGP SIGNATURE----- +RMD160 0f58158292b1a5cbaaa273bd9d13097070bca046 postgrey-1.21.ebuild 1919 +SHA256 c48af444b2009ad039b5f40dd66c7124c399fd13c553074c7b3d2f0029f13cf0 postgrey-1.21.ebuild 1919 +MD5 0e556a7dafb5fe175d77804800c4b825 postgrey-1.23.ebuild 2095 +RMD160 d8ecf73b77529b539b5108e1cd26b761c2ec9303 postgrey-1.23.ebuild 2095 +SHA256 0f3495e9bfb113ab8b63414be0825b08d0d4527c7b765a4f1ba076e49db8f768 postgrey-1.23.ebuild 2095 +MD5 f9465c481e585fd67a8a7ee6b37b3a63 postgrey-1.24.ebuild 2001 +RMD160 13fc000eff380fb7571ae40e7dd7fac4efecf591 postgrey-1.24.ebuild 2001 +SHA256 05d301f62c6c1e8a75d5014e373061cc8e926394e36c8c658d043554af5025b5 postgrey-1.24.ebuild 2001 diff --git a/mail-filter/postgrey/files/digest-postgrey-1.24 b/mail-filter/postgrey/files/digest-postgrey-1.24 new file mode 100644 index 000000000000..f001d64ea3d8 --- /dev/null +++ b/mail-filter/postgrey/files/digest-postgrey-1.24 @@ -0,0 +1,3 @@ +MD5 db11f4da47ee28252cf2ddd160308d7e postgrey-1.24.tar.gz 27444 +RMD160 232c8fb70370f85ccd4542a11ae2880386a47e1c postgrey-1.24.tar.gz 27444 +SHA256 266506813ee56314ea3f2e96dbfe0c7cbfe8a8548f3718f2d0952b0370683b77 postgrey-1.24.tar.gz 27444 diff --git a/mail-filter/postgrey/files/postgrey.conf b/mail-filter/postgrey/files/postgrey.conf index 9881c2e71f05..ddcbc8d787bf 100644 --- a/mail-filter/postgrey/files/postgrey.conf +++ b/mail-filter/postgrey/files/postgrey.conf @@ -1,7 +1,3 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/files/postgrey.conf,v 1.2 2005/09/04 13:03:12 ticho Exp $ - # Config file for /etc/init.d/postgrey # LISTEN TYPE @@ -11,7 +7,7 @@ POSTGREY_TYPE="inet" # HOST # What IP should postgrey bind to? -# Leave unchanged unless you know what are you doing. +# Leave unchanged unless you know what you are doing. # (ignored if POSTGREY_TYPE is set to 'unix') POSTGREY_HOST="127.0.0.1" @@ -22,6 +18,7 @@ POSTGREY_PORT="10030" # SOCKET # Unix socket to listen on, if POSTGREY_TYPE is set to 'unix'. +# Leave unchanged unless you know what you are doing. # (ignored if POSTGREY_TYPE is set to 'inet') POSTGREY_SOCKET="/var/spool/postfix/private/postgrey" diff --git a/mail-filter/postgrey/files/postgrey.conf.new b/mail-filter/postgrey/files/postgrey.conf.new index ddcbc8d787bf..7a6deb587fc1 100644 --- a/mail-filter/postgrey/files/postgrey.conf.new +++ b/mail-filter/postgrey/files/postgrey.conf.new @@ -27,18 +27,22 @@ POSTGREY_SOCKET="/var/spool/postfix/private/postgrey" # Do not change, if you don't know what this is! POSTGREY_PID="/var/run/postgrey.pid" +# DELAY +# How long to delay mail that is greylisted in seconds. +POSTGREY_DELAY=300 + +# TEXT +# The response we'll send back with delayed mail. +POSTGREY_TEXT="Greylisted for %s seconds" # Additional Postgrey options # # -v, --verbose increase verbosity level -# --delay=N greylist for N seconds (default: 300) # --max-age=N delete entries older than N days since the last time # that they have been seen (default: 30) # --retry-window=N allow only N days for the first retrial (default: 2) # append 'h' if you want to specify it in hours # --greylist-action=A if greylisted, return A to Postfix (default: DEFER_IF_PERMIT) -# --greylist-text=TXT response when a mail is greylisted -# (default: Greylisted for %s seconds) # --lookup-by-subnet strip the last 8 bits from IP addresses (default) # --lookup-by-host do not strip the last 8 bits from IP addresses # --whitelist-clients=FILE default: /etc/postfix/postgrey_whitelist_clients diff --git a/mail-filter/postgrey/files/postgrey.rc b/mail-filter/postgrey/files/postgrey.rc index 95dc11a1203b..2c339168f386 100644 --- a/mail-filter/postgrey/files/postgrey.rc +++ b/mail-filter/postgrey/files/postgrey.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/files/postgrey.rc,v 1.6 2005/09/07 21:24:04 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/files/postgrey.rc,v 1.7 2006/02/25 17:59:13 ticho Exp $ conf="/etc/conf.d/postgrey" @@ -57,7 +57,9 @@ start() { # HACK -- start a subshell and corrects perms on the socket... ( if [ "x${POSTGREY_TYPE}" = "xunix" ]; then - sleep 2 && chmod a+rw,a-x ${POSTGREY_SOCKET}; fi ) & + rm -f ${POSTGREY_SOCKET}; + while ! test -S ${POSTGREY_SOCKET}; do sleep 1; done; + chmod a+rw,a-x ${POSTGREY_SOCKET}; fi ) & start-stop-daemon --start --quiet --background \ --exec /usr/sbin/postgrey -- \ diff --git a/mail-filter/postgrey/files/postgrey.rc.new b/mail-filter/postgrey/files/postgrey.rc.new index 8d32cee405ee..ee8ac7f1eea1 100644 --- a/mail-filter/postgrey/files/postgrey.rc.new +++ b/mail-filter/postgrey/files/postgrey.rc.new @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/files/postgrey.rc.new,v 1.2 2005/09/07 21:24:04 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/files/postgrey.rc.new,v 1.3 2006/02/25 17:59:13 ticho Exp $ conf="/etc/conf.d/postgrey" @@ -57,13 +57,29 @@ start() { # HACK -- start a subshell and corrects perms on the socket... ( if [ "x${POSTGREY_TYPE}" = "xunix" ]; then - sleep 2 && chmod a+rw,a-x ${POSTGREY_SOCKET}; fi ) & + rm -f ${POSTGREY_SOCKET}; + while ! test -S ${POSTGREY_SOCKET}; do sleep 1; done; + chmod a+rw,a-x ${POSTGREY_SOCKET}; fi ) & + + if [ -z ${POSTGREY_DELAY} ] ; then + POSTGREY_DELAY_ARG="" + else + POSTGREY_DELAY_ARG="--delay=${POSTGREY_DELAY}" + fi + + if [ -z "${POSTGREY_TEXT}" ] ; then + POSTGREY_TEXT_ARG="" + else + POSTGREY_TEXT_ARG="--greylist-text=\"${POSTGREY_TEXT}\"" + fi start-stop-daemon --start --quiet --background \ --exec /usr/sbin/postgrey -- \ --${POSTGREY_ADDR} \ --daemonize \ --pidfile=${POSTGREY_PID} \ + ${POSTGREY_DELAY_ARG} \ + ${POSTGREY_TEXT_ARG} \ ${POSTGREY_OPTS} eend ${?} } diff --git a/mail-filter/postgrey/files/postgrey.rc.new-r2 b/mail-filter/postgrey/files/postgrey.rc.new-r2 deleted file mode 100644 index 7eafd3a47cb5..000000000000 --- a/mail-filter/postgrey/files/postgrey.rc.new-r2 +++ /dev/null @@ -1,77 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/files/postgrey.rc.new-r2,v 1.1 2005/11/03 22:38:03 ticho Exp $ - -conf="/etc/conf.d/postgrey" - -depend() { - need net - before postfix - provide postfix_greylist -} - -conf_error() { - eerror "You need to setup ${conf} first" - return 1 -} - -checkconfig() { -if [ -z "${POSTGREY_TYPE}" ] - then - einfo "You need to choose the server type you want" - einfo "by setting the POSTGREY_TYPE variable in ${conf}." - else - if [ "x${POSTGREY_TYPE}" = "xinet" ] - then - if [ -z "${POSTGREY_PORT}" ] || [ -z "${POSTGREY_HOST}" ] - then - einfo "The following entries are missing in ${conf}:" - [ -z "${POSTGREY_HOST}" ] && einfo " - POSTGREY_HOST" - [ -z "${POSTGREY_PORT}" ] && einfo " - POSTGREY_PORT" - conf_error - fi - POSTGREY_ADDR="${POSTGREY_TYPE}=${POSTGREY_HOST}:${POSTGREY_PORT}" - else - if [ -z "${POSTGREY_SOCKET}" ] - then - einfo "The following entries are missing in ${conf}:" - [ -z "${POSTGREY_SOCKET}" ] && einfo " - POSTGREY_SOCKET" - conf_error - fi - POSTGREY_ADDR="${POSTGREY_TYPE}=${POSTGREY_SOCKET}" - fi -fi - - if [ -z "${POSTGREY_PID}" ] - then - einfo "The following entries are missing in ${conf}:" - [ -z "${POSTGREY_PID}" ] && einfo " - POSTGREY_PID" - conf_error - fi -} - -start() { - checkconfig || return 1 - ebegin "Starting Postgrey" - - # HACK -- start a subshell and corrects perms on the socket... - ( if [ "x${POSTGREY_TYPE}" = "xunix" ]; then - rm -f ${POSTGREY_SOCKET}; - while ! test -S ${POSTGREY_SOCKET}; do sleep 1; done; - chmod a+rw,a-x ${POSTGREY_SOCKET}; fi ) & - - start-stop-daemon --start --quiet --background \ - --exec /usr/sbin/postgrey -- \ - --${POSTGREY_ADDR} \ - --daemonize \ - --pidfile=${POSTGREY_PID} \ - ${POSTGREY_OPTS} - eend ${?} -} - -stop() { - ebegin "Stopping Postgrey" - start-stop-daemon --stop --quiet --pidfile ${POSTGREY_PID} - eend ${?} -} diff --git a/mail-filter/postgrey/postgrey-1.21-r1.ebuild b/mail-filter/postgrey/postgrey-1.21-r1.ebuild index f7e2f294c76c..814db80a0044 100644 --- a/mail-filter/postgrey/postgrey-1.21-r1.ebuild +++ b/mail-filter/postgrey/postgrey-1.21-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/postgrey-1.21-r1.ebuild,v 1.4 2005/12/23 20:17:13 blubb Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/postgrey-1.21-r1.ebuild,v 1.5 2006/02/25 17:59:13 ticho Exp $ inherit eutils @@ -50,8 +50,8 @@ src_install () { dodoc Changes README # init.d + conf.d files - newinitd ${FILESDIR}/${PN}.rc.new ${PN} - newconfd ${FILESDIR}/${PN}.conf.new ${PN} + newinitd ${FILESDIR}/${PN}.rc ${PN} + newconfd ${FILESDIR}/${PN}.conf ${PN} } pkg_postinst() { diff --git a/mail-filter/postgrey/postgrey-1.21-r2.ebuild b/mail-filter/postgrey/postgrey-1.21-r2.ebuild index 9fbe9931264a..50385bdd3130 100644 --- a/mail-filter/postgrey/postgrey-1.21-r2.ebuild +++ b/mail-filter/postgrey/postgrey-1.21-r2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/postgrey-1.21-r2.ebuild,v 1.3 2005/12/12 10:31:25 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/postgrey-1.21-r2.ebuild,v 1.4 2006/02/25 17:59:13 ticho Exp $ inherit eutils @@ -50,8 +50,8 @@ src_install () { dodoc Changes README # init.d + conf.d files - newinitd ${FILESDIR}/${PN}.rc.new-r2 ${PN} - newconfd ${FILESDIR}/${PN}.conf.new ${PN} + newinitd ${FILESDIR}/${PN}.rc ${PN} + newconfd ${FILESDIR}/${PN}.conf ${PN} } pkg_postinst() { diff --git a/mail-filter/postgrey/postgrey-1.23.ebuild b/mail-filter/postgrey/postgrey-1.23.ebuild index 86200f918036..ac41bd2f739c 100644 --- a/mail-filter/postgrey/postgrey-1.23.ebuild +++ b/mail-filter/postgrey/postgrey-1.23.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/postgrey-1.23.ebuild,v 1.1 2006/01/02 00:27:07 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/postgrey-1.23.ebuild,v 1.2 2006/02/25 17:59:13 ticho Exp $ inherit eutils @@ -20,7 +20,7 @@ RDEPEND=">=dev-lang/perl-5.6.0 >=sys-libs/db-4.1 >=mail-mta/postfix-2.1.0" -KEYWORDS="~alpha ~amd64 ~x86" +KEYWORDS="~alpha amd64 x86" pkg_setup() { enewgroup ${PN} @@ -50,8 +50,8 @@ src_install () { dodoc Changes README # init.d + conf.d files - newinitd ${FILESDIR}/${PN}.rc.new-r2 ${PN} - newconfd ${FILESDIR}/${PN}.conf.new ${PN} + newinitd ${FILESDIR}/${PN}.rc ${PN} + newconfd ${FILESDIR}/${PN}.conf ${PN} } pkg_postinst() { diff --git a/mail-filter/postgrey/postgrey-1.24.ebuild b/mail-filter/postgrey/postgrey-1.24.ebuild new file mode 100644 index 000000000000..b7f41edd2d6c --- /dev/null +++ b/mail-filter/postgrey/postgrey-1.24.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/postgrey-1.24.ebuild,v 1.1 2006/02/25 17:59:13 ticho Exp $ + +inherit eutils + +DESCRIPTION="Postgrey is a Postfix policy server implementing greylisting" +SRC_URI="http://isg.ee.ethz.ch/tools/${PN}/pub/${P}.tar.gz + http://isg.ee.ethz.ch/tools/${PN}/pub/old/${P}.tar.gz" +HOMEPAGE="http://isg.ee.ethz.ch/tools/postgrey/" +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 + >=sys-libs/db-4.1 + >=mail-mta/postfix-2.1.0" + +KEYWORDS="~alpha ~amd64 ~x86" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /dev/null ${PN} +} + +src_install () { + cd ${S} + + # 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 + + # 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 + newinitd ${FILESDIR}/${PN}.rc.new ${PN} + newconfd ${FILESDIR}/${PN}.conf.new ${PN} +} + +pkg_postinst() { + echo + einfo "To make use of greylisting, please update your postfix config:" + einfo + + einfo "In order to start using postgrey, edit /etc/conf.d/postgrey, add following lines" + einfo "to smtpd_recipient restrictions setting in your /etc/postfix/main.cf:" + einfo "\t\"check_policy_service inet:127.0.0.1:10030\", if you're using TCP socket" + einfo "\t\"check_policy_service unix:private/postgrey\", if you're using UNIX socket" + einfo "Then, start postgrey and restart postfix." + + einfo "Also remember to make the daemon start durig system boot:" + einfo " rc-update add postgrey default" + echo + ewarn "Read postgrey documentation for more info (perldoc postgrey)." + echo + epause 5 +} |