1 # Copyright (c) 2017 Stan Grishin (stangri@melmac.net)
2 # This is free software, licensed under the GNU General Public License v3.
4 include $(TOPDIR
)/rules.mk
6 PKG_NAME
:=simple-adblock
10 PKG_MAINTAINER
:=Stan Grishin
<stangri@melmac.net
>
12 include $(INCLUDE_DIR
)/package.mk
14 define Package
/$(PKG_NAME
)
17 TITLE
:=Simple AdBlock Service
21 define Package
/$(PKG_NAME
)/description
22 This service provides dnsmasq-based ad blocking.
23 Please see the README for further information.
27 define Package
/$(PKG_NAME
)/conffiles
28 /etc
/config
/simple-adblock
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
37 define Build
/Configure
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
50 $(eval
$(call BuildPackage
,$(PKG_NAME
)))