diff options
author | adrianp <adrianp> | 2005-04-24 12:10:47 +0000 |
---|---|---|
committer | adrianp <adrianp> | 2005-04-24 12:10:47 +0000 |
commit | c0912c1bccc68d33793c3933430834a67bc4c4d4 (patch) | |
tree | f3c535272fedbf8404a31d0f7c6980d5771e9e0f /security | |
parent | 0d66ff7f7adde10f09c7fa175f85f2ed295691a4 (diff) | |
download | pkgsrc-c0912c1bccc68d33793c3933430834a67bc4c4d4.tar.gz |
Amap is a next-generation scanning tool, it identifies applications and
services even if they are not listening on the default port by creating
a bogus-communication.
This is amap-5.0
Diffstat (limited to 'security')
-rw-r--r-- | security/amap/DESCR | 3 | ||||
-rw-r--r-- | security/amap/Makefile | 50 | ||||
-rw-r--r-- | security/amap/PLIST | 9 | ||||
-rw-r--r-- | security/amap/distinfo | 8 | ||||
-rw-r--r-- | security/amap/patches/patch-aa | 62 | ||||
-rw-r--r-- | security/amap/patches/patch-ab | 16 | ||||
-rw-r--r-- | security/amap/patches/patch-ac | 13 |
7 files changed, 161 insertions, 0 deletions
diff --git a/security/amap/DESCR b/security/amap/DESCR new file mode 100644 index 00000000000..0effba7e27e --- /dev/null +++ b/security/amap/DESCR @@ -0,0 +1,3 @@ +Amap is a next-generation scanning tool, it identifies applications and +services even if they are not listening on the default port by creating +a bogus-communication. diff --git a/security/amap/Makefile b/security/amap/Makefile new file mode 100644 index 00000000000..d5e50e6537b --- /dev/null +++ b/security/amap/Makefile @@ -0,0 +1,50 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/04/24 12:10:47 adrianp Exp $ +# + +DISTNAME= amap-5.0 +CATEGORIES= net security +MASTER_SITES= http://www.thc.org/releases/ + +MAINTAINER= adam@monkeybyte.org +HOMEPAGE= http://www.thc.org/ +COMMENT= Applications and Services scanner + +HAS_CONFIGURE= YES +USE_PKGINSTALL= YES + +CONFIGURE_ARGS+= --prefix=${PREFIX} +EGDIR= ${PREFIX}/share/examples/amap +PKG_SYSCONFSUBDIR?= amap + +LICENSE+= amap-license + +CONF_FILES= ${EGDIR}/appdefs.resp ${PKG_SYSCONFDIR}/appdefs.resp +CONF_FILES+= ${EGDIR}/appdefs.rpc ${PKG_SYSCONFDIR}/appdefs.rpc +CONF_FILES+= ${EGDIR}/appdefs.trig ${PKG_SYSCONFDIR}/appdefs.trig + +SUBST_CLASSES= conf +SUBST_FILES.conf= configure +SUBST_STAGE.conf= pre-configure +SUBST_SED.conf= -e 's|@PREFIX@|${PREFIX}|g' \ + -e 's|@MANDIR@|${PREFIX}/man|g' \ + -e 's|@COMPILER_RPATH_FLAG@|${COMPILER_RPATH_FLAG}|g' \ + -e 's|@SSLBASE@|${BUILDLINK_PREFIX.openssl}|g' \ + -e "s|@UNAME@|${UNAME}|g" +SUBST_MESSAGE.conf= "Fixing configure script." + +.include "../../security/openssl/buildlink3.mk" + +post-extract: + @${CHMOD} 0700 ${WRKSRC} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/amap ${PREFIX}/bin + ${LN} -s ${PREFIX}/bin/amap ${PREFIX}/bin/amap6 + ${INSTALL_PROGRAM} ${WRKSRC}/amapcrap ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/amap.1 ${PREFIX}/man/man1 + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/appdefs.trig ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/appdefs.resp ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/appdefs.rpc ${EGDIR} + +.include "../../mk/bsd.pkg.mk" diff --git a/security/amap/PLIST b/security/amap/PLIST new file mode 100644 index 00000000000..044238c476c --- /dev/null +++ b/security/amap/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/04/24 12:10:48 adrianp Exp $ +bin/amap +bin/amap6 +bin/amapcrap +man/man1/amap.1 +share/examples/amap/appdefs.resp +share/examples/amap/appdefs.rpc +share/examples/amap/appdefs.trig +@dirrm etc/amap diff --git a/security/amap/distinfo b/security/amap/distinfo new file mode 100644 index 00000000000..5e98a6a16d7 --- /dev/null +++ b/security/amap/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/04/24 12:10:48 adrianp Exp $ + +SHA1 (amap-5.0.tar.gz) = 156b8919427040f143649bf54bbf88a220be451c +RMD160 (amap-5.0.tar.gz) = fe80513c59d6f0f19dbb0cf778d97edc3dcf9d71 +Size (amap-5.0.tar.gz) = 261784 bytes +SHA1 (patch-aa) = d41ff8d37c6ed5ac5a6a1c39dcea51e8cf9441e1 +SHA1 (patch-ab) = 254e406b5194fc6be00f7286e5152749f9506c4e +SHA1 (patch-ac) = e331995893a865228383f5631f096e001bf64274 diff --git a/security/amap/patches/patch-aa b/security/amap/patches/patch-aa new file mode 100644 index 00000000000..e5cfd164b41 --- /dev/null +++ b/security/amap/patches/patch-aa @@ -0,0 +1,62 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/04/24 12:10:48 adrianp Exp $ + +--- configure.orig 2005-02-16 15:53:57.000000000 +0000 ++++ configure +@@ -35,7 +35,8 @@ echo + echo "Checking for openssl ..." + for i in $LIBDIRS /lib /usr/lib /usr/local/lib /opt/local/lib \ + /*ssl /usr/*ssl /opt/*ssl /usr/local/*ssl /opt/local/*ssl \ +-/*ssl/lib /usr/*ssl/lib /opt/*ssl/lib /usr/local/*ssl/lib /opt/local/*ssl/lib . ++/*ssl/lib /usr/*ssl/lib /opt/*ssl/lib /usr/local/*ssl/lib /opt/local/*ssl/lib \ ++@SSLBASE@/lib. + do + if [ "X" = "X$SSL_PATH" ]; then + if [ -f "$i/libssl.so" -o -f "$i/libssl.dylib" ]; then +@@ -62,7 +63,7 @@ do + done + + for i in /usr/local/include /*ssl/include /usr/include \ +-/opt/*ssl/include /usr/*ssl/include /usr/local/*ssl/include . ++/opt/*ssl/include /usr/*ssl/include /usr/local/*ssl/include @SSLBASE@/include . + do + if [ "X" = "X$SSL_IPATH" ]; then + if [ -f "$i/openssl/ssl.h" ]; then +@@ -89,7 +90,7 @@ if [ "$SSL_IPATH" = "/usr/include" ]; th + SSL_IPATH="" + fi + +-SYS=`uname` ++SYS=`@UNAME@` + if [ "$SYS" = "SunOS" ]; then + echo "Checking for Solaris libraries ..." + for i in /lib /usr/lib /usr/local/lib $LIBDIRS +@@ -152,7 +153,7 @@ if [ -n "$RESOLV_PATH" ]; then + XLIBS="$XLIBS -lresolv" + fi + +-for i in /usr/man /usr/share/man /usr/local/man /usr/local/share/man ; do ++for i in /usr/man /usr/share/man /usr/local/man /usr/local/share/man @MANDIR@; do + if [ -d $i ]; then + MANDIR=$i + fi +@@ -168,9 +169,9 @@ if [ -d /usr/kerberos/include ]; then + fi + + if [ -n "$PREFIX" ]; then +- XDEFINES="$XDEFINES -DAMAP_PREFIX=$PREFIX" ++ XDEFINES="$XDEFINES -DAMAP_PREFIX=\"\\\"$PREFIX/\\\"\"" + else +- PREFIX="/usr/local" ++ PREFIX="@PREFIX@" + fi + echo "Amap will be installed into .../bin and .../etc of: $PREFIX" + echo " (change this by running ./configure --prefix=path)" +@@ -178,7 +179,7 @@ echo + + echo "Writing Makefile.in ..." + echo "XDEFINES=$XDEFINES" >> Makefile.in +-echo "XLIBS=$XLIBS" >> Makefile.in ++echo "XLIBS=$XLIBS @COMPILER_RPATH_FLAG@@PREFIX@/lib -L@PREFIX@/lib" >> Makefile.in >> Makefile.in + echo "XLIBPATHS=$XLIBPATHS" >> Makefile.in + echo "XIPATHS=$XIPATHS" >> Makefile.in + echo "MANDIR=$MANDIR/man1/" >> Makefile.in diff --git a/security/amap/patches/patch-ab b/security/amap/patches/patch-ab new file mode 100644 index 00000000000..2683261c14f --- /dev/null +++ b/security/amap/patches/patch-ab @@ -0,0 +1,16 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/04/24 12:10:48 adrianp Exp $ + +--- Makefile.am.orig 2005-02-18 18:01:26.000000000 +0000 ++++ Makefile.am +@@ -1,7 +1,8 @@ +-CC=gcc ++#CC=gcc + LIB=-lpcre -L./pcre-3.9/ -I./pcre-3.9/ +-OPT=-O2 +-OPT_DEBUG=-ggdb -Wall -lefence ++SHAREDIR=${PREFIX}/share/amap ++OPT=${CFLAGS} -DSHAREDIR="\"$(SHAREDIR)/\"" ++#OPT_DEBUG=-ggdb -Wall -lefence + BINDIR=/bin + DATADIR=/etc + MANDIR=/man/man1 diff --git a/security/amap/patches/patch-ac b/security/amap/patches/patch-ac new file mode 100644 index 00000000000..69d44bc12ae --- /dev/null +++ b/security/amap/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2005/04/24 12:10:48 adrianp Exp $ + +--- amap-lib.c.orig 2005-04-24 12:47:05.000000000 +0100 ++++ amap-lib.c +@@ -290,7 +290,7 @@ FILE *amap_open_file(char *fnam, char *t + strcpy(file_name, AMAP_PREFIX); + if (file_name[strlen(file_name) - 1] != '/') + strcat(file_name, "/"); +- strcat(file_name, "etc/"); ++ strcat(file_name, "etc/amap/"); + strcat(file_name, AMAP_DEFAULT_FILENAME); + strcat(file_name, extension); + f = fopen(file_name, "r"); |