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.

65 lines
1.8 KiB

  1. #
  2. # Copyright (c) 2015-2020 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:=4.0.4
  8. PKG_RELEASE:=4
  9. PKG_LICENSE:=GPL-3.0-or-later
  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 by using DNS
  16. DEPENDS:=+jshn +jsonfilter +coreutils +coreutils-sort +ca-bundle
  17. PKGARCH:=all
  18. endef
  19. define Package/adblock/description
  20. Powerful adblock script to block ad/abuse domains via dnsmasq, unbound, named or kresd.
  21. The script supports many domain blacklist sites plus manual black- and whitelist overrides.
  22. Please see https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md for further information.
  23. endef
  24. define Package/adblock/conffiles
  25. /etc/config/adblock
  26. /etc/adblock/adblock.whitelist
  27. /etc/adblock/adblock.blacklist
  28. endef
  29. define Build/Prepare
  30. endef
  31. define Build/Configure
  32. endef
  33. define Build/Compile
  34. endef
  35. define Package/adblock/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_BIN) ./files/adblock.sh $(1)/usr/bin
  38. $(INSTALL_DIR) $(1)/etc/init.d
  39. $(INSTALL_BIN) ./files/adblock.init $(1)/etc/init.d/adblock
  40. $(INSTALL_DIR) $(1)/etc/config
  41. $(INSTALL_CONF) ./files/adblock.conf $(1)/etc/config/adblock
  42. $(INSTALL_DIR) $(1)/etc/adblock
  43. $(INSTALL_BIN) ./files/adblock.mail $(1)/etc/adblock
  44. $(INSTALL_BIN) ./files/adblock.monitor $(1)/etc/adblock
  45. $(INSTALL_CONF) ./files/adblock.blacklist $(1)/etc/adblock
  46. $(INSTALL_CONF) ./files/adblock.whitelist $(1)/etc/adblock
  47. $(INSTALL_CONF) ./files/adblock.sources $(1)/etc/adblock
  48. gzip -9 $(1)/etc/adblock/adblock.sources
  49. endef
  50. $(eval $(call BuildPackage,adblock))