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.

75 lines
1.9 KiB

nextdns: Update to version 1.4.23 Changelog: * Fix OpenWRT with existing forwarder + fix dnsmasq restore issue * Refactor service execution to better report errors * Refactor merlin tz setup so it does not need to curl on boot * Improve upgrade command for install.sh * Do not mask curl error on install * Fix timezone logging issue with Merlin * Add support for Merlin John's fork * Add raspbian support to installer * Fix upgrade not reinstalling service * Limit the aarch64 fix to merlin * Reset DHCP DNS to self on Merlin router setup * Fix memory issue with aarch64 based router * Update Go version * Allow override of detected env * Setup timezone correctly on Merlin init script * Don't ignore curl error on install * Fix Asus Merlin John’s fork trust store issue * Fix synology auto setup * Fix report client info not enabled with setup-router option * Add support for edgeos DHCP lease file locations * Fix signal handling when running as a service * Fix exit menu keyboard shortcut * Do not fail on upgrade if uninstall failed * Fix exit menu in installer * Remove failing upx (for now) * Make sure nextdns keeps running once ssh session is closed * Add auto setup of Synology with DHCP server enabled * Use router's DNS to discover more names * Get A/AAAA from both answer and addition sections * Ignore certain invalid names during discovery * Fix activate with setup-router * Fix serveral install issues * Add exponential backoff to mdns probe retry * Correctly end dhcp lease probing when discovery is cancelled * Store DHCP/MDNS discovered addrs separately to avoid ping/pong discovery * Add DHCP lease support to client discovery * Do not report mdns listen unreachable error as start will retry * Reimplement mdns client discovery * Fix installer GOARCH detection with arm6+ * Fix bin install on platforms needing sudo * Correctly detect edgeos and ddwrt as routers * Fix install.sh sudo * Disable upx as it break many platforms * Fix installer regression with merlin * Fix mips64 detection * Fix OpenWRT detection * Fix UPX post build script * Fix install with John's Asuswrt-Merlin fork * Fix more DDWRT * Fix DDWRT support * Fix merlin service add/remove * Use UPX to compress binaries typicially used on routers * Revert "Remove direct dep on reflect" * Use letters for installer menus * Fix install script for upgrades not working if binary is running * Do not return an error on mdns listen if at least one interface worked * Fix installer for synology * Fix pfSense support * Remove the logs for each server on each connect * Move install instructions to wiki * Fix install.sh uid detection with merlin * Fix install.sh for arm6+ * Add Synology init system support * Fix install.sh * Add a generic router setup that just changes the listen to public * Update README * Add auto setup support for EdgeOS * Restore per OS install instruction in readme during installer beta * Refactor install.sh * Remove dep on golang.org/x/net/ipv[4|6] * Remove direct dep on reflect * Rewrite the zeroconf code to use dnsmessage instead miekg/dns * Add auto setup support for DD-WRT * Improve arch detection * Add auto setup support for OpenWRT * Add automatic router setup support * Fix service * Remove dep en seq on sysv style init scripts * Add Entware init system support * Report init system used on install and in UA * Add EdgeOS support * Reads /etc/hosts before forwarding queries to the upstream * Fix localhost resolution with Linux arch empty /etc/hosts * Use /etc/hosts file to resolve listen address and list on all IPs listed * Add support for multiple router firmware * Fix hardened privacy disabling dual stack * Add a config set sub command and refactor commands handling * Add support for activate on freebsd * Fix inverted MAC matching * Add unit test for conf prefix match #35 * Activate uses listen address instead of static 127.0.0.1 * Improve FreeBSD integration * Add FreeBSD support * Fix a typo * Use zip for windows archive Signed-off-by: Olivier Poitrey <rs@nextdns.io> Edited PKG_RELEASE to 1 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
5 years ago
  1. #
  2. # Copyright (C) 2019 NextDNS Inc
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=nextdns
  9. PKG_VERSION:=1.4.33
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  13. PKG_SOURCE_URL:=https://github.com/nextdns/nextdns.git
  14. PKG_MIRROR_HASH:=00f10a0680d65d5dfd7777cd74c5662d4462cdc52fe77d26537ebefbe0117c2e
  15. PKG_MAINTAINER:=Olivier Poitrey <rs@nextdns.io>
  16. PKG_LICENSE:=MIT
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_BUILD_DEPENDS:=golang/host
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_USE_MIPS16:=0
  21. GO_PKG:=github.com/nextdns/nextdns
  22. GO_PKG_LDFLAGS:=-s -w
  23. GO_PKG_LDFLAGS_X:=main.version=$(PKG_VERSION)
  24. include $(INCLUDE_DIR)/package.mk
  25. include ../../lang/golang/golang-package.mk
  26. define Package/nextdns
  27. SECTION:=net
  28. CATEGORY:=Network
  29. TITLE:=NextDNS DNS over HTTPS Proxy
  30. URL:=https://github.com/nextdns/nextdns
  31. DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle
  32. endef
  33. define Package/nextdns/install
  34. $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
  35. $(INSTALL_DIR) $(1)/usr/sbin
  36. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nextdns $(1)/usr/sbin/
  37. $(INSTALL_DIR) $(1)/etc/init.d
  38. $(INSTALL_BIN) ./files/nextdns.init $(1)/etc/init.d/nextdns
  39. $(INSTALL_DIR) $(1)/etc/config
  40. $(INSTALL_CONF) ./files/nextdns.config $(1)/etc/config/nextdns
  41. endef
  42. define Package/nextdns/description
  43. Official NextDNS DNS over HTTPS Proxy.
  44. endef
  45. define Package/golang-github-nextdns-nextdns-dev
  46. $(call Package/nextdns)
  47. $(call GoPackage/GoSubMenu)
  48. TITLE+= (source files)
  49. PKGARCH:=all
  50. endef
  51. define Package/golang-github-nextdns-nextdns-dev/description
  52. $(call Package/nextdns/description)
  53. This package provides the source files for the client/bridge program.
  54. endef
  55. $(eval $(call GoBinPackage,nextdns))
  56. $(eval $(call BuildPackage,nextdns))
  57. $(eval $(call GoSrcPackage,golang-github-nextdns-nextdns-dev))
  58. $(eval $(call BuildPackage,golang-github-nextdns-nextdns-dev))