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