aboutsummaryrefslogtreecommitdiff
path: root/network/snort
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-03-05 12:07:32 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-07 08:45:28 +0700
commit1aa840576de0775b09cc891778ac87f97ffa8289 (patch)
tree888f1f88718d9d534a61b8934d6e3ef50c8d085e /network/snort
parentc4ea91c326513ce2abd0d0304da826ba875bb118 (diff)
network/snort: Fix github tarball handling.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/snort')
-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 cd46f30e2002a..50b83715e2c87 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