Nmap Development mailing list archives

Re: sysconfdir var fix


From: David Suarez <oxia.eikichi () gmail com>
Date: Tue, 27 Sep 2011 16:59:27 +0200

On Mon, Sep 05, 2011 at 10:40:03PM +0200, David Suarez wrote:
The purpouse is to crosscompile nmap to android. I need that nmap can be
able to find resolv.conf in "/data/local/etc" (android doesnt have
/etc/resolv.conf) so dns names resolv can work (and dont want to install
files in or modify the /system partition wheres "android /etc" lives). Im
porting others tools so i stick with installing all things in top of
/data/local.

Yes the changes breaks other's people installation but the solution you
are saying in point 1 can work.

Okay, the Android argument is a good one. But now it's up to you to
write a new patch.

David Fifield

Okay, finally I decided to make a global define named "SYS_ETC_DIR" and put in 
in nmap_config.h (system dependent related). Like you say ""Set the default 
value of sysconfdir to /etc in configure"" its a bit tricky.

I modified only "configure.ac", so an autoconf run is needed to change the 
configure script.

Cheers, David Suarez

Attachment: fix-sysetcdir.patch
Description:

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/

Current thread: