Browse Source

knot: upgrade to 2.5.3

Update the default config file to reflect the server changes.
Remove no longer applicable patch.

Signed-off-by: Daniel Salzman <daniel.salzman@nic.cz>
lilik-openwrt-22.03
Daniel Salzman 7 years ago
parent
commit
4e79fa8059
3 changed files with 16 additions and 21 deletions
  1. +4
    -5
      net/knot/Makefile
  2. +12
    -1
      net/knot/patches/02_knot.conf.patch
  3. +0
    -15
      net/knot/patches/03_contrib_files.patch

+ 4
- 5
net/knot/Makefile View File

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=knot PKG_NAME:=knot
PKG_VERSION:=2.3.3
PKG_VERSION:=2.5.3
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://secure.nic.cz/files/knot-dns/ PKG_SOURCE_URL:=https://secure.nic.cz/files/knot-dns/
PKG_HASH:=a929bce3b957a81776b1db7b43b0e4473339bf16be8dbba5abb4b0593bf43c94
PKG_HASH:=d78ae231a68ace264f5738c8e57481923bcad7413f3f440c06fa6cc0aded9d8e
PKG_MAINTAINER:=Daniel Salzman <daniel.salzman@nic.cz> PKG_MAINTAINER:=Daniel Salzman <daniel.salzman@nic.cz>
PKG_LICENSE:=GPL-3.0 LGPL-2.0 0BSD MIT OLDAP-2.8 PKG_LICENSE:=GPL-3.0 LGPL-2.0 0BSD MIT OLDAP-2.8
@ -44,7 +44,7 @@ endef
define Package/knot-libs define Package/knot-libs
$(call Package/knot-lib/Default) $(call Package/knot-lib/Default)
TITLE+= common DNS and DNSSEC libraries TITLE+= common DNS and DNSSEC libraries
DEPENDS+=+libgnutls +jansson
DEPENDS+=+libgnutls
endef endef
define Package/knot-libzscanner define Package/knot-libzscanner
@ -151,8 +151,7 @@ CONFIGURE_ARGS += \
--with-rundir=/var/run/knot \ --with-rundir=/var/run/knot \
--with-storage=/var/lib/knot \ --with-storage=/var/lib/knot \
--with-configdir=/etc/knot \ --with-configdir=/etc/knot \
--with-timer-mapsize=50 \
--with-conf-mapsize=50
--with-conf-mapsize=20
TARGET_CFLAGS += -DPSELECT_COMPAT -DNDEBUG TARGET_CFLAGS += -DPSELECT_COMPAT -DNDEBUG


+ 12
- 1
net/knot/patches/02_knot.conf.patch View File

@ -1,5 +1,5 @@
diff --git a/samples/knot.sample.conf.in b/samples/knot.sample.conf.in diff --git a/samples/knot.sample.conf.in b/samples/knot.sample.conf.in
index e07c8a7..ecc13ad 100644
index e07c8a7..8e057b0 100644
--- a/samples/knot.sample.conf.in --- a/samples/knot.sample.conf.in
+++ b/samples/knot.sample.conf.in +++ b/samples/knot.sample.conf.in
@@ -9,7 +9,7 @@ server: @@ -9,7 +9,7 @@ server:
@ -11,3 +11,14 @@ index e07c8a7..ecc13ad 100644
log: log:
# Log info and more serious events to syslog. # Log info and more serious events to syslog.
@@ -33,7 +33,9 @@ acl:
# action: notify
template:
-# - id: default
+ - id: default
+ max-journal-db-size: 20M
+ max-timer-db-size: 5M
# storage: "@storage_dir@"
zone:

+ 0
- 15
net/knot/patches/03_contrib_files.patch View File

@ -1,15 +0,0 @@
diff --git a/src/contrib/files.c b/src/contrib/files.c
index 8aee482..12f36ca 100644
--- a/src/contrib/files.c
+++ b/src/contrib/files.c
@@ -24,6 +24,10 @@
#include <sys/stat.h>
#include <unistd.h>
+#ifndef O_NOFOLLOW
+#define O_NOFOLLOW 0
+#endif
+
static bool special_name(const char *name)
{
return strcmp(name, ".") == 0 || strcmp(name, "..") == 0;

Loading…
Cancel
Save