diff options
Diffstat (limited to 'network/zeek')
-rw-r--r-- | network/zeek/zeek.SlackBuild | 27 | ||||
-rw-r--r-- | network/zeek/zeek.info | 6 |
2 files changed, 23 insertions, 10 deletions
diff --git a/network/zeek/zeek.SlackBuild b/network/zeek/zeek.SlackBuild index 74ef79c56b..aa56b4884c 100644 --- a/network/zeek/zeek.SlackBuild +++ b/network/zeek/zeek.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for Zeek -# Copyright 2018-2022 Michael Edie, Tampa, FL USA +# Copyright 2018-2024 Michael Edie, Tampa, FL USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=zeek -VERSION=${VERSION:-4.2.2} +VERSION=${VERSION:-6.0.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -72,6 +72,7 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION + chown -R root:root . # -L bails out because of a loop find . \ @@ -80,10 +81,15 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +make distclean + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ - --prefix=/opt/$PRGNAM + --prefix=/opt/$PRGNAM \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --localstatedir=/var \ + --mandir=/usr/man make make install DESTDIR=$PKG @@ -93,11 +99,16 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr BIN="zeek zeek-config zeekctl zeek-cut capstats trace-summary" mkdir -p $PKG/usr/bin -for i in $BIN - do ln -sf /opt/$PRGNAM/bin/$i $PKG/usr/bin/$i -done +( + cd $PKG/usr/bin + for i in $BIN + do ln -sf ../../opt/$PRGNAM/bin/$i $i + done +) + +find -L $PKG -type l 2>&1 | grep loop | iconv -t 8859_1//TRANSLIT | + cut -d"'" -f2 | xargs rm -v || true -mv $PKG/opt/$PRGNAM/share/man $PKG/usr 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 @@ -109,4 +120,6 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG +rm -f opt/zeek/include/zeek/builtin-plugins/spicy-plugin/usr/lib$LIBDIRSUFFIX/zeek-spicy + /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/network/zeek/zeek.info b/network/zeek/zeek.info index 7ba3e20913..6913ff5cd2 100644 --- a/network/zeek/zeek.info +++ b/network/zeek/zeek.info @@ -1,8 +1,8 @@ PRGNAM="zeek" -VERSION="4.2.2" +VERSION="6.0.6" HOMEPAGE="https://www.zeek.org" -DOWNLOAD="https://download.zeek.org/zeek-4.2.2.tar.gz" -MD5SUM="6f1e56386127e6057c4615f06a181b3b" +DOWNLOAD="https://download.zeek.org/zeek-6.0.6.tar.gz" +MD5SUM="5f60c60201c8dadbc16f6eebc7dc5359" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |