diff options
Diffstat (limited to 'security/zenmap/Makefile')
-rw-r--r-- | security/zenmap/Makefile | 74 |
1 files changed, 24 insertions, 50 deletions
diff --git a/security/zenmap/Makefile b/security/zenmap/Makefile index d3fc32b2cf00..1f52b642d7f8 100644 --- a/security/zenmap/Makefile +++ b/security/zenmap/Makefile @@ -6,67 +6,41 @@ # PORTNAME= zenmap -PORTVERSION= 5.21 -PORTREVISION= 5 +PORTVERSION= 6.01 CATEGORIES= security ipv6 -MASTER_SITES= http://nmap.org/dist/ \ - http://nmap.ucsd.edu/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/ +MASTER_SITES= http://nmap.org/dist/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= nmap-${PORTVERSION} MAINTAINER= c.petrik.sosa@gmail.com COMMENT= GUI frontend for the nmap scanning utility +LICENSE= GPLv2 + RUN_DEPENDS= ${LOCALBASE}/bin/nmap:${PORTSDIR}/security/nmap \ - ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 + ${PYTHON_PACKAGENAMEPREFIX}sqlite3>:${PORTSDIR}/databases/py-sqlite3 + +WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME} -PYDISTUTILS_PKGVERSION= ${DISTVERSION} USE_BZIP2= yes -USE_PYTHON= 2.5+ -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" || ${PYTHON_REL} > 260 -WITHOUT_PSYCO= yes -.endif - -.ifndef(WITHOUT_PSYCO) -RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco -.endif +USE_GETTEXT= yes +USE_PYTHON= 2.5+ +USE_PYDISTUTILS= yes -pre-everything:: -.ifndef(WITHOUT_PSYCO) - @${ECHO_MSG} '===> Define WITHOUT_PSYCO to disable devel/py-psyco optimization' -.endif +MLINKS= zenmap.1 xnmap.1 +MAN1= zenmap.1 xnmap.1 ndiff.1 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> + @${REINPLACE_CMD} -e \ + '/self.create_uninstaller/s|^|#|' ${WRKSRC}/setup.py + @${REINPLACE_CMD} -e \ + 's|share/man/man1|man/man1|' ${WRKSRC}/../ndiff/setup.py +post-build: + @(cd ${WRKSRC}/../ndiff \ + && ${PYTHON_CMD} setup.py build) +post-install: + ${INSTALL_MAN} ${WRKSRC}/../docs/zenmap.1 ${MAN1PREFIX}/man/man1 + @(cd ${WRKSRC}/../ndiff \ + && ${PYTHON_CMD} setup.py install --prefix ${PREFIX}) +.include <bsd.port.mk> |