Browse Source

misc/yara: Updated for version 3.5.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/28/head
Vegard Haugland 9 years ago
committed by Willy Sudiarto Raharjo
parent
commit
0ae53b8849
No known key found for this signature in database GPG Key ID: 887B8374D7333381
  1. 0
      misc/yara/doinst.sh
  2. 21
      misc/yara/yara.SlackBuild
  3. 8
      misc/yara/yara.info

0
misc/yara/doinst.sh

21
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

8
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=""

Loading…
Cancel
Save