aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-01-05 23:29:49 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-01-05 23:29:49 +0000
commit9255c33b560ee84f66f254d2c9556bf8ccfcfcb2 (patch)
tree7636ce855b28d22b2251762db70692523d408445 /security
parentfdbbc0527cf9aff2b8bd53d554c01770c677643e (diff)
downloadports-9255c33b560ee84f66f254d2c9556bf8ccfcfcb2.tar.gz
ports-9255c33b560ee84f66f254d2c9556bf8ccfcfcb2.zip
MFH: r405296
- Fix broken zenmap-root script - While here, add LICENSE_FILE, switch to WRKSRC_SUBDIR, add NO_ARCH and switch to options helpers PR: 204713 Submitted by: admin@vladiom.com.ua Approved by: maintainer timeout (nemysis, 6 weeks) Approved by: ports-secteam (feld)
Notes
Notes: svn path=/branches/2016Q1/; revision=405321
Diffstat (limited to 'security')
-rw-r--r--security/zenmap/Makefile10
-rw-r--r--security/zenmap/files/zenmap-root.in4
2 files changed, 6 insertions, 8 deletions
diff --git a/security/zenmap/Makefile b/security/zenmap/Makefile
index f4363ed75a96..b39498149111 100644
--- a/security/zenmap/Makefile
+++ b/security/zenmap/Makefile
@@ -3,6 +3,7 @@
PORTNAME= zenmap
PORTVERSION= 6.47
+PORTREVISION= 1
CATEGORIES= security ipv6
MASTER_SITES= http://nmap.org/dist/ \
SF/nemysisfreebsdp/security/:icons
@@ -15,16 +16,18 @@ MAINTAINER= nemysis@FreeBSD.org
COMMENT= GUI frontend for the Nmap scanning utility
LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= nmap:${PORTSDIR}/security/nmap \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3
-WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}
+WRKSRC_SUBDIR= ${PORTNAME}
USES= dos2unix python tar:bzip2
DOS2UNIX_GLOB= *.xml
USE_GNOME= pygtk2
USE_PYTHON= autoplist distutils
+NO_ARCH= yes
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
@@ -34,8 +37,6 @@ NLS_USES= gettext
SUB_FILES= zenmap-root
-.include <bsd.port.options.mk>
-
post-extract:
@${RM} -f ${WRKSRC}/install_scripts/unix/su-to-zenmap.sh
@${CP} -a ${FILESDIR}/pc-su ${WRKSRC}/install_scripts/unix/su-to-zenmap.sh
@@ -65,9 +66,8 @@ post-patch:
@${FIND} ${WRKSRC} -name "*.bak" -delete
@${FIND} ${WRKSRC}/../ndiff -name "*.bak" -delete
-.if ! ${PORT_OPTIONS:MNLS}
+post-patch-NLS-off:
@${REINPLACE_CMD} -i '' '/locale_dir, mo_find, /d' ${WRKSRC}/setup.py
-.endif
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/zenmap-root ${STAGEDIR}${PREFIX}/bin/
diff --git a/security/zenmap/files/zenmap-root.in b/security/zenmap/files/zenmap-root.in
index 799b4a809946..51d0b61ab97d 100644
--- a/security/zenmap/files/zenmap-root.in
+++ b/security/zenmap/files/zenmap-root.in
@@ -3,6 +3,4 @@
# $FreeBSD$
#
-cd "%%DATADIR%%" && exec su-to-zenmap.sh zenmap
-
-
+exec %%DATADIR%%/su-to-zenmap.sh zenmap