Date: Tue, 5 Jan 2016 15:46:38 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r405296 - in head/security/zenmap: . files Message-ID: <201601051546.u05FkcMC075228@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Tue Jan 5 15:46:38 2016 New Revision: 405296 URL: https://svnweb.freebsd.org/changeset/ports/405296 Log: - 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) Modified: head/security/zenmap/Makefile head/security/zenmap/files/zenmap-root.in Modified: head/security/zenmap/Makefile ============================================================================== --- head/security/zenmap/Makefile Tue Jan 5 15:06:08 2016 (r405295) +++ head/security/zenmap/Makefile Tue Jan 5 15:46:38 2016 (r405296) @@ -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/ Modified: head/security/zenmap/files/zenmap-root.in ============================================================================== --- head/security/zenmap/files/zenmap-root.in Tue Jan 5 15:06:08 2016 (r405295) +++ head/security/zenmap/files/zenmap-root.in Tue Jan 5 15:46:38 2016 (r405296) @@ -3,6 +3,4 @@ # $FreeBSD$ # -cd "%%DATADIR%%" && exec su-to-zenmap.sh zenmap - - +exec %%DATADIR%%/su-to-zenmap.sh zenmap
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601051546.u05FkcMC075228>