You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2015-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v3.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=adblock
  8. PKG_VERSION:=0.60.1
  9. PKG_RELEASE:=1
  10. PKG_LICENSE:=GPL-3.0+
  11. PKG_MAINTAINER:=Dirk Brenken <openwrt@brenken.org>
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/$(PKG_NAME)
  14. SECTION:=net
  15. CATEGORY:=Network
  16. TITLE:=Powerful adblock script to block ad/abuse domains
  17. DEPENDS:=+wget
  18. PKGARCH:=all
  19. endef
  20. define Package/$(PKG_NAME)/description
  21. Powerful adblock script to block ad/abuse domains
  22. When the dns server on your router receives dns requests, we will sort out queries that ask for the resource
  23. records of ad/abuse servers and return the local ip address of your router and the internal web server
  24. delivers a transparent pixel instead.
  25. The script supports the following domain blacklist sites:
  26. https://adaway.org
  27. https://disconnect.me
  28. http://dshield.org
  29. https://feodotracker.abuse.ch
  30. http://malwaredomains.com
  31. http://www.malwaredomainlist.com
  32. https://palevotracker.abuse.ch
  33. http://www.shallalist.de
  34. http://www.spam404.com
  35. http://someonewhocares.org
  36. http://winhelp2002.mvps.org
  37. http://pgl.yoyo.org/adservers
  38. https://zeustracker.abuse.ch
  39. Please see README.md in /etc/adblock for further information.
  40. endef
  41. define Package/$(PKG_NAME)/conffiles
  42. /etc/config/adblock
  43. /etc/adblock/adblock.whitelist
  44. /etc/adblock/adblock.blacklist
  45. endef
  46. define Build/Prepare
  47. endef
  48. define Build/Configure
  49. endef
  50. define Build/Compile
  51. endef
  52. define Package/$(PKG_NAME)/install
  53. $(INSTALL_DIR) $(1)/usr/bin
  54. $(INSTALL_BIN) ./files/adblock-update.sh $(1)/usr/bin/
  55. $(INSTALL_DATA) ./files/adblock-helper.sh $(1)/usr/bin/
  56. $(INSTALL_DIR) $(1)/etc/config
  57. $(INSTALL_CONF) ./files/adblock.conf $(1)/etc/config/adblock
  58. $(INSTALL_DIR) $(1)/etc/adblock
  59. $(INSTALL_CONF) ./files/adblock.blacklist $(1)/etc/adblock/
  60. $(INSTALL_CONF) ./files/adblock.whitelist $(1)/etc/adblock/
  61. $(INSTALL_CONF) ./files/README.md $(1)/etc/adblock/
  62. $(INSTALL_DIR) $(1)/etc/adblock/samples
  63. $(INSTALL_CONF) ./files/samples/*.sample $(1)/etc/adblock/samples/
  64. $(INSTALL_DIR) $(1)/www/adblock
  65. $(INSTALL_DATA) ./files/www/adblock/* $(1)/www/adblock/
  66. endef
  67. $(eval $(call BuildPackage,$(PKG_NAME)))