Import amap 5.0
Amap is a next-generation scanning tool, which identifies applications and services even if they are not listening on the default port by creating a bogus-communication and analyzing the responses. From Alexandre Anriot <aanriot@atlantilde.com>
This commit is contained in:
parent
12499fc400
commit
53bc5f756c
35
security/amap/Makefile
Normal file
35
security/amap/Makefile
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# $OpenBSD: Makefile,v 1.1.1.1 2005/05/09 20:35:41 alek Exp $
|
||||||
|
|
||||||
|
COMMENT= "next generation scanning tool"
|
||||||
|
|
||||||
|
DISTNAME= amap-5.0
|
||||||
|
CATEGORIES= security
|
||||||
|
|
||||||
|
HOMEPAGE= http://www.thc.org/
|
||||||
|
|
||||||
|
MAINTAINER= Alexandre Anriot <aanriot@atlantilde.com>
|
||||||
|
|
||||||
|
# GPL with changes
|
||||||
|
PERMIT_PACKAGE_CDROM= No
|
||||||
|
PERMIT_PACKAGE_FTP= Yes
|
||||||
|
PERMIT_DISTFILES_CDROM= No
|
||||||
|
PERMIT_DISTFILES_FTP= Yes
|
||||||
|
|
||||||
|
MASTER_SITES= ${HOMEPAGE}/releases/ \
|
||||||
|
${MASTER_SITE_PACKETSTORM:=groups/thc/}
|
||||||
|
|
||||||
|
WANTLIB= c crypto ssl
|
||||||
|
|
||||||
|
LIB_DEPENDS= pcre.0::devel/pcre
|
||||||
|
|
||||||
|
CONFIGURE_STYLE=gnu dest
|
||||||
|
|
||||||
|
NO_REGRESS= Yes
|
||||||
|
MAKE_FLAGS= OPT="${CFLAGS} -I${LOCALBASE}/include"
|
||||||
|
|
||||||
|
post-extract:
|
||||||
|
@${CHMOD} -R u+w ${WRKDIST}
|
||||||
|
@perl -pi -e "s,\"\.\/\",\"$(LOCALBASE)\/share\/amap\/\"," \
|
||||||
|
${WRKSRC}/amap-lib.c
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
4
security/amap/distinfo
Normal file
4
security/amap/distinfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
MD5 (amap-5.0.tar.gz) = 4f43cbaeac859523ee2d1af9a3bd39a9
|
||||||
|
RMD160 (amap-5.0.tar.gz) = fe80513c59d6f0f19dbb0cf778d97edc3dcf9d71
|
||||||
|
SHA1 (amap-5.0.tar.gz) = 156b8919427040f143649bf54bbf88a220be451c
|
||||||
|
SIZE (amap-5.0.tar.gz) = 261784
|
38
security/amap/patches/patch-Makefile_am
Normal file
38
security/amap/patches/patch-Makefile_am
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
$OpenBSD: patch-Makefile_am,v 1.1.1.1 2005/05/09 20:35:41 alek Exp $
|
||||||
|
--- Makefile.am.orig Fri Feb 18 19:01:26 2005
|
||||||
|
+++ Makefile.am Sun May 8 11:00:18 2005
|
||||||
|
@@ -1,13 +1,12 @@
|
||||||
|
-CC=gcc
|
||||||
|
-LIB=-lpcre -L./pcre-3.9/ -I./pcre-3.9/
|
||||||
|
+LIB=-lpcre -L$(LOCALBASE)/lib
|
||||||
|
OPT=-O2
|
||||||
|
OPT_DEBUG=-ggdb -Wall -lefence
|
||||||
|
BINDIR=/bin
|
||||||
|
-DATADIR=/etc
|
||||||
|
+DATADIR=/share/amap
|
||||||
|
MANDIR=/man/man1
|
||||||
|
SCRIPTS=appdefs.trig appdefs.resp appdefs.rpc
|
||||||
|
MANPAGE=amap.1
|
||||||
|
-all: pcre strip
|
||||||
|
+all: amap amapcrap
|
||||||
|
|
||||||
|
pcre:
|
||||||
|
cd pcre-3.9 && make
|
||||||
|
@@ -35,12 +34,11 @@ debug: amap.c
|
||||||
|
|
||||||
|
install: all
|
||||||
|
@echo Installing to $(PREFIX), change this by running ./configure --prefix=path
|
||||||
|
- -mkdir -vp $(PREFIX)$(BINDIR) 2> /dev/null
|
||||||
|
- -mkdir -vp $(PREFIX)$(DATADIR) 2> /dev/null
|
||||||
|
- -test -e amap && cp -f amap amap6 amapcrap $(PREFIX)$(BINDIR) || echo
|
||||||
|
- -test -e amap.exe && cp -f amap.exe amap6.lnk amapcrap.exe $(PREFIX)$(BINDIR) || echo
|
||||||
|
- -cp -f $(SCRIPTS) $(PREFIX)$(DATADIR)
|
||||||
|
- -cp -f $(MANPAGE) $(PREFIX)$(MANDIR)
|
||||||
|
+ @test -e amap && $(BSD_INSTALL_PROGRAM) amap amap6 amapcrap $(PREFIX)$(BINDIR)
|
||||||
|
+ @test -d $(DESTDIR)$(MANDIR) || mkdir -p $(PREFIX)$(MANDIR)
|
||||||
|
+ $(BSD_INSTALL_MAN) $(MANPAGE) $(PREFIX)$(MANDIR)
|
||||||
|
+ @test -d $(DESTDIR)$(DATADIR) || mkdir -p $(PREFIX)$(DATADIR)
|
||||||
|
+ $(BSD_INSTALL_SCRIPT) $(SCRIPTS) $(PREFIX)$(DATADIR)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
cd pcre-3.9 && make clean
|
12
security/amap/patches/patch-amap-inc_h
Normal file
12
security/amap/patches/patch-amap-inc_h
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
$OpenBSD: patch-amap-inc_h,v 1.1.1.1 2005/05/09 20:35:41 alek Exp $
|
||||||
|
--- amap-inc.h.orig Sat May 7 11:44:27 2005
|
||||||
|
+++ amap-inc.h Sat May 7 11:44:51 2005
|
||||||
|
@@ -20,7 +20,7 @@
|
||||||
|
#include <errno.h>
|
||||||
|
#include <sys/resource.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
|
-#include "pcre-3.9/pcre.h"
|
||||||
|
+#include <pcre.h>
|
||||||
|
#ifdef OPENSSL
|
||||||
|
#include <openssl/ssl.h>
|
||||||
|
#include <openssl/err.h>
|
12
security/amap/patches/patch-configure
Normal file
12
security/amap/patches/patch-configure
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
$OpenBSD: patch-configure,v 1.1.1.1 2005/05/09 20:35:41 alek Exp $
|
||||||
|
--- configure.orig Sat May 7 13:33:35 2005
|
||||||
|
+++ configure Sat May 7 13:33:56 2005
|
||||||
|
@@ -168,7 +168,7 @@ if [ -d /usr/kerberos/include ]; then
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$PREFIX" ]; then
|
||||||
|
- XDEFINES="$XDEFINES -DAMAP_PREFIX=$PREFIX"
|
||||||
|
+ XDEFINES="$XDEFINES"
|
||||||
|
else
|
||||||
|
PREFIX="/usr/local"
|
||||||
|
fi
|
3
security/amap/pkg/DESCR
Normal file
3
security/amap/pkg/DESCR
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Amap is a next-generation scanning tool, which identifies applications
|
||||||
|
and services even if they are not listening on the default port by
|
||||||
|
creating a bogus-communication and analyzing the responses.
|
9
security/amap/pkg/PLIST
Normal file
9
security/amap/pkg/PLIST
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/05/09 20:35:41 alek Exp $
|
||||||
|
bin/amap
|
||||||
|
bin/amap6
|
||||||
|
bin/amapcrap
|
||||||
|
@man man/man1/amap.1
|
||||||
|
share/amap/
|
||||||
|
share/amap/appdefs.resp
|
||||||
|
share/amap/appdefs.rpc
|
||||||
|
share/amap/appdefs.trig
|
Loading…
Reference in New Issue
Block a user