diff options
Diffstat (limited to 'network/amap')
-rw-r--r-- | network/amap/README | 9 | ||||
-rw-r--r-- | network/amap/amap.SlackBuild | 16 |
2 files changed, 18 insertions, 7 deletions
diff --git a/network/amap/README b/network/amap/README index 0d7a00630f..391e96af4a 100644 --- a/network/amap/README +++ b/network/amap/README @@ -1,4 +1,5 @@ -Amap is a next-generation scanning tool for pentesters. It attempts to identify -applications even if they are running on a different port than normal. -It also identifies non-ascii based applications. This is achieved by sending -trigger packets, and looking up the responses in a list of response strings. +Amap is a next-generation scanning tool for pentesters. It attempts +to identify applications even if they are running on a different port +than normal. It also identifies non-ascii based applications. This is +achieved by sending trigger packets, and looking up the responses in a +list of response strings. diff --git a/network/amap/amap.SlackBuild b/network/amap/amap.SlackBuild index 89746776f4..b410bd6c3c 100644 --- a/network/amap/amap.SlackBuild +++ b/network/amap/amap.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Amap (Application Mapper) # @@ -23,10 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=amap VERSION=${VERSION:-5.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +39,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -94,4 +104,4 @@ 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.$PKGTYPE |