network/postgrey: Fix sed command.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2016-07-30 06:55:47 +07:00 committed by Willy Sudiarto Raharjo
parent e4c19e3038
commit a15e6454c5

View file

@ -24,7 +24,7 @@
PRGNAM=postgrey
VERSION=${VERSION:-1.34}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -87,36 +87,28 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/usr/bin
cp -a \
policy-test postgrey contrib/postgreyreport \
$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 \
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/etc/postfix
cp -a \
postgrey_whitelist_clients \
$PKG/etc/postfix/postgrey_whitelist_clients.new
cp -a \
postgrey_whitelist_recipients \
$PKG/etc/postfix/postgrey_whitelist_recipients.new
cp -a postgrey_whitelist_clients $PKG/etc/postfix/postgrey_whitelist_clients.new
cp -a postgrey_whitelist_recipients $PKG/etc/postfix/postgrey_whitelist_recipients.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
COPYING Changes README README.exim \
$PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING Changes README README.exim $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install