diff options
-rw-r--r-- | network/zeek/zeek.SlackBuild | 30 | ||||
-rw-r--r-- | network/zeek/zeek.info | 6 |
2 files changed, 26 insertions, 10 deletions
diff --git a/network/zeek/zeek.SlackBuild b/network/zeek/zeek.SlackBuild index 702b1cb0020f..b796355e50bb 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-2023 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:-5.0.4} +VERSION=${VERSION:-5.0.8} 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,17 @@ 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 +#mv $PKG/opt/zeek/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 +121,8 @@ 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 + +#find . -type d -empty -delete + /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 86e996b5cc94..009ae2123355 100644 --- a/network/zeek/zeek.info +++ b/network/zeek/zeek.info @@ -1,8 +1,8 @@ PRGNAM="zeek" -VERSION="5.0.4" +VERSION="5.0.8" HOMEPAGE="https://www.zeek.org" -DOWNLOAD="https://download.zeek.org/zeek-5.0.4.tar.gz" -MD5SUM="b3ac7653e30e8775e2a34e9861807f17" +DOWNLOAD="https://download.zeek.org/zeek-5.0.8.tar.gz" +MD5SUM="6d9df8ee67f99532bf55fe0ecc427020" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |