1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE_URL
:=https
://github.com
/jow-
/nlbwmon.git
8 PKG_SOURCE_DATE
:=2021-09-01
9 PKG_SOURCE_VERSION
:=d82c910cc3d6021567c925e767ed1fd8c3934f4b
10 PKG_MIRROR_HASH
:=0ec86d002c514691d7ac94fcc5055f346fe5d255cc39598c36f5ef41fab86f0a
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
:=OpenWrt 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
41 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/iface
42 $(INSTALL_BIN
) .
/files
/nlbwmon.hotplug
$(1)/etc
/hotplug.d
/iface
/30-nlbwmon
45 define Package
/nlbwmon
/conffiles
47 /usr
/share
/nlbwmon
/protocols
51 $(eval
$(call BuildPackage
,nlbwmon
))