FYI, I tried this and seems to work fine on a pure x86_64 and x86
(-O2optimizations there should be fine).
I removed also some bash-specific lines (the interpreter of the
scripts is set to /bin/sh).

Matteo
diff -Naur samhain.orig/samhain.SlackBuild samhain/samhain.SlackBuild
--- samhain.orig/samhain.SlackBuild	2013-11-22 09:53:24.791733113 +0100
+++ samhain/samhain.SlackBuild	2013-11-22 10:00:22.889733113 +0100
@@ -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 @@
   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 @@
 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 @@
 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
_______________________________________________
SlackBuilds-users mailing list
[email protected]
http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - http://slackbuilds.org/faq/

Reply via email to