Merge pull request #5973 from cotequeiroz/gcc5-compilation
[feed/packages.git] / net / stubby / Makefile
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3 #
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=stubby
8 PKG_VERSION:=0.2.3
9 PKG_RELEASE:=1
10
11 PKG_LICENSE:=BSD-3-Clause
12 PKG_LICENSE_FILES:=COPYING
13 PKG_MAINTAINER:=David Mora <iamperson347+public@gmail.com>
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
17 PKG_SOURCE_URL:=https://github.com/getdnsapi/$(PKG_NAME)
18 PKG_SOURCE_VERSION:=8fb853ac8d6148fd9b53fdcbc107ecd375071ec5
19 PKG_MIRROR_HASH:=db736f4a728970d2441009ac19716d6129700eab3f441a5db3a0c26d41bf162c
20
21 PKG_FIXUP:=autoreconf
22
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/stubby/Default
28 TITLE:=stubby
29 URL:=https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby
30 endef
31
32 define Package/stubby/description
33 This package contains the Stubby daemon (which utilizes the getdns library).
34
35 See https://github.com/openwrt/packages/blob/master/net/stubby/files/README.md for more details.
36 endef
37
38 define Package/stubby
39 $(call Package/stubby/Default)
40 SECTION:=net
41 CATEGORY:=Network
42 SUBMENU:=IP Addresses and Names
43 TITLE+= - (daemon that uses getdns)
44 USERID:=stubby=410:stubby=410
45 DEPENDS:= +libyaml +getdns
46 endef
47
48 define Package/stubby/install
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stubby $(1)/usr/sbin/stubby
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(INSTALL_BIN) ./files/stubby.init $(1)/etc/init.d/stubby
53 $(INSTALL_DIR) $(1)/etc/stubby
54 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/stubby/stubby.yml $(1)/etc/stubby/stubby.yml.default
55 $(INSTALL_DATA) ./files/stubby.yml $(1)/etc/stubby/stubby.yml
56 endef
57
58
59 define Package/stubby/conffiles
60 /etc/stubby/stubby.yml
61 endef
62
63 $(eval $(call BuildPackage,stubby))