aboutsummaryrefslogtreecommitdiff
path: root/system/samhain/samhain.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2013-11-19 18:19:56 +0700
committerRobby Workman <rworkman@slackbuilds.org>2013-11-19 15:23:14 -0600
commitb041c46340c8dff4f06b1628c11658d1452aca85 (patch)
tree744eb3f6729c97cd752edf2f24132e94f5c4930f /system/samhain/samhain.SlackBuild
parentfccacee639f0ceec8855240e17170c3bff1e034f (diff)
system/samhain: Updated for version 3.1.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/samhain/samhain.SlackBuild')
-rw-r--r--system/samhain/samhain.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/system/samhain/samhain.SlackBuild b/system/samhain/samhain.SlackBuild
index d5d2d9103d09b..3231f84bc5c89 100644
--- a/system/samhain/samhain.SlackBuild
+++ b/system/samhain/samhain.SlackBuild
@@ -23,16 +23,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=samhain
-VERSION=2.8.3a
+VERSION=${VERSION:-3.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -62,18 +60,21 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -f $PRGNAM-$VERSION.tar.gz{,.asc}
-tar xf $CWD/$PRGNAM-current.tar.gz
+tar xvf $CWD/$PRGNAM-current.tar.gz
rm -rf $PRGNAM-$VERSION
tar xvf $PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+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 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -81,7 +82,6 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-# Stripping does not seem to work for 32 bit builds.
# Don't clobber the config file
mv $PKG/etc/samhainrc $PKG/etc/samhainrc.new