Makefile 979 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-luci-mesh-vpn-fastd
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=1
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(GLUONDIR)/include/package.mk
  7. PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
  8. define Package/gluon-luci-mesh-vpn-fastd
  9. SECTION:=gluon
  10. CATEGORY:=Gluon
  11. TITLE:=Luci module to enable and disable encryption for the mesh VPN
  12. DEPENDS:=+gluon-luci-admin +gluon-mesh-vpn-fastd
  13. endef
  14. define Build/Prepare
  15. mkdir -p $(PKG_BUILD_DIR)
  16. endef
  17. define Build/Configure
  18. endef
  19. define Build/Compile
  20. $(call GluonBuildI18N,gluon-mesh-vpn-fastd,i18n)
  21. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  22. endef
  23. define Package/gluon-luci-mesh-vpn-fastd/install
  24. $(CP) ./files/* $(1)/
  25. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  26. $(call GluonInstallI18N,gluon-mesh-vpn-fastd,$(1))
  27. endef
  28. define Package/gluon-luci-mesh-vpn-fastd/postinst
  29. #!/bin/sh
  30. $(call GluonCheckSite,check_site.lua)
  31. endef
  32. $(eval $(call BuildPackage,gluon-luci-mesh-vpn-fastd))