Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 1 | DESCRIPTION = "Netsniff-ng is a fast zero-copy analyzer, pcap capturing and replaying tool" |
| 2 | HOMEPAGE = "http://netsniff-ng.org" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 3 | LICENSE = "GPL-2.0-only" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=9dd40dfb621eed702c0775577fbb7011" |
| 5 | DEPENDS = "libpcap" |
| 6 | |
| 7 | SRCREV = "be3e706f00295024ebc199e70177343fdaebbc9e" |
| 8 | SRC_URI = " \ |
| 9 | git://github.com/netsniff-ng/netsniff-ng.git;protocol=https;branch=master \ |
| 10 | file://0001-Cmds-automatically-create-folder.patch \ |
| 11 | " |
| 12 | |
| 13 | S = "${WORKDIR}/git" |
| 14 | |
| 15 | inherit pkgconfig |
| 16 | |
| 17 | EXTRA_OEMAKE += " TERM='' " |
| 18 | |
| 19 | PACKAGECONFIG ??= "" |
| 20 | PACKAGECONFIG[zlib] = ",--disable-zlib,zlib," |
| 21 | PACKAGECONFIG[libnl] = ",--disable-libnl,libnl," |
| 22 | PACKAGECONFIG[geoip] = ",--disable-geoip,geoip," |
| 23 | |
| 24 | do_configure() { |
| 25 | ./configure --prefix=${prefix} |
| 26 | } |
| 27 | |
| 28 | do_compile() { |
| 29 | oe_runmake |
| 30 | } |
| 31 | |
| 32 | do_install() { |
| 33 | oe_runmake DESTDIR=${D} netsniff-ng_install |
| 34 | } |
| 35 | |
| 36 | BBCLASSEXTEND = "native nativesdk" |