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.

80 lines
2.1 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.22.1
  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]
  23. resource records of ad 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. http://pgl.yoyo.org/adservers
  27. http://malwaredomains.com
  28. https://zeustracker.abuse.ch
  29. https://feodotracker.abuse.ch
  30. https://palevotracker.abuse.ch
  31. http://dshield.org
  32. http://www.shallalist.de
  33. http://www.spam404.com
  34. http://winhelp2002.mvps.org
  35. Please read README.md in /etc/adblock for further information.
  36. endef
  37. define Package/$(PKG_NAME)/conffiles
  38. /etc/config/adblock
  39. /etc/adblock/adblock.whitelist
  40. /etc/adblock/adblock.blacklist
  41. endef
  42. define Build/Prepare
  43. endef
  44. define Build/Configure
  45. endef
  46. define Build/Compile
  47. endef
  48. define Package/$(PKG_NAME)/install
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(INSTALL_BIN) ./files/adblock-update.sh $(1)/usr/bin/
  51. $(INSTALL_DATA) ./files/adblock-helper.sh $(1)/usr/bin/
  52. $(INSTALL_DIR) $(1)/etc/config
  53. $(INSTALL_CONF) ./files/adblock.conf $(1)/etc/config/adblock
  54. $(INSTALL_DIR) $(1)/etc/adblock
  55. $(INSTALL_CONF) ./files/adblock.blacklist $(1)/etc/adblock/
  56. $(INSTALL_CONF) ./files/adblock.whitelist $(1)/etc/adblock/
  57. $(INSTALL_CONF) ./files/README.md $(1)/etc/adblock/
  58. $(INSTALL_DIR) $(1)/etc/adblock/samples
  59. $(INSTALL_CONF) ./files/samples/*.sample $(1)/etc/adblock/samples/
  60. $(INSTALL_DIR) $(1)/www/adblock
  61. $(INSTALL_DATA) ./files/www/adblock/* $(1)/www/adblock/
  62. endef
  63. $(eval $(call BuildPackage,$(PKG_NAME)))