2010-11-11 11:27:54 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.93 2010/11/11 16:27:54 espie Exp $
|
2001-04-12 11:59:15 -04:00
|
|
|
|
2008-01-24 20:21:17 -05:00
|
|
|
COMMENT-main= scan ports and fingerprint stack of network hosts
|
|
|
|
COMMENT-zenmap= graphical frontend for nmap
|
1999-01-11 00:37:23 -05:00
|
|
|
|
2010-04-21 03:08:23 -04:00
|
|
|
MODPY_EGG_VERSION= 5.21
|
2008-05-16 16:50:55 -04:00
|
|
|
DISTNAME= nmap-${MODPY_EGG_VERSION}
|
2010-10-04 16:42:34 -04:00
|
|
|
REVISION-main= 2
|
2010-08-30 17:14:34 -04:00
|
|
|
REVISION-zenmap= 0
|
2010-07-12 18:07:37 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
2010-04-21 03:08:23 -04:00
|
|
|
PKGNAME-zenmap= nmap-zenmap-${MODPY_EGG_VERSION}
|
2007-11-17 15:39:02 -05:00
|
|
|
|
2008-01-24 20:21:17 -05:00
|
|
|
CATEGORIES= net security
|
2010-04-21 03:08:23 -04:00
|
|
|
MASTER_SITES= http://nmap.org/dist/
|
2001-01-14 13:18:09 -05:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2008-04-06 14:21:44 -04:00
|
|
|
HOMEPAGE= http://www.nmap.org/
|
2001-01-09 11:10:16 -05:00
|
|
|
|
2009-10-22 06:00:57 -04:00
|
|
|
MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>
|
2005-01-29 15:15:32 -05:00
|
|
|
|
2009-10-22 06:00:57 -04:00
|
|
|
# GPLv2
|
2000-03-25 01:12:15 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2007-11-17 15:39:02 -05:00
|
|
|
|
2008-01-24 20:21:17 -05:00
|
|
|
MULTI_PACKAGES= -main -zenmap
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2010-10-18 14:36:45 -04:00
|
|
|
USE_GROFF = Yes
|
2008-01-24 20:21:17 -05:00
|
|
|
MODULES= lang/python
|
2001-01-09 11:10:16 -05:00
|
|
|
|
2008-01-24 20:21:17 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
2008-05-15 14:30:14 -04:00
|
|
|
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
|
2008-01-24 20:21:17 -05:00
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS= --with-libpcap=/usr \
|
|
|
|
--with-openssl=/usr \
|
|
|
|
--with-libdnet=${LOCALBASE} \
|
|
|
|
--with-liblua=${LOCALBASE} \
|
2009-10-22 06:00:57 -04:00
|
|
|
--with-libpcre=${LOCALBASE} \
|
2010-04-21 03:08:23 -04:00
|
|
|
--with-mandir=${LOCALBASE}/man \
|
|
|
|
--disable-nls
|
2001-01-09 11:10:16 -05:00
|
|
|
|
2010-11-11 11:27:54 -05:00
|
|
|
WANTLIB-main= c crypto m pcap ssl stdc++ pcre dnet lua.>=5
|
|
|
|
LIB_DEPENDS-main= ::devel/pcre \
|
|
|
|
::net/libdnet \
|
|
|
|
::lang/lua
|
2005-12-17 10:47:12 -05:00
|
|
|
|
2008-01-24 20:21:17 -05:00
|
|
|
RUN_DEPENDS-main=
|
2010-11-11 11:27:54 -05:00
|
|
|
|
2008-01-24 20:21:17 -05:00
|
|
|
RUN_DEPENDS-zenmap= ::x11/py-gtk2 \
|
|
|
|
::databases/py-sqlite2 \
|
2009-01-21 12:58:48 -05:00
|
|
|
::devel/desktop-file-utils \
|
2008-01-24 20:21:17 -05:00
|
|
|
::net/nmap
|
2001-01-09 11:10:16 -05:00
|
|
|
|
2002-10-27 20:38:44 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2008-01-24 20:21:17 -05:00
|
|
|
post-extract:
|
2009-10-22 06:00:57 -04:00
|
|
|
@cp ${WRKSRC}/libdnet-stripped/include/dnet/sctp.h ${WRKSRC}/sctp.h
|
2008-01-24 20:21:17 -05:00
|
|
|
@cd ${WRKSRC} && rm -rf libpcap/ libdnet-stripped/ liblua/ libpcre/
|
2009-10-22 06:00:57 -04:00
|
|
|
sh files/prepman.sh ${WRKSRC}/ncat/docs/ncat.1
|
|
|
|
sh files/prepman.sh ${WRKSRC}/docs/nmap.1
|
|
|
|
sh files/prepman.sh ${WRKSRC}/docs/zenmap.1
|
2008-01-24 20:21:17 -05:00
|
|
|
|
2008-09-17 14:09:54 -04:00
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/zenmap/install_scripts/unix/su-to-zenmap.sh
|
|
|
|
|
1999-01-11 00:37:23 -05:00
|
|
|
.include <bsd.port.mk>
|