2 # Copyright (C) 2021 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
16 HOST_BUILD_DEPENDS
:=ucode
/host libubox
/host
17 PKG_BUILD_DEPENDS
:=bpf-headers ufp
/host
19 include $(INCLUDE_DIR
)/host-build.mk
20 include $(INCLUDE_DIR
)/package.mk
21 include $(INCLUDE_DIR
)/cmake.mk
26 TITLE
:=Device fingerprinting daemon
27 DEPENDS
:=+ucode
+ucode-mod-fs
+libubox
30 define Package
/ufp
/conffiles
35 mkdir
-p
$(HOST_BUILD_DIR
)
36 $(CP
) .
/src
/* $(HOST_BUILD_DIR
)/
39 define Package
/ufp
/install
40 $(INSTALL_DIR
) $(1)/usr
/lib
/ucode
$(1)/usr
/share
/ufp
41 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/ucode
/uht.so
$(1)/usr
/lib
/ucode
/
42 ucode .
/scripts
/convert-devices.uc
$(1)/usr
/share
/ufp
/devices.bin .
/data
/*.json
46 $(eval
$(call BuildPackage
,ufp
))
47 $(eval
$(call HostBuild
))