From 1aa840576de0775b09cc891778ac87f97ffa8289 Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Sat, 5 Mar 2022 12:07:32 +1300 Subject: network/snort: Fix github tarball handling. Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- network/snort/snort.SlackBuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'network/snort') diff --git a/network/snort/snort.SlackBuild b/network/snort/snort.SlackBuild index cd46f30e2002..50b83715e2c8 100644 --- a/network/snort/snort.SlackBuild +++ b/network/snort/snort.SlackBuild @@ -73,7 +73,12 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +# respecting content-disposition may include cgi params in the filename +TARBALL=$CWD/$PRGNAM-$VERSION.tar.gz +if [ ! -e $TARBALL ]; then + TARBALL="$(/bin/ls $TARBALL\?* | head -1)" +fi +tar xvf $TARBALL cd $PRGNAM-$VERSION # The Makefiles do not respect the --libdir setting, which causes the libs to -- cgit v1.2.3