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.3
  7. PKG_RELEASE:=3
  8. PKG_LICENSE:=BSD-3-Clause
  9. PKG_LICENSE_FILES:=COPYING
  10. PKG_MAINTAINER:=David Mora <iamperson347+public@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:=8fb853ac8d6148fd9b53fdcbc107ecd375071ec5
  15. PKG_MIRROR_HASH:=db736f4a728970d2441009ac19716d6129700eab3f441a5db3a0c26d41bf162c
  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))