1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
5 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE_URL
:=https
://github.com
/getdnsapi
/$(PKG_NAME
)
13 PKG_SOURCE_VERSION
:=v
$(PKG_VERSION
)
14 PKG_MIRROR_HASH
:=2fd0bc4db1d6f08be63e8f092939054a5e4e884db9a521d1033f89a8b3f5d132
17 PKG_LICENSE
:=BSD-3-Clause
18 PKG_LICENSE_FILES
:=COPYING
20 include $(INCLUDE_DIR
)/package.mk
21 include $(INCLUDE_DIR
)/cmake.mk
23 define Package
/stubby
/Default
25 URL
:=https
://dnsprivacy.org
/wiki
/display
/DP
/DNS
+Privacy
+Daemon
+-+Stubby
29 $(call Package
/stubby
/Default
)
32 SUBMENU
:=IP Addresses and Names
33 TITLE
+= - (daemon that uses getdns
)
34 USERID
:=stubby
=410:stubby
=410
35 DEPENDS
:= +libyaml
+getdns
+ca-certs
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.
43 define Package
/stubby
/conffiles
44 /etc
/stubby
/stubby.yml
48 # Disable static linking
49 CMAKE_OPTIONS
+= -DENABLE_GETDNS_STATIC_LINK
=OFF
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
63 $(eval
$(call BuildPackage
,stubby
))