stubby: bump to 0.4.3
[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.4.3
9 PKG_RELEASE:=1
10
11 PKG_SOURCE_PROTO:=git
12 PKG_SOURCE_URL:=https://github.com/getdnsapi/$(PKG_NAME)
13 PKG_SOURCE_VERSION:=v$(PKG_VERSION)
14 PKG_MIRROR_HASH:=2fd0bc4db1d6f08be63e8f092939054a5e4e884db9a521d1033f89a8b3f5d132
15
16 PKG_MAINTAINER:=
17 PKG_LICENSE:=BSD-3-Clause
18 PKG_LICENSE_FILES:=COPYING
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/cmake.mk
22
23 define Package/stubby/Default
24 TITLE:=stubby
25 URL:=https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby
26 endef
27
28 define Package/stubby
29 $(call Package/stubby/Default)
30 SECTION:=net
31 CATEGORY:=Network
32 SUBMENU:=IP Addresses and Names
33 TITLE+= - (daemon that uses getdns)
34 USERID:=stubby=410:stubby=410
35 DEPENDS:= +libyaml +getdns +ca-certs
36 endef
37
38 define Package/stubby/description
39 This package contains the Stubby daemon (which utilizes the getdns library).
40 See https://github.com/openwrt/packages/blob/master/net/stubby/files/README.md for more details.
41 endef
42
43 define Package/stubby/conffiles
44 /etc/stubby/stubby.yml
45 /etc/config/stubby
46 endef
47
48 # Disable static linking
49 CMAKE_OPTIONS += -DENABLE_GETDNS_STATIC_LINK=OFF
50
51 define Package/stubby/install
52 $(INSTALL_DIR) $(1)/usr/sbin
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stubby $(1)/usr/sbin/stubby
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/stubby.init $(1)/etc/init.d/stubby
56 $(INSTALL_DIR) $(1)/etc/stubby
57 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/stubby/stubby.yml $(1)/etc/stubby/stubby.yml.default
58 $(INSTALL_DATA) ./files/stubby.yml $(1)/etc/stubby/stubby.yml
59 $(INSTALL_DIR) $(1)/etc/config
60 $(INSTALL_CONF) ./files/stubby.conf $(1)/etc/config/stubby
61 endef
62
63 $(eval $(call BuildPackage,stubby))