Makefile 1020 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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
  12. endef
  13. define Build/Prepare
  14. mkdir -p $(PKG_BUILD_DIR)
  15. $(CP) ./src/* $(PKG_BUILD_DIR)/
  16. endef
  17. define Build/Configure
  18. endef
  19. define Build/Compile
  20. $(call Build/Compile/Default)
  21. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  22. endef
  23. define Package/gluon-radv-filterd/install
  24. $(CP) ./files/* $(1)/
  25. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  26. $(INSTALL_DIR) $(1)/usr/sbin/
  27. $(INSTALL_BIN) $(PKG_BUILD_DIR)/gluon-radv-filterd $(1)/usr/sbin/
  28. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  29. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/radv-filterd.so
  30. endef
  31. define Package/gluon-radv-filterd/postinst
  32. #!/bin/sh
  33. $(call GluonCheckSite,check_site.lua)
  34. endef
  35. $(eval $(call BuildPackage,gluon-radv-filterd))