network/btpd: Fix github tarball handling.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
This commit is contained in:
Andrew Clemons 2022-02-27 14:01:45 +13:00 committed by Robby Workman
parent ff6e238905
commit 951b2e85a7

View file

@ -70,7 +70,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
chown -R root:root .
find -L . \