summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Andrew Clemons2022-03-05 00:07:32 +0100
committer Willy Sudiarto Raharjo2022-03-07 02:45:28 +0100
commit1aa840576de0775b09cc891778ac87f97ffa8289 (patch)
tree888f1f88718d9d534a61b8934d6e3ef50c8d085e
parentc4ea91c326513ce2abd0d0304da826ba875bb118 (diff)
downloadslackbuilds-1aa840576de0775b09cc891778ac87f97ffa8289.tar.gz
network/snort: Fix github tarball handling.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--network/snort/snort.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/network/snort/snort.SlackBuild b/network/snort/snort.SlackBuild
index cd46f30e20..50b83715e2 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