Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109307153
D7880.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
D7880.diff
View Options
Index: head/security/nmap/Makefile
===================================================================
--- head/security/nmap/Makefile
+++ head/security/nmap/Makefile
@@ -7,8 +7,8 @@
MASTER_SITES= http://nmap.org/dist/ \
LOCAL/ohauer
-MAINTAINER= ohauer@FreeBSD.org
-COMMENT= Port scanning utility for large networks
+MAINTAINER?= ohauer@FreeBSD.org
+COMMENT?= Port scanning utility for large networks
# nmap-6.47 => svn.nmap.org/nmap-releases/nmap-6.47 (r33605)
# http://nmap.org/book/man-legal.html
@@ -17,6 +17,8 @@
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
+.if !defined(MASTERDIR)
+
LIB_DEPENDS= libpcre.so:devel/pcre
USES= tar:bzip2 gmake cpe
@@ -33,8 +35,6 @@
SSL_CFLAGS= -I${OPENSSLINC}
SSL_VARS= STRIP_FILES=ncat
-.include <bsd.port.options.mk>
-
DOCS= CHANGELOG HACKING
STRIP_FILES+= nmap nping
@@ -62,4 +62,6 @@
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+.endif
+
.include <bsd.port.mk>
Index: head/security/zenmap/Makefile
===================================================================
--- head/security/zenmap/Makefile
+++ head/security/zenmap/Makefile
@@ -1,27 +1,20 @@
# Created by: Daniel Roethlisberger <daniel@roe.ch>
# $FreeBSD$
-PORTNAME= zenmap
-PORTVERSION= 6.47
-PORTREVISION= 1
-CATEGORIES= security ipv6
-MASTER_SITES= http://nmap.org/dist/ \
- SF/nemysisfreebsdp/security/:icons
-DISTNAME= nmap-${PORTVERSION}
-DISTFILES= nmap-${PORTVERSION}${EXTRACT_SUFX} \
- ${PORTNAME}.png:icons
-EXTRACT_ONLY= nmap-${PORTVERSION}${EXTRACT_SUFX}
+PKGNAMEPREFIX= ze
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= woodsb02@FreeBSD.org
COMMENT= GUI frontend for the Nmap scanning utility
-LICENSE= GPLv2
-LICENSE_FILE= ${WRKSRC}/COPYING
-
RUN_DEPENDS= nmap:security/nmap \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3
-WRKSRC_SUBDIR= ${PORTNAME}
+MASTERDIR= ${.CURDIR}/../nmap
+PATCHDIR= ${.CURDIR}/files
+FILESDIR= ${.CURDIR}/files
+DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
+PKGDIR= ${.CURDIR}
+WRKSRC_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
USES= dos2unix python tar:bzip2
DOS2UNIX_GLOB= *.xml
@@ -37,11 +30,9 @@
SUB_FILES= zenmap-root
-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
-
post-patch:
+ @${RM} ${WRKSRC}/install_scripts/unix/su-to-zenmap.sh
+ @${CP} -a ${FILESDIR}/pc-su ${WRKSRC}/install_scripts/unix/su-to-zenmap.sh
@${FIND} ${WRKSRC} -name '*.py' -or -name '*.pyw' | ${XARGS} \
${REINPLACE_CMD} -e 's|^.*#!.*python.*$$|#!${PYTHON_CMD}|'
@${REINPLACE_CMD} -e 's|^.*#!.*python.*$$|#!${PYTHON_CMD}|' \
@@ -60,8 +51,8 @@
s|self.saved_prefix, pixmaps_dir, ||' \
${WRKSRC}/setup.py
@${REINPLACE_CMD} \
- -e 's|share/man/man1|man/man1|; \
- s|"install": checked_install||' \
+ -e 's|share/man/man1|man/man1|' \
+ -e '/"install": checked_install/d' \
${WRKSRC}/../ndiff/setup.py
@${FIND} ${WRKSRC} -name "*.bak" -delete
@${FIND} ${WRKSRC}/../ndiff -name "*.bak" -delete
@@ -71,7 +62,7 @@
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/zenmap-root ${STAGEDIR}${PREFIX}/bin/
- @(cd ${STAGEDIR}${DATADIR} && ${CHMOD} 754 su-to-zenmap.sh)
+ @${CHMOD} 754 ${STAGEDIR}${DATADIR}/su-to-zenmap.sh
${INSTALL_MAN} ${WRKSRC}/../docs/zenmap.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1/
@(cd ${WRKSRC}/../ndiff \
@@ -79,8 +70,6 @@
@(cd ${STAGEDIR}${PYTHON}${PYTHON_SITELIBDIR} && ${RM} ndiff.pyc)
@(cd ${STAGEDIR}${PYTHON}${PYTHON_SITELIBDIR} && ${PYTHON_CMD} -m compileall .)
@(cd ${STAGEDIR}${PYTHON}${PYTHON_SITELIBDIR} && ${PYTHON_CMD} -O -m compileall .)
+ @(cd ${STAGEDIR}${PREFIX}/share/pixmaps && ${LN} -sf ../zenmap/pixmaps/zenmap.png zenmap.png)
- ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
- ${STAGEDIR}${PREFIX}/share/pixmaps/
-
-.include <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"
Index: head/security/zenmap/distinfo
===================================================================
--- head/security/zenmap/distinfo
+++ head/security/zenmap/distinfo
@@ -1,4 +0,0 @@
-SHA256 (nmap-6.47.tar.bz2) = 8fa11e9e203ce2d81a207db5ca4f110a525f6c01c1dd0018325a7112a51aa591
-SIZE (nmap-6.47.tar.bz2) = 7878122
-SHA256 (zenmap.png) = 55c232603d0cf02ee2e7cc0c0ba02101d18a33555644a6348fb533329c4cfce1
-SIZE (zenmap.png) = 2832
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 4, 8:47 AM (20 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16450791
Default Alt Text
D7880.diff (4 KB)
Attached To
Mode
D7880: security/zenmap: Update to 7.25 BETA2 and use security/nmap as MASTERDIR
Attached
Detach File
Event Timeline
Log In to Comment