admin/netdata: Update to 1.9.0
[feed/packages.git] / net / simple-adblock / Makefile
1 # Copyright (c) 2017 Stan Grishin (stangri@melmac.net)
2 # This is free software, licensed under the GNU General Public License v3.
3
4 include $(TOPDIR)/rules.mk
5
6 PKG_NAME:=simple-adblock
7 PKG_VERSION:=1.5.7
8 PKG_RELEASE:=2
9 PKG_LICENSE:=GPL-3.0+
10 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
11
12 include $(INCLUDE_DIR)/package.mk
13
14 define Package/$(PKG_NAME)
15 SECTION:=net
16 CATEGORY:=Network
17 TITLE:=Simple AdBlock Service
18 PKGARCH:=all
19 endef
20
21 define Package/$(PKG_NAME)/description
22 This service provides dnsmasq-based ad blocking.
23 Please see the README for further information.
24
25 endef
26
27 define Package/$(PKG_NAME)/conffiles
28 /etc/config/simple-adblock
29 endef
30
31 define Build/Prepare
32 mkdir -p $(PKG_BUILD_DIR)/files/
33 $(CP) ./files/simple-adblock.init $(PKG_BUILD_DIR)/files/simple-adblock.init
34 sed -i "s|^\(PKG_VERSION\).*|\1='$(PKG_VERSION)-$(PKG_RELEASE)'|" $(PKG_BUILD_DIR)/files/simple-adblock.init
35 endef
36
37 define Build/Configure
38 endef
39
40 define Build/Compile
41 endef
42
43 define Package/$(PKG_NAME)/install
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/simple-adblock.init $(1)/etc/init.d/simple-adblock
46 $(INSTALL_DIR) $(1)/etc/config
47 $(INSTALL_CONF) ./files/simple-adblock.conf $(1)/etc/config/simple-adblock
48 endef
49
50 $(eval $(call BuildPackage,$(PKG_NAME)))