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.

59 lines
1.5 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.1
  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:=v$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/getdnsapi/stubby/archive/
  13. PKG_HASH:=adf030a55426918933870f2d49a0caed93023bb1ec806efb255c3e7494985821
  14. PKG_FIXUP:=autoreconf
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.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/description
  22. This package contains the Stubby daemon (which utilizes the getdns library).
  23. endef
  24. define Package/stubby
  25. $(call Package/stubby/Default)
  26. SECTION:=net
  27. CATEGORY:=Network
  28. SUBMENU:=IP Addresses and Names
  29. TITLE+= - (daemon that uses getdns)
  30. USERID:=stubby=410:stubby=410
  31. DEPENDS:= +libyaml +getdns
  32. endef
  33. define Package/stubby/install
  34. $(INSTALL_DIR) $(1)/usr/sbin
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stubby $(1)/usr/sbin/stubby
  36. $(INSTALL_DIR) $(1)/etc/init.d
  37. $(INSTALL_BIN) ./files/stubby.init $(1)/etc/init.d/stubby
  38. $(INSTALL_DIR) $(1)/etc/stubby
  39. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/stubby/stubby.yml $(1)/etc/stubby/stubby.yml.default
  40. $(INSTALL_DATA) ./files/stubby.yml $(1)/etc/stubby/stubby.yml
  41. endef
  42. define Package/stubby/conffiles
  43. /etc/stubby/stubby.yml
  44. endef
  45. $(eval $(call BuildPackage,stubby))