diff options
author | Vegard Haugland <vegard@haugland.at> | 2017-01-22 08:43:15 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-01-24 07:22:55 +0700 |
commit | 0ae53b88497f400f648500c20bc5bf9c255167d1 (patch) | |
tree | c6efa99694d0a0be4dc1d19af3385400c45a215b /misc/yara/yara.SlackBuild | |
parent | 22d7f38cd26bba6ec2741c5110bab12de38471e2 (diff) | |
download | slackbuilds-0ae53b88497f400f648500c20bc5bf9c255167d1.tar.gz |
misc/yara: Updated for version 3.5.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/yara/yara.SlackBuild')
-rw-r--r-- | misc/yara/yara.SlackBuild | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/misc/yara/yara.SlackBuild b/misc/yara/yara.SlackBuild index 67f4ed7efa..2cb7609ac9 100644 --- a/misc/yara/yara.SlackBuild +++ b/misc/yara/yara.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for yara -# Copyright 2011 Vegard Haugland <vegard@haugland.at> +# Copyright 2017 Vegard Haugland <vegard@haugland.at> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=yara -VERSION=${VERSION:-1.5} +VERSION=${VERSION:-3.5.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -61,15 +61,15 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz - cd $PRGNAM-$VERSION chown -R root:root . 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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -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 {} \; +./bootstrap.sh CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -78,7 +78,8 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ - --libdir=/usr/lib${LIBDIRSUFFIX} + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --build=$ARCH-slackware-linux make make install DESTDIR=$PKG @@ -90,7 +91,7 @@ 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README INSTALL AUTHORS COPYING NEWS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a sample.file README.md AUTHORS CONTRIBUTORS COPYING $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |