pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/amap Amap is a next-generation scanning tool,...
details: https://anonhg.NetBSD.org/pkgsrc/rev/61bfd2818b26
branches: trunk
changeset: 492980:61bfd2818b26
user: adrianp <adrianp%pkgsrc.org@localhost>
date: Sun Apr 24 12:10:47 2005 +0000
description:
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:
security/amap/DESCR | 3 ++
security/amap/Makefile | 50 +++++++++++++++++++++++++++++++++
security/amap/PLIST | 9 ++++++
security/amap/distinfo | 8 +++++
security/amap/patches/patch-aa | 62 ++++++++++++++++++++++++++++++++++++++++++
security/amap/patches/patch-ab | 16 ++++++++++
security/amap/patches/patch-ac | 13 ++++++++
7 files changed, 161 insertions(+), 0 deletions(-)
diffs (189 lines):
diff -r 15778f44e92b -r 61bfd2818b26 security/amap/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/amap/DESCR Sun Apr 24 12:10:47 2005 +0000
@@ -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 -r 15778f44e92b -r 61bfd2818b26 security/amap/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/amap/Makefile Sun Apr 24 12:10:47 2005 +0000
@@ -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@localhost
+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 -r 15778f44e92b -r 61bfd2818b26 security/amap/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/amap/PLIST Sun Apr 24 12:10:47 2005 +0000
@@ -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 -r 15778f44e92b -r 61bfd2818b26 security/amap/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/amap/distinfo Sun Apr 24 12:10:47 2005 +0000
@@ -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 -r 15778f44e92b -r 61bfd2818b26 security/amap/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/amap/patches/patch-aa Sun Apr 24 12:10:47 2005 +0000
@@ -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 -r 15778f44e92b -r 61bfd2818b26 security/amap/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/amap/patches/patch-ab Sun Apr 24 12:10:47 2005 +0000
@@ -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 -r 15778f44e92b -r 61bfd2818b26 security/amap/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/amap/patches/patch-ac Sun Apr 24 12:10:47 2005 +0000
@@ -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");
Home |
Main Index |
Thread Index |
Old Index