Starting with this article (http://www.mikesplanet.net/?p=5), I generated a patch and ebuild that allows for building nmap with a gtk2 enabled nmapfe. I also added support for launching nmapfe with root privilege via x11-libs/gksu Reproducible: Always Steps to Reproduce: 1. mkdir -p ${OVERLAYDIR}/net-analyzer/nmap/files 2. cp nmap-3.93.ebuild ${OVERLAYDIR}/net-analyzer/nmap/ 3. cp *.patch ${OVERLAYDIR}/net-analyzer/nmap/files/ 4. cd ${OVERLAYDIR} 5. ebuild nmap-3.93.ebuild digest 6. emerge nmap Actual Results: Now I have a slick gtk2 enabled nmapfe, running as root via gksudo. Screenshots and a brief article are located at http://spg-kush.blogspot.com/2005/12/gtk2-enabled-frontend-for-nmap-in.html I added a "gksu" USE flag to toggle the gksudo functionality. Any suggestions on improvements would be appreciated
Created attachment 74129 [details] Ebuild for gtk2 enabled nmap This ebuild will enable gtk2 and gksudo launching support for nmapfe. This ebuild also fixes some minor bugs with the .desktop file as well (no ;\n at the end of the Categories field).
Created attachment 74130 [details, diff] gcc4 patch that is already in portage
Created attachment 74131 [details, diff] Patch add Gtk2 support to nmapfe This patch allows you to build nmapfe with Gtk2. I originally got the sources from this article (http://www.mikesplanet.net/?p=5) and adjusted it to work with Gentoo.
Created attachment 74132 [details] Nmap logo from the Ubuntu package put this in ${FILESDIR}
(In reply to comment #0) I forgot in the Steps to Reproduce... <snip> > Reproducible: Always > Steps to Reproduce: > 1. mkdir -p ${OVERLAYDIR}/net-analyzer/nmap/files > 2. cp nmap-3.93.ebuild ${OVERLAYDIR}/net-analyzer/nmap/ > 3. cp *.patch ${OVERLAYDIR}/net-analyzer/nmap/files/ 3a. cp nmap-logo-64.png ${OVERLAYDIR}/net-analyzer/nmap/files/ > 4. cd ${OVERLAYDIR} > 5. ebuild nmap-3.93.ebuild digest > 6. emerge nmap
(In reply to comment #0) I just got word from the FreeBSD maintainer of nmapfe that this patch has been accepted upstream for the next release of nmap. rom: Mark Linimon <linimon@FreeBSD.org> Date: December 6, 2005 11:07:21 PM CST To: meethune@oss-institute.org, linimon@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/90013: [PATCH] Patch to build nmapfe against Gtk2 Synopsis: [PATCH] Patch to build nmapfe against Gtk2 State-Changed-From-To: feedback->closed State-Changed-By: linimon State-Changed-When: Tue Dec 6 23:06:23 GMT 2005 State-Changed-Why: Maintainer reports this will be incorporated into the next upstream version and requests the PR be closed. http://www.freebsd.org/cgi/query-pr.cgi?pr=90013
(In reply to comment #0) Here is the release info on the new alpha with my gtk2 patch incorporated. http://seclists.org/lists/nmap-dev/2005/Oct-Dec/0148.html I will write an ebuild for it and post it here.
Created attachment 74188 [details] Ebuild for the current development version for nmap. My patch has been merged upstream. Fyodor has merged my patch into the current development version of nmap. This ebuild will install the current development version.
Created attachment 74323 [details] Ebuild for the latest Stable that includes GTK2 frontend The new stable version of nmap is out today. I have updated my ebuild accordingly.
Thanks for your work on the getting the frontend working with GTK2. I've just committed an updated version of the ebuild to the CVS. It includes your .desktop file fixes. I decided to drop the gksu stuff though, as it would break dependencies for quite a few arches.