Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24055 - Ebuild for Nessus 2.0.7
Summary: Ebuild for Nessus 2.0.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Patrick Kursawe (RETIRED)
URL: http://www.nessus.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-07 09:09 UTC by Patrick Dolan
Modified: 2003-07-10 06:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Dolan 2003-07-07 09:09:12 UTC
Nessus released a new version, 2.0.7, on July 2nd.  I have been able to get this to 
compile using the ebuilds for 2.0.6a.  After renaming the ebuilds for nessus, 
nessus-libraries, libnasl, nessus-core, and nessus-plugins, and generating the digests 
(ebuild nessus-xxx.ebuild digest), there are a few quirks to work through.  One needs 
to copy the /usr/portage/net-analyzer/libnasl/files/libnasl-2.0.6a-gentoo.patch to 
libnasl-2.0.7-gentoo.patch.  Also, in the nessus-core ebuild, there is a change needed 
for TCP wrappers.  First of all, this code will cause wrapper code to be compiled even if 
tcpd is not a USE flag: 
	use tcpd && myconf="${myconf} --enable-tcpwrappers" 
		|| myconf="${myconf} --disable-tcpwrappers" 
 
To prevent this, simply take out the second line.  The reason I noticed this is I was 
getting this error when trying to emerge nessus-core: 
nessusd.c: In function `main_loop': 
nessusd.c:803: warning: implicit declaration of function `hg_get_name_from_ip' 
nessusd.c:803: `addr' undeclared (first use in this function) 
nessusd.c:803: (Each undeclared identifier is reported only once 
nessusd.c:803: for each function it appears in.) 
nessusd.c:804: warning: implicit declaration of function `hosts_ctl' 
 
This was in a section for TCP wrapper support and the error persisted even if I turned 
off tcpd as a USE flag or tried manually compiling the source with 
--disable-tcpwrappers.  The problem is in this part of the code for nessusd.c: 
#ifdef USE_LIBWRAP       
      { 
       char host_name[1024]; 
         
      hg_get_name_from_ip(addr.sin_addr, host_name, sizeof(host_name)); 
      if(!(hosts_ctl("nessusd", host_name, asciiaddr, STRING_UNKNOWN))) 
      { 
       shutdown(soc, 2); 
       close(soc); 
       log_write("Connection from %s rejected by libwrap", asciiaddr); 
       continue; 
      } 
      } 
#endif 
 
Above, addr is undefined.  There is a variable, address, however that is used above 
this block of code.  Substituting that variable in will lead to a successful compilation.  
Not sure if that's the right way to fix it though.  I emailed the author about the bug and I 
will post back if he responds. 
 
Thanks.
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2003-07-10 05:12:29 UTC
Good work! About the "address" thing - have a look at
http://bugs.nessus.org/show_bug.cgi?id=464
You were right.
Comment 2 Patrick Kursawe (RETIRED) gentoo-dev 2003-07-10 06:56:37 UTC
Thanks again, version is in portage.
Comment 3 Patrick Dolan 2003-07-10 06:58:08 UTC
Great, thanks!