Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 1 | SUMMARY = "Web-based Traffic and Security Network Traffic Monitoring" |
| 2 | DESCRIPTION = "ntopng is a web-based network traffic monitoring application \ |
| 3 | released under GPLv3. It is the new incarnation of the original \ |
| 4 | ntop written in 1998, and now revamped in terms of performance, \ |
| 5 | usability, and features." |
| 6 | |
| 7 | SECTION = "console/network" |
| 8 | |
| 9 | DEPENDS = "curl libmaxminddb libpcap lua mariadb ndpi json-c rrdtool zeromq" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 10 | RDEPENDS:${PN} = "bash redis" |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 11 | LICENSE = "GPLv3" |
| 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
| 13 | |
| 14 | SRCREV = "5e649a2d1130b4a3ab0c5bb673d615172cc0bdbb" |
| 15 | SRC_URI = "git://github.com/ntop/ntopng.git;protocol=git;branch=4.2-stable \ |
| 16 | file://0001-configure.seed-fix-configure-error.patch \ |
| 17 | file://0001-configure.seed-fix-host-contamination.patch \ |
| 18 | file://0001-Makefile.in-don-t-use-the-internal-lua.patch \ |
| 19 | file://0001-autogen.sh-generate-configure.ac-only.patch \ |
| 20 | file://0001-configure.seed-not-check-clang-on-host.patch \ |
| 21 | file://ntopng.service \ |
| 22 | " |
| 23 | |
| 24 | S = "${WORKDIR}/git" |
| 25 | |
| 26 | # don't use the lua under thirdparty as it supports cross compiling badly |
| 27 | export LUA_LIB = "${STAGING_LIBDIR}/liblua.a" |
| 28 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 29 | LDFLAGS:append:mipsarch = " -latomic" |
| 30 | LDFLAGS:append:powerpc = " -latomic" |
| 31 | LDFLAGS:append:riscv32 = " -latomic" |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 32 | inherit autotools-brokensep gettext systemd |
| 33 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 34 | do_install:append() { |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 35 | install -d ${D}${systemd_unitdir}/system/ |
| 36 | install -m 0644 ${WORKDIR}/ntopng.service ${D}${systemd_unitdir}/system |
| 37 | } |
| 38 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 39 | FILES:${PN} += "\ |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 40 | ${systemd_unitdir}/system/ntopng.service" |
| 41 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 42 | FILES:${PN}-doc += "\ |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 43 | /usr/man/man8/ntopng.8" |
| 44 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 45 | do_configure:prepend() { |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 46 | ${S}/autogen.sh |
| 47 | } |
| 48 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 49 | SYSTEMD_SERVICE:${PN} = "ntopng.service" |