diff options
author | Andrew Clemons <aclemons@runbox.no> | 2016-07-30 06:55:47 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-07-30 06:55:47 +0700 |
commit | a15e6454c52fd6d26fbb42ca98b254de221b87a8 (patch) | |
tree | a062dc3ae0616bc93176c5e0da2edcb7c0a43af2 | |
parent | e4c19e3038779039d716c7cf66ac4c8218cf67c2 (diff) | |
download | slackbuilds-a15e6454c52fd6d26fbb42ca98b254de221b87a8.tar.gz |
network/postgrey: Fix sed command.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/postgrey/postgrey.SlackBuild | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/network/postgrey/postgrey.SlackBuild b/network/postgrey/postgrey.SlackBuild index 83d28a84cc..71fa28387f 100644 --- a/network/postgrey/postgrey.SlackBuild +++ b/network/postgrey/postgrey.SlackBuild @@ -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 |