diff options
author | davjohn <david.cla2@gmail.com> | 2017-07-22 23:55:34 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-07-26 18:29:12 +0700 |
commit | 672514e23b4ae050a00666acb735dbb378fe1dbe (patch) | |
tree | 6e83180c7d1e6c0980aaeda94faee69feeda2f7f /network/psad/psad.SlackBuild | |
parent | 8ea86f9c752c5ed37338333c897596ffccad444b (diff) |
network/psad: Updated for version 2.4.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/psad/psad.SlackBuild')
-rw-r--r-- | network/psad/psad.SlackBuild | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/network/psad/psad.SlackBuild b/network/psad/psad.SlackBuild index 8c1b4104fea5..61da7bcfc7b5 100644 --- a/network/psad/psad.SlackBuild +++ b/network/psad/psad.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=psad -VERSION=${VERSION:-2.4.4} +VERSION=${VERSION:-2.4.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} ALERTSEMAIL=${ALERTSEMAIL:-root@localhost} @@ -91,13 +91,11 @@ SRCPATH=${PKG//\//\\\/} SRCPATH2="$SRCPATH\/" DSTPATH="\/" -echo $SRCPATH -echo $SRCPATH2 find $PKG/ -type f -name '*.conf' -exec sed -i "s/$SRCPATH/$DSTPATH/g" {} + find $PKG/ -type f -regex '.*\.\(pod\|conf\|packlist\)' -exec sed -i "s/$SRCPATH2/$DSTPATH/g" {} + mkdir -p $PKG/etc/logrotate.d -cp logrotate.psad $PKG/etc/logrotate.d/ +cp ./misc/logrotate.psad $PKG/etc/logrotate.d/ cp $CWD/signatures $PKG/etc/psad/signatures.new mv $PKG/etc/psad/auto_dl $PKG/etc/psad/auto_dl.new @@ -114,7 +112,7 @@ sed -i 's/start)/start)\n mkdir -p \/var\/run\/psad/g' $PKG/etc/rc.d/rc.psad. sed -i 's/\/var\/log\/messages;/\/var\/log\/syslog;/g' $PKG/etc/psad/psad.conf.new mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a BENCHMARK CREDITS ChangeLog FW_EXAMPLE_RULES FW_HELP LICENSE README* \ +cp -a ./doc/BENCHMARK CREDITS ChangeLog ./doc/FW_EXAMPLE_RULES ./doc/README.SYSLOG ./doc/SCAN_LOG LICENSE README* \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |