summaryrefslogtreecommitdiff
path: root/network/w3af/w3af.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/w3af/w3af.SlackBuild')
-rw-r--r--network/w3af/w3af.SlackBuild19
1 files changed, 7 insertions, 12 deletions
diff --git a/network/w3af/w3af.SlackBuild b/network/w3af/w3af.SlackBuild
index c690429dcb..648be40a7e 100644
--- a/network/w3af/w3af.SlackBuild
+++ b/network/w3af/w3af.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=w3af
-VERSION=${VERSION:-1.0_rc2}
+VERSION=${VERSION:-1.0_rc3}
ARCH=noarch
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
@@ -44,7 +44,7 @@ mkdir -p $TMP $PKG $OUTPUT
# Install w3af in /opt
mkdir -p $PKG/opt
-tar xvf $CWD/${PRGNAM}_${SRCVERSION}.tar.bz2 -C $PKG/opt
+tar xvf $CWD/${PRGNAM}-${SRCVERSION}.tar.bz2 -C $PKG/opt
cd $PKG/opt/$PRGNAM
chown -R root:root .
find . \
@@ -57,23 +57,18 @@ find . \
rm -r extlib
# Add launchers in /usr/bin
-mkdir -p $PKG/usr/bin
-( cd $PKG/usr/bin
- cat $CWD/w3af_console > w3af_console
- cat $CWD/w3af_gui > w3af_gui
- chmod 755 w3af_*
-)
+install -Dm0755 $CWD/w3af_console $PKG/usr/bin/w3af_console
+install -Dm0755 $CWD/w3af_gui $PKG/usr/bin/w3af_gui
# Every useful doc is included inside the w3af/readme folder, just copy over the
# GPL and README
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-( cd $PKG/opt/$PRGNAM/readme/
- cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
-)
+cd $PKG/opt/$PRGNAM/readme/
+cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz