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.

60 lines
1.5 KiB

  1. #
  2. # Copyright (c) 2015-2017 Dirk Brenken (dev@brenken.org)
  3. # This is free software, licensed under the GNU General Public License v3.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=adblock
  7. PKG_VERSION:=2.8.3
  8. PKG_RELEASE:=1
  9. PKG_LICENSE:=GPL-3.0+
  10. PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/adblock
  13. SECTION:=net
  14. CATEGORY:=Network
  15. TITLE:=Powerful adblock script to block ad/abuse domains
  16. PKGARCH:=all
  17. endef
  18. define Package/adblock/description
  19. Powerful adblock script to block ad/abuse domains via dnsmasq, unbound or bind dns backend.
  20. The script supports many domain blacklist sites plus manual black- and whitelist overrides.
  21. Please see https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md for further information.
  22. endef
  23. define Package/adblock/conffiles
  24. /etc/config/adblock
  25. /etc/adblock/adblock.whitelist
  26. /etc/adblock/adblock.blacklist
  27. endef
  28. define Build/Prepare
  29. endef
  30. define Build/Configure
  31. endef
  32. define Build/Compile
  33. endef
  34. define Package/adblock/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(INSTALL_BIN) ./files/adblock.sh $(1)/usr/bin/
  37. $(INSTALL_DIR) $(1)/etc/init.d
  38. $(INSTALL_BIN) ./files/adblock.init $(1)/etc/init.d/adblock
  39. $(INSTALL_DIR) $(1)/etc/config
  40. $(INSTALL_CONF) ./files/adblock.conf $(1)/etc/config/adblock
  41. $(INSTALL_DIR) $(1)/etc/adblock
  42. $(INSTALL_CONF) ./files/adblock.blacklist $(1)/etc/adblock/
  43. $(INSTALL_CONF) ./files/adblock.whitelist $(1)/etc/adblock/
  44. endef
  45. $(eval $(call BuildPackage,adblock))