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.

70 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2015-2016 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:=1.1.17
  9. PKG_RELEASE:=1
  10. PKG_LICENSE:=GPL-3.0+
  11. PKG_MAINTAINER:=Dirk Brenken <dev@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:=+wget
  18. PKGARCH:=all
  19. endef
  20. define Package/$(PKG_NAME)/description
  21. Powerful adblock script to block ad/abuse domains.
  22. Currently the script supports 19 domain blacklist sites plus manual black- and whitelist overrides.
  23. Please see https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md for further information.
  24. endef
  25. define Package/$(PKG_NAME)/conffiles
  26. /etc/config/adblock
  27. /etc/adblock/adblock.whitelist
  28. /etc/adblock/adblock.blacklist
  29. endef
  30. define Build/Prepare
  31. endef
  32. define Build/Configure
  33. endef
  34. define Build/Compile
  35. endef
  36. define Package/$(PKG_NAME)/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(INSTALL_BIN) ./files/adblock-update.sh $(1)/usr/bin/
  39. $(INSTALL_DATA) ./files/adblock-helper.sh $(1)/usr/bin/
  40. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  41. $(INSTALL_BIN) ./files/adblock.hotplug $(1)/etc/hotplug.d/iface/99-adblock
  42. $(INSTALL_DIR) $(1)/etc/init.d
  43. $(INSTALL_BIN) ./files/adblock.init $(1)/etc/init.d/adblock
  44. $(INSTALL_DIR) $(1)/etc/config
  45. $(INSTALL_CONF) ./files/adblock.conf $(1)/etc/config/adblock
  46. $(INSTALL_DIR) $(1)/etc/adblock
  47. $(INSTALL_CONF) ./files/adblock.conf $(1)/etc/adblock/adblock.conf.default
  48. $(INSTALL_CONF) ./files/adblock.blacklist $(1)/etc/adblock/
  49. $(INSTALL_CONF) ./files/adblock.whitelist $(1)/etc/adblock/
  50. $(INSTALL_DIR) $(1)/www/adblock
  51. $(INSTALL_DATA) ./files/www/adblock/* $(1)/www/adblock/
  52. endef
  53. $(eval $(call BuildPackage,$(PKG_NAME)))