From bbe8c0a7089a10ac3cd8205d4498087904e79cf9 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Fri, 22 Nov 2013 13:21:44 +0100 Subject: system/samhain: Fix building on x86_64, removed bashisms. Thanks to Richard Scott Smith for the hints on optimizations Signed-off-by: Matteo Bernardini --- system/samhain/samhain.SlackBuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'system/samhain') diff --git a/system/samhain/samhain.SlackBuild b/system/samhain/samhain.SlackBuild index 3231f84bc5c8..533852d83900 100644 --- a/system/samhain/samhain.SlackBuild +++ b/system/samhain/samhain.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=samhain VERSION=${VERSION:-3.1.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -47,7 +47,7 @@ elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" + SLKCFLAGS="-O1 -fPIC" LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" @@ -59,7 +59,7 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -f $PRGNAM-$VERSION.tar.gz{,.asc} +rm -f $PRGNAM-$VERSION.tar.gz $PRGNAM-$VERSION.tar.gz.asc tar xvf $CWD/$PRGNAM-current.tar.gz rm -rf $PRGNAM-$VERSION tar xvf $PRGNAM-$VERSION.tar.gz @@ -87,7 +87,7 @@ make install DESTDIR=$PKG mv $PKG/etc/samhainrc $PKG/etc/samhainrc.new # No need for /var/log and /var/run directories here -rmdir $PKG/var/{log,run} +rmdir $PKG/var/log $PKG/var/run find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -- cgit v1.2.3