2fad34db96
since nmap-4.65. Conflict noticed by naddy@ ok jasper@
69 lines
1.7 KiB
Makefile
69 lines
1.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.86 2010/01/28 15:31:28 kili Exp $
|
|
|
|
COMMENT-main= scan ports and fingerprint stack of network hosts
|
|
COMMENT-zenmap= graphical frontend for nmap
|
|
|
|
MODPY_EGG_VERSION= 5.00
|
|
DISTNAME= nmap-${MODPY_EGG_VERSION}
|
|
PKGNAME-main= ${DISTNAME}p1
|
|
PKGNAME-zenmap= nmap-zenmap-${MODPY_EGG_VERSION}p0
|
|
|
|
CATEGORIES= net security
|
|
MASTER_SITES= http://download.insecure.org/nmap/dist/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
HOMEPAGE= http://www.nmap.org/
|
|
|
|
MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MULTI_PACKAGES= -main -zenmap
|
|
|
|
WANTLIB-main= c crypto m pcap ssl stdc++
|
|
|
|
USE_GMAKE= yes
|
|
MODULES= lang/python
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
|
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
|
CONFIGURE_ARGS= --with-libpcap=/usr \
|
|
--with-openssl=/usr \
|
|
--with-libdnet=${LOCALBASE} \
|
|
--with-liblua=${LOCALBASE} \
|
|
--with-libpcre=${LOCALBASE} \
|
|
--with-mandir=${LOCALBASE}/man
|
|
|
|
LIB_DEPENDS= pcre::devel/pcre \
|
|
dnet::net/libdnet \
|
|
lua.>=5::lang/lua
|
|
|
|
LIB_DEPENDS-zenmap=
|
|
|
|
RUN_DEPENDS-main=
|
|
RUN_DEPENDS-zenmap= ::x11/py-gtk2 \
|
|
::databases/py-sqlite2 \
|
|
::devel/desktop-file-utils \
|
|
::net/nmap
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
post-extract:
|
|
@cp ${WRKSRC}/libdnet-stripped/include/dnet/sctp.h ${WRKSRC}/sctp.h
|
|
@cd ${WRKSRC} && rm -rf libpcap/ libdnet-stripped/ liblua/ libpcre/
|
|
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
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/zenmap/install_scripts/unix/su-to-zenmap.sh
|
|
|
|
.include <bsd.port.mk>
|