Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright (C) 2011 Manuel Munz <freifunk at somakoma de>
  2. # This is free software, licensed under the Apache 2.0 license.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:=freifunk-policyrouting
  5. PKG_RELEASE:=6
  6. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  7. include $(INCLUDE_DIR)/package.mk
  8. define Package/freifunk-policyrouting
  9. SECTION:=luci
  10. CATEGORY:=LuCI
  11. SUBMENU:=9. Freifunk
  12. TITLE:=Freifunk policy routing addon
  13. DEPENDS:=+ip
  14. endef
  15. define Package/freifunk-policyrouting/description
  16. Allows you to send your own traffic via your own default gateway while sending traffic received from the mesh to a gateway in the mesh.
  17. endef
  18. define Build/Prepare
  19. mkdir -p $(PKG_BUILD_DIR)
  20. endef
  21. define Build/Configure
  22. endef
  23. define Build/Compile
  24. endef
  25. define Package/freifunk-policyrouting/install
  26. $(CP) ./files/* $(1)/
  27. endef
  28. define Package/freifunk-policyrouting/postinst
  29. #!/bin/sh
  30. [ -n "$${IPKG_INSTROOT}" ] || {
  31. /etc/init.d/freifunk-policyrouting enabled || /etc/init.d/freifunk-policyrouting enable
  32. exit 0
  33. }
  34. endef
  35. $(eval $(call BuildPackage,freifunk-policyrouting))