Makefile (901B)
1 # 2 # Copyright (C) 2015 OpenWrt.org 3 # 4 # This is free software, licensed under the GNU General Public License v2. 5 # See /LICENSE for more information. 6 # 7 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=banhostlist 11 PKG_VERSION:=1 12 PKG_RELEASE:=1 13 14 PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 15 PKG_MAINTAINER:=Matteo Croce <matteo@openwrt.org> 16 PKG_LICENCE:=GPL-2.0 17 18 include $(INCLUDE_DIR)/package.mk 19 20 define Package/banhostlist 21 SECTION:=utils 22 CATEGORY:=Utilities 23 TITLE:=List of advertising domains 24 URL:=http://winhelp2002.mvps.org/ 25 endef 26 27 define Package/banhostlist/description 28 List of domains serving advertising and malicious content to easily block them 29 endef 30 31 32 define Build/Compile/Default 33 endef 34 35 define Package/banhostlist/install 36 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface 37 $(INSTALL_BIN) ./files/updatebanhost $(1)/etc/hotplug.d/iface/80-banhosts 38 endef 39 40 $(eval $(call BuildPackage,banhostlist))