Makefile 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-radv-filterd
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=1
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include ../gluon.mk
  7. define Package/gluon-radv-filterd
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. TITLE:=Filter IPv6 router advertisements
  11. DEPENDS:=+gluon-ebtables +libgluonutil +libbatadv +libnl-tiny
  12. endef
  13. MAKE_VARS += \
  14. LIBNL_NAME="libnl-tiny" \
  15. LIBNL_GENL_NAME="libnl-tiny"
  16. define Build/Prepare
  17. mkdir -p $(PKG_BUILD_DIR)
  18. $(CP) ./src/* $(PKG_BUILD_DIR)/
  19. endef
  20. define Package/gluon-radv-filterd/install
  21. $(CP) ./files/* $(1)/
  22. $(INSTALL_DIR) $(1)/usr/sbin/
  23. $(INSTALL_BIN) $(PKG_BUILD_DIR)/gluon-radv-filterd $(1)/usr/sbin/
  24. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  25. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/radv-filterd.so
  26. endef
  27. define Package/gluon-radv-filterd/postinst
  28. #!/bin/sh
  29. $(call GluonCheckSite,check_site.lua)
  30. endef
  31. $(eval $(call BuildPackage,gluon-radv-filterd))