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.4.0
  7. PKG_RELEASE:=6
  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:=bc5f604da1b70287a6c3d89eac2e13ce8bca52840e7b72ab098a3deeb9935082
  12. PKG_MAINTAINER:=
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_LICENSE_FILES:=COPYING
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/cmake.mk
  17. define Package/stubby/Default
  18. TITLE:=stubby
  19. URL:=https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby
  20. endef
  21. define Package/stubby
  22. $(call Package/stubby/Default)
  23. SECTION:=net
  24. CATEGORY:=Network
  25. SUBMENU:=IP Addresses and Names
  26. TITLE+= - (daemon that uses getdns)
  27. USERID:=stubby=410:stubby=410
  28. DEPENDS:= +libyaml +getdns +ca-certs
  29. endef
  30. define Package/stubby/description
  31. This package contains the Stubby daemon (which utilizes the getdns library).
  32. See https://github.com/openwrt/packages/blob/master/net/stubby/files/README.md for more details.
  33. endef
  34. define Package/stubby/conffiles
  35. /etc/stubby/stubby.yml
  36. /etc/config/stubby
  37. endef
  38. # Disable static linking
  39. CMAKE_OPTIONS += -DENABLE_GETDNS_STATIC_LINK=OFF
  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))