From 0ae53b88497f400f648500c20bc5bf9c255167d1 Mon Sep 17 00:00:00 2001 From: Vegard Haugland Date: Sun, 22 Jan 2017 08:43:15 +0700 Subject: misc/yara: Updated for version 3.5.0. Signed-off-by: Willy Sudiarto Raharjo --- misc/yara/doinst.sh | 0 misc/yara/yara.SlackBuild | 21 +++++++++++---------- misc/yara/yara.info | 8 ++++---- 3 files changed, 15 insertions(+), 14 deletions(-) delete mode 100644 misc/yara/doinst.sh diff --git a/misc/yara/doinst.sh b/misc/yara/doinst.sh deleted file mode 100644 index e69de29bb2..0000000000 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 +# Copyright 2017 Vegard Haugland # 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 diff --git a/misc/yara/yara.info b/misc/yara/yara.info index f0fa5bd03b..3e853af859 100644 --- a/misc/yara/yara.info +++ b/misc/yara/yara.info @@ -1,8 +1,8 @@ PRGNAM="yara" -VERSION="1.5" -HOMEPAGE="http://code.google.com/p/yara-project/" -DOWNLOAD="http://yara-project.googlecode.com/files/yara-1.5.tar.gz" -MD5SUM="ccca92dfd8423186f5270fabd52782e5" +VERSION="3.5.0" +HOMEPAGE="https://github.com/VirusTotal/yara/releases" +DOWNLOAD="https://github.com/VirusTotal/yara/archive/v3.5.0/yara-3.5.0.tar.gz" +MD5SUM="7a3248719771ece845f2ef94b09732f2" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -- cgit v1.2.3