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.

69 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.2.6
  7. PKG_RELEASE:=2
  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_URL:=https://github.com/getdnsapi/$(PKG_NAME)
  13. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  14. PKG_MIRROR_HASH:=af896c471ac67b31c2263d11fcdfcdb32a213621c2f8789f4b0a4ceca4437108
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.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. endef
  38. define Package/stubby/install
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stubby $(1)/usr/sbin/stubby
  41. $(INSTALL_DIR) $(1)/etc/init.d
  42. $(INSTALL_BIN) ./files/stubby.init $(1)/etc/init.d/stubby
  43. $(INSTALL_DIR) $(1)/etc/stubby
  44. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/stubby/stubby.yml $(1)/etc/stubby/stubby.yml.default
  45. $(INSTALL_DATA) ./files/stubby.yml $(1)/etc/stubby/stubby.yml
  46. $(INSTALL_DIR) $(1)/etc/config
  47. $(INSTALL_DATA) ./files/stubby.conf $(1)/etc/config/stubby
  48. endef
  49. define Package/stubby/conffiles
  50. /etc/stubby/stubby.yml
  51. /etc/config/stubby
  52. endef
  53. $(eval $(call BuildPackage,stubby))