aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2013-11-22 13:21:44 +0100
committerRobby Workman <rworkman@slackbuilds.org>2013-11-22 17:45:52 -0600
commitbbe8c0a7089a10ac3cd8205d4498087904e79cf9 (patch)
tree1c145bc4cce4f632eef86d5fe42b92c341ba055c
parent7af2bf5b1a940daea625e6e8a2a1c352e6b4e38a (diff)
system/samhain: Fix building on x86_64, removed bashisms.
Thanks to Richard Scott Smith for the hints on optimizations Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--system/samhain/samhain.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/samhain/samhain.SlackBuild b/system/samhain/samhain.SlackBuild
index 3231f84bc5c89..533852d83900c 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