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.

77 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2015 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.20.3
  9. PKG_RELEASE:=1
  10. PKG_LICENSE:=GPL-3.0+
  11. PKG_MAINTAINER:=Dirk Brenken <dirk@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:=+curl +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 [A] resource records of ad servers
  23. and return the local ip address of your router and the internal web server delivers a transparent pixel instead.
  24. The script supports the following domain blacklist sites:
  25. http://pgl.yoyo.org/adservers
  26. http://malwaredomains.com
  27. https://zeustracker.abuse.ch
  28. https://feodotracker.abuse.ch
  29. https://palevotracker.abuse.ch
  30. http://dshield.org
  31. http://www.shallalist.de
  32. http://www.spam404.com
  33. http://winhelp2002.mvps.org
  34. endef
  35. define Package/$(PKG_NAME)/conffiles
  36. /etc/config/adblock
  37. /etc/adblock/adblock.whitelist
  38. /etc/adblock/adblock.blacklist
  39. endef
  40. define Build/Prepare
  41. endef
  42. define Build/Configure
  43. endef
  44. define Build/Compile
  45. endef
  46. define Package/$(PKG_NAME)/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) ./files/adblock-update.sh $(1)/usr/bin/
  49. $(INSTALL_DATA) ./files/adblock-helper.sh $(1)/usr/bin/
  50. $(INSTALL_DIR) $(1)/etc/config
  51. $(INSTALL_CONF) ./files/adblock.conf $(1)/etc/config/adblock
  52. $(INSTALL_DIR) $(1)/etc/adblock
  53. $(INSTALL_CONF) ./files/adblock.blacklist $(1)/etc/adblock/
  54. $(INSTALL_CONF) ./files/adblock.whitelist $(1)/etc/adblock/
  55. $(INSTALL_CONF) ./files/README.md $(1)/etc/adblock/
  56. $(INSTALL_DIR) $(1)/etc/adblock/samples
  57. $(INSTALL_CONF) ./files/samples/*.sample $(1)/etc/adblock/samples/
  58. $(INSTALL_DIR) $(1)/www/adblock
  59. $(INSTALL_DATA) ./files/www/adblock/* $(1)/www/adblock/
  60. endef
  61. $(eval $(call BuildPackage,$(PKG_NAME)))