Bug 38305 - Port update: security/nmap
Summary: Port update: security/nmap
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-19 21:50 UTC by dominic_marks
Modified: 2002-05-21 17:26 UTC (History)
0 users

See Also:


Attachments
file.diff (1.78 KB, patch)
2002-05-19 21:50 UTC, dominic_marks
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dominic_marks 2002-05-19 21:50:01 UTC
	nmap 2.54-b33 -> 2.54-b34

	I also fixed building of nmapfe. It now will get built (correctly)
	if HAVE_GTK is defined. If HAVE_GTK is not defined no attempt to
	compile it will be made (it was failing anyway previous to now).

	Currently nmapfe crashes when you try and use it, I will look into
	why soon.

	Take maintainership from ports@
	
	Thanks!

How-To-Repeat: 	NA.
Comment 1 dominic_marks 2002-05-20 17:54:11 UTC
Hey,

One minor optimization to my patch. No functional changes.

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/security/nmap/Makefile,v
retrieving revision 1.54
diff -u -r1.54 Makefile
--- Makefile	2002/05/08 21:32:36	1.54
+++ Makefile	2002/05/20 16:50:53
@@ -7,18 +7,16 @@
 #
 
 PORTNAME?=	nmap
-PORTVERSION=	2.54.b33
+PORTVERSION=	2.54.b34
 CATEGORIES=	security
 MASTER_SITES=	http://www.insecure.org/nmap/dist/  \
 		ftp://nuxi.ucdavis.edu/pub/misc/  \
 		http://www.mobis.com/ajax/projects/
 DISTNAME=	nmap-${PORTVERSION:S/.b/BETA/}
 EXTRACT_SUFX=	.tgz
+PLIST=	pkg-plist
+MAINTAINER=	dominic_marks@btinternet.com
 
-#PATCH_SITES=	http://www.mobis.com/ajax/projects/
-
-MAINTAINER=	ports@FreeBSD.org
-
 .include <bsd.port.pre.mk>
 
 GNU_CONFIGURE=	yes
@@ -27,9 +25,24 @@
 .endif
 MAN1?=		nmap.1
 
+pre-configure:
+.if !defined (HAVE_GTK)
+	@${SED} -e "s,) nmapfe/nmapfe,),g" \
+		${WRKSRC}/Makefile.in > ${WRKDIR}/Makefile.in.temp
+	@${MV} ${WRKDIR}/Makefile.in.temp ${WRKSRC}/Makefile.in
+.else
+	@${SED} -e "s,gtk-config,gtk12-config,g" \
+		${WRKSRC}/nmapfe/configure > ${WRKDIR}/configure.temp
+	@${MV} ${WRKDIR}/configure.temp ${WRKSRC}/nmapfe/configure
+.endif
+
 .if !target(post-install) && (${PORTNAME} == "nmap")
 post-install:
 	@strip ${PREFIX}/bin/nmap
+.if defined (HAVE_GTK)
+	cd ${WRKSRC} && ${MAKE} install-nmapfe
+	echo "bin/nmapfe" >> ${PLIST}
+.endif
 .endif
 
 .include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/security/nmap/distinfo,v
retrieving revision 1.36
diff -u -r1.36 distinfo
--- distinfo	2002/04/29 06:33:34	1.36
+++ distinfo	2002/05/20 16:50:53
@@ -1 +1 @@
-MD5 (nmap-2.54BETA33.tgz) = 4d82a7feb1ef5865900a8843935a7f63
+MD5 (nmap-2.54BETA34.tgz) = be5f0784fe0a318c9b54c09ffa1b565b

Thanks!
-- 
Dominic
Comment 2 dwcjr freebsd_committer freebsd_triage 2002-05-21 17:26:09 UTC
State Changed
From-To: open->closed

Committed, thanks!