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.7 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:=1
  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/description
  24. This package contains the Stubby daemon (which utilizes the getdns library).
  25. See https://github.com/openwrt/packages/blob/master/net/stubby/files/README.md for more details.
  26. endef
  27. define Package/stubby
  28. $(call Package/stubby/Default)
  29. SECTION:=net
  30. CATEGORY:=Network
  31. SUBMENU:=IP Addresses and Names
  32. TITLE+= - (daemon that uses getdns)
  33. USERID:=stubby=410:stubby=410
  34. DEPENDS:= +libyaml +getdns
  35. endef
  36. define Package/stubby/install
  37. $(INSTALL_DIR) $(1)/usr/sbin
  38. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stubby $(1)/usr/sbin/stubby
  39. $(INSTALL_DIR) $(1)/etc/init.d
  40. $(INSTALL_BIN) ./files/stubby.init $(1)/etc/init.d/stubby
  41. $(INSTALL_DIR) $(1)/etc/stubby
  42. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/stubby/stubby.yml $(1)/etc/stubby/stubby.yml.default
  43. $(INSTALL_DATA) ./files/stubby.yml $(1)/etc/stubby/stubby.yml
  44. endef
  45. define Package/stubby/conffiles
  46. /etc/stubby/stubby.yml
  47. endef
  48. $(eval $(call BuildPackage,stubby))