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.

69 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.5.2
  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. PKGARCH:=all
  18. endef
  19. define Package/$(PKG_NAME)/description
  20. Powerful adblock script to block ad/abuse domains.
  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/$(PKG_NAME)/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/$(PKG_NAME)/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_BIN) ./files/adblock-update.sh $(1)/usr/bin/
  38. $(INSTALL_DATA) ./files/adblock-helper.sh $(1)/usr/bin/
  39. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  40. $(INSTALL_BIN) ./files/adblock.hotplug $(1)/etc/hotplug.d/iface/90-adblock
  41. $(INSTALL_DIR) $(1)/etc/init.d
  42. $(INSTALL_BIN) ./files/adblock.init $(1)/etc/init.d/adblock
  43. $(INSTALL_DIR) $(1)/etc/config
  44. $(INSTALL_CONF) ./files/adblock.conf $(1)/etc/config/adblock
  45. $(INSTALL_DIR) $(1)/etc/adblock
  46. $(INSTALL_CONF) ./files/adblock.conf $(1)/etc/adblock/adblock.conf.default
  47. $(INSTALL_CONF) ./files/adblock.blacklist $(1)/etc/adblock/
  48. $(INSTALL_CONF) ./files/adblock.whitelist $(1)/etc/adblock/
  49. $(INSTALL_DIR) $(1)/www/adblock
  50. $(INSTALL_DATA) ./files/www/adblock/* $(1)/www/adblock/
  51. endef
  52. $(eval $(call BuildPackage,$(PKG_NAME)))