You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.8 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=stubby
  6. PKG_VERSION:=0.3.0
  7. PKG_RELEASE:=1
  8. PKG_SOURCE_PROTO:=git
  9. PKG_SOURCE_URL:=https://github.com/getdnsapi/$(PKG_NAME)
  10. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  11. PKG_MIRROR_HASH:=f1585aa6881bf39c2c8f99df045d5739bb78403417a1e827644cb202fa4280f0
  12. PKG_MAINTAINER:=Jonathan Underwood <jonathan.underwood@gmail.com>
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_LICENSE_FILES:=COPYING
  15. CMAKE_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../devel/ninja/ninja-cmake.mk
  18. define Package/stubby/Default
  19. TITLE:=stubby
  20. URL:=https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby
  21. endef
  22. define Package/stubby
  23. $(call Package/stubby/Default)
  24. SECTION:=net
  25. CATEGORY:=Network
  26. SUBMENU:=IP Addresses and Names
  27. TITLE+= - (daemon that uses getdns)
  28. USERID:=stubby=410:stubby=410
  29. DEPENDS:= +libyaml +getdns +ca-certs
  30. endef
  31. define Package/stubby/description
  32. This package contains the Stubby daemon (which utilizes the getdns library).
  33. See https://github.com/openwrt/packages/blob/master/net/stubby/files/README.md for more details.
  34. endef
  35. define Package/stubby/conffiles
  36. /etc/stubby/stubby.yml
  37. /etc/config/stubby
  38. endef
  39. define Package/stubby/install
  40. $(INSTALL_DIR) $(1)/usr/sbin
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stubby $(1)/usr/sbin/stubby
  42. $(INSTALL_DIR) $(1)/etc/init.d
  43. $(INSTALL_BIN) ./files/stubby.init $(1)/etc/init.d/stubby
  44. $(INSTALL_DIR) $(1)/etc/stubby
  45. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/stubby/stubby.yml $(1)/etc/stubby/stubby.yml.default
  46. $(INSTALL_DATA) ./files/stubby.yml $(1)/etc/stubby/stubby.yml
  47. $(INSTALL_DIR) $(1)/etc/config
  48. $(INSTALL_CONF) ./files/stubby.conf $(1)/etc/config/stubby
  49. endef
  50. $(eval $(call BuildPackage,stubby))