mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
network/postgrey: Fix sed command.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
e4c19e3038
commit
a15e6454c5
1 changed files with 11 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue