aboutsummaryrefslogtreecommitdiffstats
path: root/nmap/nmap_3.50.oe
blob: fa012b6ad20379f93add7cd3c7251b8ec05a931d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
BROKEN = "1"
DESCRIPTION = "Nmap is a command line portscanner."
DEPENDS = "libpcap"
SRC_URI = "http://download.insecure.org/nmap/dist/nmap-${PV}.tgz"

inherit autotools

EXTRA_OECONF = "--with-pcap=linux --with-libpcap=${STAGING_LIBDIR}/.. --without-nmapfe"
EXTRA_OEMAKE = "STRIPPROG=${STRIP}"

CXXFLAGS_append = " -fpermissive"
# Ugly hack follows -- their configure.ac doesnt match their configure .. 
# doesnt include a check for the length type in recvfrom, so we hack it here
CPPFLAGS_append = " -Drecvfrom6_t=socklen_t"

#do_configure_prepend () {
#	if [ ! -e libpcap-possiblymodified/acinclude.m4 ]; then
#		cat libpcap-possiblymodified/aclocal.m4 > libpcap-possiblymodified/acinclude.m4
#	fi
#}

do_compile_prepend () {
	${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} libpcre/dftables.c -o libpcre/dftables
	touch libpcre/dftables.o
	libpcre/dftables > libpcre/chartables.c
}

do_configure () {
# override this function to avoid the autoconf/automake/aclocal/autoheader
# calls for now
	gnu-configize
	oe_runconf
}


do_install () {
	oe_runmake 'prefix=${D}/${prefix}' \
		   'exec_prefix=${D}/${exec_prefix}' \
		   'bindir=${D}/${bindir}' \
		   'sbindir=${D}/${sbindir}' \
		   'mandir=${D}/${mandir}' \
		   'datadir=${D}/${datadir}' \
		   'nmapdatadir=${D}/${datadir}/nmap' \
		   install
}