1 DEPENDS = "virtual/libc libpcap"
2 DESCRIPTION = "Nmap is a command line portscanner."
4 SRC_URI = "http://download.insecure.org/nmap/dist/nmap-${PV}.tgz"
8 EXTRA_OECONF = "--with-pcap=linux --with-libpcap=${STAGING_LIBDIR}/.. --without-nmapfe"
9 EXTRA_OEMAKE = "STRIPPROG=${STRIP}"
11 CXXFLAGS_append = " -fpermissive"
12 # Ugly hack follows -- their configure.ac doesnt match their configure ..
13 # doesnt include a check for the length type in recvfrom, so we hack it here
14 CPPFLAGS_append = " -Drecvfrom6_t=socklen_t"
16 #do_configure_prepend () {
17 # if [ ! -e libpcap-possiblymodified/acinclude.m4 ]; then
18 # cat libpcap-possiblymodified/aclocal.m4 > libpcap-possiblymodified/acinclude.m4
22 do_compile_prepend () {
23 ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} libpcre/dftables.c -o libpcre/dftables
24 touch libpcre/dftables.o
25 libpcre/dftables > libpcre/chartables.c
29 # override this function to avoid the autoconf/automake/aclocal/autoheader
36 oe_runmake 'prefix=${D}/${prefix}' \
37 'exec_prefix=${D}/${exec_prefix}' \
38 'bindir=${D}/${bindir}' \
39 'sbindir=${D}/${sbindir}' \
40 'mandir=${D}/${mandir}' \
41 'datadir=${D}/${datadir}' \
42 'nmapdatadir=${D}/${datadir}/nmap' \