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