diff options
Diffstat (limited to 'security/umit/Makefile')
-rw-r--r-- | security/umit/Makefile | 43 |
1 files changed, 29 insertions, 14 deletions
diff --git a/security/umit/Makefile b/security/umit/Makefile index dd7304d0bebb..679386611f99 100644 --- a/security/umit/Makefile +++ b/security/umit/Makefile @@ -3,29 +3,44 @@ PORTNAME= umit PORTVERSION= 1.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= security MASTER_SITES= SF PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= ports@FreeBSD.org -COMMENT= UMIT is the nmap frontend developed with Python and PyGTK +MAINTAINER= ports@FreeBSD.org +COMMENT= Nmap frontend developed with Python and PyGTK -RUN_DEPENDS= ${LOCALBASE}/bin/nmap:${PORTSDIR}/security/nmap \ - ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 +LICENSE= GPLv2 -INSTALLS_ICONS= yes -USES= tar:bzip2 +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \ + ${LOCALBASE}/bin/nmap:${PORTSDIR}/security/nmap + +NO_ARCH= yes + +USES= python tar:bzip2 USE_GNOME= pygtk2 -USE_PYTHON= yes -USE_PYDISTUTILS= yes +USE_PYTHON= distutils +INSTALLS_ICONS= yes -NO_STAGE= yes +PORTDOCS= * + +DESKTOP_ENTRIES="Umit" "GUI frontend for Nmap security/port scanner" "umit" \ + "umit" "System;GTK;" "" + +OPTIONS_DEFINE= DOCS + +DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx post-patch: - ${REINPLACE_CMD} \ - -e 's/self.build_html_doc()//' \ - -e 's,distutils\.command\.install ,setuptools\.command\.install ,' \ - ${WRKSRC}/setup.py + @${REINPLACE_CMD} -e \ + 's|distutils\(.command.install\) |setuptools\1 | ; \ + /self.create_uninstaller()/d ; \ + /self.pkgmaintainer/s|0|1|' ${WRKSRC}/setup.py + +post-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps + @${LN} -sf ${DATADIR}/pixmaps/umit_48x48.png \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/umit.png .include <bsd.port.mk> |