Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 114597

Summary: Ebuild and patch for a GTK2 enabled nmap frontend for net-analyzer/nmap
Product: Gentoo Linux Reporter: Meethune Bhowmick <meethune>
Component: New packagesAssignee: Michal Januszewski (RETIRED) <spock>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://spg-kush.blogspot.com/2005/12/gtk2-enabled-frontend-for-nmap-in.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Ebuild for gtk2 enabled nmap
gcc4 patch that is already in portage
Patch add Gtk2 support to nmapfe
Nmap logo from the Ubuntu package
Ebuild for the current development version for nmap. My patch has been merged upstream.
Ebuild for the latest Stable that includes GTK2 frontend

Description Meethune Bhowmick 2005-12-05 21:51:26 UTC
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
Comment 1 Meethune Bhowmick 2005-12-05 21:55:12 UTC
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).
Comment 2 Meethune Bhowmick 2005-12-05 21:56:35 UTC
Created attachment 74130 [details, diff]
gcc4 patch that is already in portage
Comment 3 Meethune Bhowmick 2005-12-05 21:59:40 UTC
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.
Comment 4 Meethune Bhowmick 2005-12-05 22:00:50 UTC
Created attachment 74132 [details]
Nmap logo from the Ubuntu package

put this in ${FILESDIR}
Comment 5 Meethune Bhowmick 2005-12-05 22:04:39 UTC
(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
Comment 6 Meethune Bhowmick 2005-12-06 15:11:48 UTC
(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
Comment 7 Meethune Bhowmick 2005-12-06 15:52:02 UTC
(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.
Comment 8 Meethune Bhowmick 2005-12-06 16:29:25 UTC
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.
Comment 9 Meethune Bhowmick 2005-12-08 11:26:51 UTC
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.
Comment 10 Michal Januszewski (RETIRED) gentoo-dev 2005-12-10 09:51:07 UTC
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.