1
0

Makefile 901 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=banhostlist
  9. PKG_VERSION:=1
  10. PKG_RELEASE:=1
  11. PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  12. PKG_MAINTAINER:=Matteo Croce <matteo@openwrt.org>
  13. PKG_LICENCE:=GPL-2.0
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/banhostlist
  16. SECTION:=utils
  17. CATEGORY:=Utilities
  18. TITLE:=List of advertising domains
  19. URL:=http://winhelp2002.mvps.org/
  20. endef
  21. define Package/banhostlist/description
  22. List of domains serving advertising and malicious content to easily block them
  23. endef
  24. define Build/Compile/Default
  25. endef
  26. define Package/banhostlist/install
  27. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  28. $(INSTALL_BIN) ./files/updatebanhost $(1)/etc/hotplug.d/iface/80-banhosts
  29. endef
  30. $(eval $(call BuildPackage,banhostlist))