mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
794e774ffc
PR: ports/133549 Submitted by: Daniel Roethlisberger <daniel@roe.ch> (maintainer) Approved by: miwi (mentor)
71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
# Ports collection makefile for: zenmap
|
|
# Date created: 2008-01-13
|
|
# Whom: Daniel Roethlisberger <daniel@roe.ch>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= zenmap
|
|
DISTVERSION= 4.85BETA7
|
|
CATEGORIES= security ipv6
|
|
MASTER_SITES= http://nmap.org/dist/ \
|
|
http://www.mirrors.wiretapped.net/security/network-mapping/nmap/ \
|
|
http://www.mirrorservice.org/sites/ftp.wiretapped.net/pub/security/network-mapping/nmap/ \
|
|
http://mirror.sg.depaul.edu/pub/security/nmap/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= nmap-${DISTVERSION}
|
|
|
|
MAINTAINER= daniel@roe.ch
|
|
COMMENT= GUI frontend for the nmap scanning utility
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/nmap:${PORTSDIR}/security/nmap \
|
|
${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23
|
|
|
|
PYDISTUTILS_PKGVERSION= ${DISTVERSION}
|
|
USE_BZIP2= yes
|
|
USE_PYTHON= yes
|
|
USE_GETTEXT= yes
|
|
USE_GNOME= pygtk2
|
|
INSTALLS_EGGINFO= yes
|
|
|
|
MAN1= zenmap.1 ndiff.1
|
|
MLINKS= zenmap.1 xnmap.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} != "i386"
|
|
WITHOUT_PSYCO= yes
|
|
.endif
|
|
|
|
.ifndef(WITHOUT_PSYCO)
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
|
|
.endif
|
|
|
|
pre-everything::
|
|
.ifndef(WITHOUT_PSYCO)
|
|
@${ECHO_MSG} '===> Define WITHOUT_PSYCO to disable devel/py-psyco optimization'
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|share/man/man1|man/man1|g' ${WRKSRC}/ndiff/setup.py
|
|
|
|
do-build:
|
|
cd ${WRKSRC}/${PORTNAME} && \
|
|
${PYTHON_CMD} setup.py build
|
|
cd ${WRKSRC}/ndiff && \
|
|
${PYTHON_CMD} setup.py build
|
|
|
|
do-install:
|
|
cd ${WRKSRC}/${PORTNAME} && \
|
|
${PYTHON_CMD} setup.py install --prefix ${PREFIX}
|
|
@${RM} ${PREFIX}/bin/uninstall_zenmap
|
|
${INSTALL_MAN} ${WRKSRC}/docs/zenmap.1 ${MAN1PREFIX}/man/man1
|
|
.for P in radialnet zenmapCore zenmapGUI
|
|
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PYTHON_SITELIBDIR}/${P}
|
|
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PYTHON_SITELIBDIR}/${P}
|
|
.endfor
|
|
cd ${WRKSRC}/ndiff && \
|
|
${PYTHON_CMD} setup.py install --prefix ${PREFIX}
|
|
|
|
.include <bsd.port.post.mk>
|