b1d0ca748ad702d83c815b57b0a319e573ee30fc
[vuplus_openembedded] / nmap / nmap_3.48.oe
1 DEPENDS = "virtual/libc libpcap"
2 DESCRIPTION = "Nmap is a command line portscanner."
3
4 SRC_URI = "http://download.insecure.org/nmap/dist/nmap-${PV}.tgz"
5
6 inherit autotools
7
8 EXTRA_OECONF = "--with-pcap=linux --with-libpcap=${STAGING_LIBDIR}/.. --without-nmapfe"
9 EXTRA_OEMAKE = "STRIPPROG=${STRIP}"
10
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"
15
16 #do_configure_prepend () {
17 #       if [ ! -e libpcap-possiblymodified/acinclude.m4 ]; then
18 #               cat libpcap-possiblymodified/aclocal.m4 > libpcap-possiblymodified/acinclude.m4
19 #       fi
20 #}
21
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
26 }
27
28 do_configure () {
29 # override this function to avoid the autoconf/automake/aclocal/autoheader
30 # calls for now
31         oe_runconf
32 }
33
34
35 do_install () {
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' \
43                    install
44 }