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.

70 lines
1.9 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.2.4
  7. PKG_RELEASE:=1
  8. PKG_LICENSE:=BSD-3-Clause
  9. PKG_LICENSE_FILES:=COPYING
  10. PKG_MAINTAINER:=Jonathan Underwood <jonathan.underwood@gmail.com>
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=https://github.com/getdnsapi/$(PKG_NAME)
  14. PKG_SOURCE_VERSION:=58200cadec6371f95e31a7f3735225c5a46ecf75
  15. PKG_MIRROR_HASH:=28c46f4464cb41cf59264d10da63dc25ece9a1d00b4dfb05a9276594658e5eb9
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.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-certificates
  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. 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_DATA) ./files/stubby.conf $(1)/etc/config/stubby
  49. endef
  50. define Package/stubby/conffiles
  51. /etc/stubby/stubby.yml
  52. /etc/config/stubby
  53. endef
  54. $(eval $(call BuildPackage,stubby))