aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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