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.

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