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.

82 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.40.0
  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. https://adaway.org
  36. https://disconnect.me
  37. Please see README.md in /etc/adblock for further information.
  38. endef
  39. define Package/$(PKG_NAME)/conffiles
  40. /etc/config/adblock
  41. /etc/adblock/adblock.whitelist
  42. /etc/adblock/adblock.blacklist
  43. endef
  44. define Build/Prepare
  45. endef
  46. define Build/Configure
  47. endef
  48. define Build/Compile
  49. endef
  50. define Package/$(PKG_NAME)/install
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(INSTALL_BIN) ./files/adblock-update.sh $(1)/usr/bin/
  53. $(INSTALL_DATA) ./files/adblock-helper.sh $(1)/usr/bin/
  54. $(INSTALL_DIR) $(1)/etc/config
  55. $(INSTALL_CONF) ./files/adblock.conf $(1)/etc/config/adblock
  56. $(INSTALL_DIR) $(1)/etc/adblock
  57. $(INSTALL_CONF) ./files/adblock.blacklist $(1)/etc/adblock/
  58. $(INSTALL_CONF) ./files/adblock.whitelist $(1)/etc/adblock/
  59. $(INSTALL_CONF) ./files/README.md $(1)/etc/adblock/
  60. $(INSTALL_DIR) $(1)/etc/adblock/samples
  61. $(INSTALL_CONF) ./files/samples/*.sample $(1)/etc/adblock/samples/
  62. $(INSTALL_DIR) $(1)/www/adblock
  63. $(INSTALL_DATA) ./files/www/adblock/* $(1)/www/adblock/
  64. endef
  65. $(eval $(call BuildPackage,$(PKG_NAME)))