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.

63 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. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/stubby/Default
  20. TITLE:=stubby
  21. URL:=https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby
  22. endef
  23. define Package/stubby
  24. $(call Package/stubby/Default)
  25. SECTION:=net
  26. CATEGORY:=Network
  27. SUBMENU:=IP Addresses and Names
  28. TITLE+= - (daemon that uses getdns)
  29. USERID:=stubby=410:stubby=410
  30. DEPENDS:= +libyaml +getdns +ca-certs
  31. endef
  32. define Package/stubby/description
  33. This package contains the Stubby daemon (which utilizes the getdns library).
  34. See https://github.com/openwrt/packages/blob/master/net/stubby/files/README.md for more details.
  35. endef
  36. define Package/stubby/conffiles
  37. /etc/stubby/stubby.yml
  38. /etc/config/stubby
  39. endef
  40. define Package/stubby/install
  41. $(INSTALL_DIR) $(1)/usr/sbin
  42. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stubby $(1)/usr/sbin/stubby
  43. $(INSTALL_DIR) $(1)/etc/init.d
  44. $(INSTALL_BIN) ./files/stubby.init $(1)/etc/init.d/stubby
  45. $(INSTALL_DIR) $(1)/etc/stubby
  46. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/stubby/stubby.yml $(1)/etc/stubby/stubby.yml.default
  47. $(INSTALL_DATA) ./files/stubby.yml $(1)/etc/stubby/stubby.yml
  48. $(INSTALL_DIR) $(1)/etc/config
  49. $(INSTALL_CONF) ./files/stubby.conf $(1)/etc/config/stubby
  50. endef
  51. $(eval $(call BuildPackage,stubby))