Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2012 20:33:33 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r309266 - head/security/zenmap
Message-ID:  <201212192033.qBJKXXpl080204@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Wed Dec 19 20:33:33 2012
New Revision: 309266
URL: http://svnweb.freebsd.org/changeset/ports/309266

Log:
  - xnmap.1 manpage is not installled
  - Add NLS option
  - Give maintainership to submitter
  
  PR:		ports/174327
  Submitted by:	nemysis <nemysis@gmx.ch>

Modified:
  head/security/zenmap/Makefile
  head/security/zenmap/pkg-descr
  head/security/zenmap/pkg-plist

Modified: head/security/zenmap/Makefile
==============================================================================
--- head/security/zenmap/Makefile	Wed Dec 19 20:27:06 2012	(r309265)
+++ head/security/zenmap/Makefile	Wed Dec 19 20:33:33 2012	(r309266)
@@ -1,46 +1,59 @@
-# Ports collection makefile for:	zenmap
-# Date created:				2008-01-13
-# Whom:					Daniel Roethlisberger <daniel@roe.ch>
-#
+# Created by: Daniel Roethlisberger <daniel@roe.ch>
 # $FreeBSD$
-#
 
 PORTNAME=	zenmap
 PORTVERSION=	6.01
+PORTREVISION=	1
 CATEGORIES=	security ipv6
 MASTER_SITES=	http://nmap.org/dist/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 DISTNAME=	nmap-${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	GUI frontend for the nmap scanning utility
+MAINTAINER=	nemysis@gmx.ch
+COMMENT=	GUI frontend for the Nmap scanning utility
 
 LICENSE=	GPLv2
 
 RUN_DEPENDS=	${LOCALBASE}/bin/nmap:${PORTSDIR}/security/nmap \
 		${PYTHON_PACKAGENAMEPREFIX}sqlite3>:${PORTSDIR}/databases/py-sqlite3
 
-WRKSRC=	${WRKDIR}/${DISTNAME}/${PORTNAME}
+WRKSRC=		${WRKDIR}/${DISTNAME}/${PORTNAME}
 
 USE_BZIP2=	yes
 USE_GNOME=	pygtk2
-USE_GETTEXT=	yes
 USE_PYTHON=	2.5+
-USE_PYDISTUTILS=	yes
+USE_PYDISTUTILS=yes
 
 MLINKS=	zenmap.1 xnmap.1
-MAN1=	zenmap.1 xnmap.1 ndiff.1
+MAN1=	zenmap.1 ndiff.1
+
+OPTIONS_DEFINE=	NLS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USE_GETTEXT=	yes
+PLIST_SUB+=	NLS=""
+.else
+PLIST_SUB+=	NLS="@comment "
+.endif
 
 post-patch:
-	@${REINPLACE_CMD} -e \
-		'/self.create_uninstaller/s|^|#|' ${WRKSRC}/setup.py
-	@${REINPLACE_CMD} -e \
-		's|share/man/man1|man/man1|' ${WRKSRC}/../ndiff/setup.py
+	@${REINPLACE_CMD} \
+		-e '/self.create_uninstaller/s|^|#|' ${WRKSRC}/setup.py
+	@${REINPLACE_CMD} \
+		-e 's|share/man/man1|man/man1|' ${WRKSRC}/../ndiff/setup.py
+.if ! ${PORT_OPTIONS:MNLS}
+	@${REINPLACE_CMD} -i '' '/locale_dir, mo_find, /d' ${WRKSRC}/setup.py
+.endif
+
 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>

Modified: head/security/zenmap/pkg-descr
==============================================================================
--- head/security/zenmap/pkg-descr	Wed Dec 19 20:27:06 2012	(r309265)
+++ head/security/zenmap/pkg-descr	Wed Dec 19 20:33:33 2012	(r309266)
@@ -1,5 +1,5 @@
 Zenmap is the official GUI front end for the Nmap port scanning tool.
 Originally based on Umit, it has replaced NmapFE as per Nmap 4.50.
-Also included are python based Nmap auxilary tools (currently Ndiff).
+Also included are python based Nmap auxiliary tools (currently Ndiff).
 
 WWW: http://nmap.org/

Modified: head/security/zenmap/pkg-plist
==============================================================================
--- head/security/zenmap/pkg-plist	Wed Dec 19 20:27:06 2012	(r309265)
+++ head/security/zenmap/pkg-plist	Wed Dec 19 20:33:33 2012	(r309266)
@@ -321,11 +321,11 @@ share/applications/zenmap-root.desktop
 %%DATADIR%%/config/zenmap.conf
 %%DATADIR%%/config/zenmap_version
 %%DATADIR%%/docs/help.html
-%%DATADIR%%/locale/de/LC_MESSAGES/zenmap.mo
-%%DATADIR%%/locale/fr/LC_MESSAGES/zenmap.mo
-%%DATADIR%%/locale/hr/LC_MESSAGES/zenmap.mo
-%%DATADIR%%/locale/pt_BR/LC_MESSAGES/zenmap.mo
-%%DATADIR%%/locale/ru/LC_MESSAGES/zenmap.mo
+%%NLS%%%%DATADIR%%/locale/de/LC_MESSAGES/zenmap.mo
+%%NLS%%%%DATADIR%%/locale/fr/LC_MESSAGES/zenmap.mo
+%%NLS%%%%DATADIR%%/locale/hr/LC_MESSAGES/zenmap.mo
+%%NLS%%%%DATADIR%%/locale/pt_BR/LC_MESSAGES/zenmap.mo
+%%NLS%%%%DATADIR%%/locale/ru/LC_MESSAGES/zenmap.mo
 %%DATADIR%%/misc/profile_editor.xml
 %%DATADIR%%/pixmaps/default_32.png
 %%DATADIR%%/pixmaps/default_75.png
@@ -373,17 +373,17 @@ share/applications/zenmap-root.desktop
 @dirrm %%DATADIR%%/pixmaps/radialnet
 @dirrm %%DATADIR%%/pixmaps
 @dirrm %%DATADIR%%/misc
-@dirrm %%DATADIR%%/locale/ru/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/ru
-@dirrm %%DATADIR%%/locale/pt_BR/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/pt_BR
-@dirrm %%DATADIR%%/locale/hr/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/hr
-@dirrm %%DATADIR%%/locale/fr/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/fr
-@dirrm %%DATADIR%%/locale/de/LC_MESSAGES
-@dirrm %%DATADIR%%/locale/de
-@dirrm %%DATADIR%%/locale
+%%NLS%%@dirrm %%DATADIR%%/locale/ru/LC_MESSAGES
+%%NLS%%@dirrm %%DATADIR%%/locale/ru
+%%NLS%%@dirrm %%DATADIR%%/locale/pt_BR/LC_MESSAGES
+%%NLS%%@dirrm %%DATADIR%%/locale/pt_BR
+%%NLS%%@dirrm %%DATADIR%%/locale/hr/LC_MESSAGES
+%%NLS%%@dirrm %%DATADIR%%/locale/hr
+%%NLS%%@dirrm %%DATADIR%%/locale/fr/LC_MESSAGES
+%%NLS%%@dirrm %%DATADIR%%/locale/fr
+%%NLS%%@dirrm %%DATADIR%%/locale/de/LC_MESSAGES
+%%NLS%%@dirrm %%DATADIR%%/locale/de
+%%NLS%%@dirrm %%DATADIR%%/locale
 @dirrm %%DATADIR%%/docs
 @dirrm %%DATADIR%%/config
 @dirrm %%DATADIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212192033.qBJKXXpl080204>