@@ -6,6 +6,7 @@ PKG_RELEASE:=1
66PKG_LICENSE: =GPL-2.0
77PKG_MAINTAINER: =Thibaut VARÈNE <hacks@slashdirt.org>
88
9+ CMAKE_SOURCE_SUBDIR: =src
910PKG_BUILD_DEPENDS: =bpf-headers
1011
1112include $(INCLUDE_DIR ) /package.mk
@@ -17,10 +18,10 @@ define Package/uspot
1718 SECTION:=net
1819 CATEGORY:=Network
1920 TITLE:=uspot hotspot daemon
20- EXTRA_DEPENDS:=ucode (>= 2023-11- 07)
21+ EXTRA_DEPENDS:=ucode (>= 2023.11. 07)
2122 DEPENDS:=+conntrack \
2223 +libblobmsg-json +liblucihttp-ucode +libradcli +libubox +libubus +libuci \
23- +ratelimit + uspotfilter \
24+ +uspotfilter \
2425 +ucode +ucode-mod-log +ucode-mod-math +ucode-mod-nl80211 +ucode-mod-rtnl +uhttpd-mod-ucode +ucode-mod-uloop \
2526 +ucode-mod-bpf +ucode-mod-struct +kmod-sched-core +kmod-sched-bpf $(BPF_DEPENDS )
2627endef
@@ -39,7 +40,6 @@ define Package/uspot/conffiles
3940/etc/config/uspot
4041endef
4142
42-
4343define Package/uspot-www
4444 SUBMENU:=Captive Portals
4545 SECTION:=net
@@ -58,8 +58,8 @@ define Package/uspotfilter
5858 SECTION:=net
5959 CATEGORY:=Network
6060 TITLE:=uspot firewall interface
61- EXTRA_DEPENDS:=ucode (>= 2023-11- 07)
62- DEPENDS:=+ucode +ucode-mod-log +ucode-mod-uloop +ucode-mod-rtnl +nftables-json +conntrack
61+ EXTRA_DEPENDS:=ucode (>= 2023.11. 07)
62+ DEPENDS:=+conntrack +nftables-json + ucode +ucode-mod-rtnl +ucode-mod-uloop +ucode-mod-log
6363 PKGARCH:=all
6464endef
6565
@@ -79,20 +79,20 @@ define Package/uspot/install
7979 $(INSTALL_BIN ) $(PKG_BUILD_DIR ) /uspot-das $(1 ) /usr/bin/uspot-das
8080 $(INSTALL_DATA ) $(PKG_BUILD_DIR ) /libuam.so $(1 ) /usr/lib/ucode/uam.so
8181 $(INSTALL_DATA ) $(PKG_BUILD_DIR ) /uspot-bpf.o $(1 ) /lib/bpf/uspot.o
82- $(INSTALL_CONF ) . /files/etc/config/uspot $(1 ) /etc/config/uspot
83- $(INSTALL_BIN ) . /files/etc/init.d/uspot $(1 ) /etc/init.d/uspot
84- $(CP ) . /files/usr/bin $(1 ) /usr/
85- $(CP ) . /files/usr/share/uspot $(1 ) /usr/share/
82+ $(INSTALL_CONF ) $( PKG_BUILD_DIR ) /files/etc/config/uspot $(1 ) /etc/config/uspot
83+ $(INSTALL_BIN ) $( PKG_BUILD_DIR ) /files/etc/init.d/uspot $(1 ) /etc/init.d/uspot
84+ $(CP ) $( PKG_BUILD_DIR ) /files/usr/bin $(1 ) /usr/
85+ $(CP ) $( PKG_BUILD_DIR ) /files/usr/share/uspot $(1 ) /usr/share/
8686endef
8787
8888define Package/uspot-www/install
89- $(CP ) . /files/www-uspot $(1 ) /
89+ $(CP ) $( PKG_BUILD_DIR ) /files/www-uspot $(1 ) /
9090endef
9191
9292define Package/uspotfilter/install
9393 $(INSTALL_DIR ) $(1 ) /usr/share $(1 ) /etc/init.d
94- $(INSTALL_BIN ) . /files/etc/init.d/uspotfilter $(1 ) /etc/init.d/uspotfilter
95- $(CP ) . /files/usr/share/uspotfilter $(1 ) /usr/share/
94+ $(INSTALL_BIN ) $( PKG_BUILD_DIR ) /files/etc/init.d/uspotfilter $(1 ) /etc/init.d/uspotfilter
95+ $(CP ) $( PKG_BUILD_DIR ) /files/usr/share/uspotfilter $(1 ) /usr/share/
9696endef
9797
9898$(eval $(call BuildPackage,uspot))
0 commit comments