No Description

Makefile 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # Copyright (C) 2014 Openwrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=bcp38
  7. PKG_VERSION:=4
  8. PKG_RELEASE:=1
  9. PKG_LICENCE:=GPL-3.0+
  10. include $(INCLUDE_DIR)/package.mk
  11. define Package/bcp38
  12. SECTION:=net
  13. CATEGORY:=Network
  14. SUBMENU:=Routing and Redirection
  15. TITLE:=BCP38 compliance
  16. URL:=https://github.com/dtaht/ceropackages-3.10
  17. MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
  18. DEPENDS:=+ipset
  19. endef
  20. define Package/bcp38/description
  21. bcp38 implements IETF BCP38 for home routers. See https://tools.ietf.org/html/bcp38.
  22. endef
  23. define Package/bcp38/conffiles
  24. /etc/config/bcp38
  25. endef
  26. define Build/Prepare
  27. endef
  28. define Build/Configure
  29. endef
  30. define Build/Compile
  31. endef
  32. define Package/bcp38/install
  33. $(INSTALL_DIR) $(1)/etc/config
  34. $(INSTALL_CONF) ./files/bcp38.config $(1)/etc/config/bcp38
  35. $(INSTALL_DIR) $(1)/usr/lib/bcp38
  36. $(INSTALL_BIN) ./files/run.sh $(1)/usr/lib/bcp38/run.sh
  37. $(INSTALL_DIR) $(1)/etc/uci-defaults
  38. $(INSTALL_BIN) ./files/bcp38.defaults $(1)/etc/uci-defaults/bcp38
  39. endef
  40. define Package/bcp38/postinst
  41. #!/bin/sh
  42. [ -x /etc/uci-defaults/bcp38 ] && /etc/uci-defaults/bcp38 || exit 0
  43. endef
  44. define Package/bcp38/postrm
  45. #!/bin/sh
  46. uci delete firewall.bcp38
  47. uci commit
  48. endef
  49. $(eval $(call BuildPackage,bcp38))