1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE_URL
:=https
://github.com
/jow-
/nlbwmon.git
8 PKG_SOURCE_DATE
:=2019-06-13
9 PKG_SOURCE_VERSION
:=e921ca0af9957d3cb05797acfb8bde4d7d2278e5
10 PKG_MIRROR_HASH
:=1f6ed5086e978beeba4c22c255b4ed893d598119c3f2c03061501464910ea421
14 PKG_MAINTAINER
:=Jo-Philipp Wich
<jo@mein.io
>
16 PKG_LICENSE_FILES
:=COPYING
18 include $(INCLUDE_DIR
)/package.mk
19 include $(INCLUDE_DIR
)/cmake.mk
21 CMAKE_OPTIONS
+= -DLIBNL_LIBRARY_TINY
=ON
22 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include/libnl-tiny
24 define Package
/nlbwmon
27 DEPENDS
:=+libubox
+libnl-tiny
+zlib
+kmod-nf-conntrack-netlink
28 TITLE
:=LEDE Traffic Usage Monitor
31 define Package
/nlbwmon
/install
32 $(INSTALL_DIR
) $(1)/usr
/sbin
33 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/nlbwmon
$(1)/usr
/sbin
/nlbwmon
34 $(LN
) nlbwmon
$(1)/usr
/sbin
/nlbw
35 $(INSTALL_DIR
) $(1)/usr
/share
/nlbwmon
36 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/protocols.txt
$(1)/usr
/share
/nlbwmon
/protocols
37 $(INSTALL_DIR
) $(1)/etc
/init.d
38 $(INSTALL_BIN
) .
/files
/nlbwmon.init
$(1)/etc
/init.d
/nlbwmon
39 $(INSTALL_DIR
) $(1)/etc
/config
40 $(INSTALL_CONF
) .
/files
/nlbwmon.config
$(1)/etc
/config
/nlbwmon
43 define Package
/nlbwmon
/conffiles
44 /usr
/share
/nlbwmon
/protocols
48 $(eval
$(call BuildPackage
,nlbwmon
))