ntopng_5.2.1.bb 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. SECTION = "console/network"
  7. DEPENDS = "curl hiredis libmaxminddb libpcap lua mariadb ndpi json-c rrdtool zeromq"
  8. RDEPENDS:${PN} = "bash redis"
  9. LICENSE = "GPL-3.0-only"
  10. LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
  11. SRCREV = "d3ce78948e8d81dc1e2c5298ce556f9f2247aac1"
  12. SRC_URI = "git://github.com/ntop/ntopng.git;protocol=https;branch=5.2-stable \
  13. file://0001-configure.ac.in-fix-configure-error.patch \
  14. file://0001-configure.ac.in-fix-host-contamination.patch \
  15. file://0001-Makefile.in-don-t-use-the-internal-lua.patch \
  16. file://0001-autogen.sh-generate-configure.ac-only.patch \
  17. file://0001-configure.ac.in-not-check-clang-on-host.patch \
  18. file://0001-configure.ac.in-Allow-dynamic-linking-against-ndpi-3.patch \
  19. file://ntopng.service \
  20. "
  21. S = "${WORKDIR}/git"
  22. # don't use the lua under thirdparty as it supports cross compiling badly
  23. export LUA_LIB = "${STAGING_LIBDIR}/liblua.a"
  24. LDFLAGS:append:mipsarch = " -latomic"
  25. LDFLAGS:append:powerpc = " -latomic"
  26. LDFLAGS:append:riscv32 = " -latomic"
  27. inherit autotools-brokensep gettext pkgconfig systemd
  28. do_install:append() {
  29. install -d ${D}${systemd_unitdir}/system/
  30. install -m 0644 ${UNPACKDIR}/ntopng.service ${D}${systemd_unitdir}/system
  31. }
  32. FILES:${PN} += "\
  33. ${systemd_unitdir}/system/ntopng.service"
  34. FILES:${PN}-doc += "\
  35. /usr/man/man8/ntopng.8"
  36. do_configure:prepend() {
  37. ${S}/autogen.sh
  38. }
  39. SYSTEMD_SERVICE:${PN} = "ntopng.service"