network/postgrey: Updated for version 1.37.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Robby Workman 2020-08-07 23:10:55 -05:00 committed by Willy Sudiarto Raharjo
parent c5e55399a0
commit 5b14a05112
No known key found for this signature in database
GPG key ID: 3F617144D7238786
5 changed files with 26 additions and 14 deletions

View file

@ -21,5 +21,6 @@ preserve_perms() {
config etc/postfix/postgrey_whitelist_clients.new
config etc/postfix/postgrey_whitelist_recipients.new
config etc/postgrey.conf.new
preserve_perms etc/rc.d/rc.postgrey.new

View file

@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=postgrey
VERSION=${VERSION:-1.34}
BUILD=${BUILD:-2}
VERSION=${VERSION:-1.37}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -96,12 +96,15 @@ mkdir -p $PKG/usr/bin
cp -a policy-test postgrey contrib/postgreyreport $PKG/usr/bin
mkdir -p $PKG/etc/rc.d
sed -e s/%POSTGREYUSR%/$POSTGREYUSR/g \
-e s/%POSTGREYGRP%/$POSTGREYGRP/g \
$CWD/postgrey.conf > $PKG/etc/postgrey.conf.new
sed -e s/%POSTGREYUSR%/$POSTGREYUSR/g \
-e s/%POSTGREYGRP%/$POSTGREYGRP/g \
$CWD/rc.postgrey > $PKG/etc/rc.d/rc.postgrey.new
mkdir -p $PKG/var/{lib,run}/postgrey
chown $POSTGREYUSR.$POSTGREYGRP $PKG/var/lib/postgrey $PKG/var/run/postgrey
mkdir -p $PKG/var/lib/postgrey
chown ${POSTGREYUSR}:${POSTGREYGRP} $PKG/var/lib/postgrey
mkdir -p $PKG/etc/postfix
cp -a postgrey_whitelist_clients $PKG/etc/postfix/postgrey_whitelist_clients.new

View file

@ -0,0 +1,10 @@
# /etc/postgrey.conf
#
# This file will be sourced from /etc/rc.d/rc.postgrey
#
PORT=10025
PIDFILE=/var/run/postgrey/postgrey.pid
USER=%POSTGREYUSR%
GROUP=%POSTGREYGRP%
HOST=mail.example.com

View file

@ -1,8 +1,8 @@
PRGNAM="postgrey"
VERSION="1.34"
VERSION="1.37"
HOMEPAGE="http://postgrey.schweikert.ch/"
DOWNLOAD="http://postgrey.schweikert.ch/pub/old/postgrey-1.34.tar.gz"
MD5SUM="f736a7be1094593f1a66cd13f32b39ef"
DOWNLOAD="http://postgrey.schweikert.ch/pub/postgrey-1.37.tar.gz"
MD5SUM="2ef30f42ad84f00caf41c49b593b8e2a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="perl-Net-Server perl-IO-Multiplex perl-BerkeleyDB perl-net-dns"

View file

@ -1,17 +1,15 @@
#!/bin/bash
PORT=10025
PIDFILE=/var/run/postgrey/postgrey.pid
USER=%POSTGREYUSR%
GROUP=%POSTGREYGRP%
HOST=mail.example.com
. /etc/postgrey.conf || exit 1
postgrey_start() {
echo "Starting postgrey milter: /usr/bin/postgrey -d --inet=$PORT --pidfile=$PIDFILE --user=$USER --group=$GROUP --dbdir=/var/lib/postgrey --hostname=$HOST"
mkdir -p /var/run/postgrey
mkdir -p $(dirname $PIDFILE)
chown ${USER}:${GROUP} $(dirname $PIDFILE)
/usr/bin/postgrey -d \
--inet=$PORT \
--pidfile=/var/run/postgrey/postgrey.pid \
--pidfile=$PIDFILE \
--user=$USER --group=$GROUP \
--dbdir=/var/lib/postgrey \
--hostname=$HOST