diff options
author | Jakub Ružička <jakub.ruzicka@nic.cz> | 2024-05-24 13:52:52 +0200 |
---|---|---|
committer | Oto Šťáva <oto.stava@nic.cz> | 2024-05-29 12:05:42 +0200 |
commit | 8420c47adad12baf3a1d02f05ee8dd81c4304850 (patch) | |
tree | 5adf09ab5d6a61c65df458382e84e7257521510b /distro | |
parent | Merge branch 'dnsssec-false' into 'master' (diff) | |
download | knot-resolver-8420c47adad12baf3a1d02f05ee8dd81c4304850.tar.xz knot-resolver-8420c47adad12baf3a1d02f05ee8dd81c4304850.zip |
distro/pkg/deb: use knot-resolver6 prefix
Prevent accidental upgrades from v5.
Merge -core and -manager subpackages back into knot-resolver6.
Diffstat (limited to 'distro')
-rw-r--r-- | distro/pkg/deb/control | 50 | ||||
-rw-r--r-- | distro/pkg/deb/knot-resolver-core.manpages | 1 | ||||
-rw-r--r-- | distro/pkg/deb/knot-resolver-manager.install | 4 | ||||
-rw-r--r-- | distro/pkg/deb/knot-resolver6-module-dnstap.install (renamed from distro/pkg/deb/knot-resolver-module-dnstap.install) | 0 | ||||
-rw-r--r-- | distro/pkg/deb/knot-resolver6-module-http.install (renamed from distro/pkg/deb/knot-resolver-module-http.install) | 0 | ||||
-rw-r--r-- | distro/pkg/deb/knot-resolver6-module-http.links (renamed from distro/pkg/deb/knot-resolver-module-http.links) | 0 | ||||
-rw-r--r-- | distro/pkg/deb/knot-resolver6.dirs (renamed from distro/pkg/deb/knot-resolver-core.dirs) | 0 | ||||
-rw-r--r-- | distro/pkg/deb/knot-resolver6.docs (renamed from distro/pkg/deb/knot-resolver-core.docs) | 0 | ||||
-rw-r--r-- | distro/pkg/deb/knot-resolver6.install (renamed from distro/pkg/deb/knot-resolver-core.install) | 22 | ||||
-rw-r--r-- | distro/pkg/deb/knot-resolver6.links (renamed from distro/pkg/deb/knot-resolver-manager.links) | 0 | ||||
-rw-r--r-- | distro/pkg/deb/knot-resolver6.manpages (renamed from distro/pkg/deb/knot-resolver-manager.manpages) | 1 | ||||
-rw-r--r-- | distro/pkg/deb/knot-resolver6.postinst (renamed from distro/pkg/deb/knot-resolver-core.postinst) | 0 | ||||
-rw-r--r-- | distro/pkg/deb/knot-resolver6.postrm (renamed from distro/pkg/deb/knot-resolver-core.postrm) | 0 | ||||
-rwxr-xr-x | distro/pkg/deb/rules | 21 |
14 files changed, 39 insertions, 60 deletions
diff --git a/distro/pkg/deb/control b/distro/pkg/deb/control index 55ab26b6..7a240682 100644 --- a/distro/pkg/deb/control +++ b/distro/pkg/deb/control @@ -28,47 +28,33 @@ Build-Depends: libssl-dev, Homepage: https://www.knot-resolver.cz/ -Package: knot-resolver-manager +Package: knot-resolver6 Architecture: any -Provides: - knot-resolver6, Depends: - knot-resolver-core (= ${binary:Version}), + adduser, + dns-root-data, python3-aiohttp, python3-jinja2, python3-yaml, supervisor, - ${misc:Depends}, - ${python3:Depends}, -Recommends: - python3-prometheus-client, -Section: python -Description: caching, DNSSEC-validating DNS resolver - config manager - Knot Resolver is a caching full resolver implementation written in C and - LuaJIT, including both a resolver library and a daemon. - . - This package contains Knot Resolver Manager - a configuration tool for Knot - Resolver. The Manager hides the complexity of running several independent - resolver processes while ensuring zero-downtime reconfiguration with YAML/JSON - declarative configuration and an optional HTTP API for dynamic changes. - -Package: knot-resolver-core -Architecture: any -Depends: - adduser, - dns-root-data, systemd, ${misc:Depends}, ${shlibs:Depends}, + ${python3:Depends}, Breaks: knot-resolver (<< 6), + knot-resolver-core (<< 6.0.8), + knot-resolver-manager (<< 6.0.8), Replaces: knot-resolver (<< 6), + knot-resolver-core (<< 6.0.8), + knot-resolver-manager (<< 6.0.8), Recommends: lua-basexx, lua-cqueues, lua-http, lua-psl, + python3-prometheus-client, Suggests: knot-resolver-module-http, Description: caching, DNSSEC-validating DNS resolver - core binaries @@ -88,12 +74,14 @@ Description: caching, DNSSEC-validating DNS resolver - core binaries MVCC cache that may be shared). You can start and stop additional nodes depending on the contention without downtime. . - This package contains the core resolver binaries. + Knot Resolver Manager hides the complexity of running several independent + resolver processes while ensuring zero-downtime reconfiguration with YAML/JSON + declarative configuration and an optional HTTP API for dynamic changes. -Package: knot-resolver-core-dbg +Package: knot-resolver6-dbg Architecture: any Depends: - knot-resolver-core (= ${binary:Version}), + knot-resolver6 (= ${binary:Version}), ${misc:Depends} Recommends: gdb Section: debug @@ -102,11 +90,11 @@ Description: Debug symbols for Knot Resolver This package provides the debug symbols for Knot Resolver needed for properly debugging errors in Knot Resolver with gdb. -Package: knot-resolver-module-dnstap +Package: knot-resolver6-module-dnstap Architecture: any Multi-Arch: same Depends: - knot-resolver-core (= ${binary:Version}), + knot-resolver6 (= ${binary:Version}), libfstrm0, libprotobuf-c1, ${misc:Depends}, @@ -122,10 +110,10 @@ Description: dnstap module for Knot Resolver This package contains dnstap module for logging DNS responses to a unix socket in dnstap format. -Package: knot-resolver-module-http +Package: knot-resolver6-module-http Architecture: all Depends: - knot-resolver-core (= ${binary:Version}), + knot-resolver6 (= ${binary:Version}), libjs-bootstrap, libjs-d3, libjs-jquery, @@ -135,8 +123,6 @@ Depends: systemd, ${misc:Depends}, ${shlibs:Depends}, -Breaks: - knot-resolver-module-tinyweb (<< 1.1.0~git20160713-1~), Description: HTTP module for Knot Resolver The Knot Resolver is a caching full resolver implementation written in C and LuaJIT, including both a resolver library and a diff --git a/distro/pkg/deb/knot-resolver-core.manpages b/distro/pkg/deb/knot-resolver-core.manpages deleted file mode 100644 index f9ca908f..00000000 --- a/distro/pkg/deb/knot-resolver-core.manpages +++ /dev/null @@ -1 +0,0 @@ -debian/tmp/usr/share/man/man8/kresd.8* diff --git a/distro/pkg/deb/knot-resolver-manager.install b/distro/pkg/deb/knot-resolver-manager.install deleted file mode 100644 index 91068501..00000000 --- a/distro/pkg/deb/knot-resolver-manager.install +++ /dev/null @@ -1,4 +0,0 @@ -etc/knot-resolver/config.yaml -usr/lib/systemd/system/knot-resolver.service -usr/share/bash-completion/completions/kresctl -usr/share/fish/completions/kresctl.fish diff --git a/distro/pkg/deb/knot-resolver-module-dnstap.install b/distro/pkg/deb/knot-resolver6-module-dnstap.install index ae5404e0..ae5404e0 100644 --- a/distro/pkg/deb/knot-resolver-module-dnstap.install +++ b/distro/pkg/deb/knot-resolver6-module-dnstap.install diff --git a/distro/pkg/deb/knot-resolver-module-http.install b/distro/pkg/deb/knot-resolver6-module-http.install index ffa04d01..ffa04d01 100644 --- a/distro/pkg/deb/knot-resolver-module-http.install +++ b/distro/pkg/deb/knot-resolver6-module-http.install diff --git a/distro/pkg/deb/knot-resolver-module-http.links b/distro/pkg/deb/knot-resolver6-module-http.links index 4963c5cb..4963c5cb 100644 --- a/distro/pkg/deb/knot-resolver-module-http.links +++ b/distro/pkg/deb/knot-resolver6-module-http.links diff --git a/distro/pkg/deb/knot-resolver-core.dirs b/distro/pkg/deb/knot-resolver6.dirs index f8981d8d..f8981d8d 100644 --- a/distro/pkg/deb/knot-resolver-core.dirs +++ b/distro/pkg/deb/knot-resolver6.dirs diff --git a/distro/pkg/deb/knot-resolver-core.docs b/distro/pkg/deb/knot-resolver6.docs index 8e919d0c..8e919d0c 100644 --- a/distro/pkg/deb/knot-resolver-core.docs +++ b/distro/pkg/deb/knot-resolver6.docs diff --git a/distro/pkg/deb/knot-resolver-core.install b/distro/pkg/deb/knot-resolver6.install index 1e57ac9b..29d23032 100644 --- a/distro/pkg/deb/knot-resolver-core.install +++ b/distro/pkg/deb/knot-resolver6.install @@ -1,34 +1,38 @@ +etc/knot-resolver/config.yaml usr/lib/*.so.* -usr/lib/tmpfiles.d/knot-resolver.conf -usr/lib/knot-resolver/*.so usr/lib/knot-resolver/*.lua +usr/lib/knot-resolver/*.so usr/lib/knot-resolver/kres_modules/bogus_log.so -usr/lib/knot-resolver/kres_modules/edns_keepalive.so -usr/lib/knot-resolver/kres_modules/extended_error.so -usr/lib/knot-resolver/kres_modules/hints.so -usr/lib/knot-resolver/kres_modules/nsid.so -usr/lib/knot-resolver/kres_modules/refuse_nord.so -usr/lib/knot-resolver/kres_modules/stats.so usr/lib/knot-resolver/kres_modules/daf.lua usr/lib/knot-resolver/kres_modules/daf/* usr/lib/knot-resolver/kres_modules/detect_time_jump.lua usr/lib/knot-resolver/kres_modules/detect_time_skew.lua usr/lib/knot-resolver/kres_modules/dns64.lua +usr/lib/knot-resolver/kres_modules/edns_keepalive.so usr/lib/knot-resolver/kres_modules/experimental_dot_auth.lua +usr/lib/knot-resolver/kres_modules/extended_error.so usr/lib/knot-resolver/kres_modules/graphite.lua +usr/lib/knot-resolver/kres_modules/hints.so +usr/lib/knot-resolver/kres_modules/nsid.so usr/lib/knot-resolver/kres_modules/policy.lua usr/lib/knot-resolver/kres_modules/predict.lua usr/lib/knot-resolver/kres_modules/prefetch.lua usr/lib/knot-resolver/kres_modules/prefill.lua usr/lib/knot-resolver/kres_modules/priming.lua usr/lib/knot-resolver/kres_modules/rebinding.lua +usr/lib/knot-resolver/kres_modules/refuse_nord.so usr/lib/knot-resolver/kres_modules/renumber.lua usr/lib/knot-resolver/kres_modules/serve_stale.lua +usr/lib/knot-resolver/kres_modules/stats.so usr/lib/knot-resolver/kres_modules/ta_sentinel.lua usr/lib/knot-resolver/kres_modules/ta_signal_query.lua usr/lib/knot-resolver/kres_modules/ta_update.lua usr/lib/knot-resolver/kres_modules/view.lua usr/lib/knot-resolver/kres_modules/watchdog.lua usr/lib/knot-resolver/kres_modules/workarounds.lua -usr/sbin/kresd +usr/lib/systemd/system/knot-resolver.service +usr/lib/tmpfiles.d/knot-resolver.conf usr/sbin/kres-cache-gc +usr/sbin/kresd +usr/share/bash-completion/completions/kresctl +usr/share/fish/completions/kresctl.fish diff --git a/distro/pkg/deb/knot-resolver-manager.links b/distro/pkg/deb/knot-resolver6.links index c5467e84..c5467e84 100644 --- a/distro/pkg/deb/knot-resolver-manager.links +++ b/distro/pkg/deb/knot-resolver6.links diff --git a/distro/pkg/deb/knot-resolver-manager.manpages b/distro/pkg/deb/knot-resolver6.manpages index a453f7e9..aa59efff 100644 --- a/distro/pkg/deb/knot-resolver-manager.manpages +++ b/distro/pkg/deb/knot-resolver6.manpages @@ -1 +1,2 @@ debian/tmp/usr/share/man/man8/kresctl.8* +debian/tmp/usr/share/man/man8/kresd.8* diff --git a/distro/pkg/deb/knot-resolver-core.postinst b/distro/pkg/deb/knot-resolver6.postinst index e9852987..e9852987 100644 --- a/distro/pkg/deb/knot-resolver-core.postinst +++ b/distro/pkg/deb/knot-resolver6.postinst diff --git a/distro/pkg/deb/knot-resolver-core.postrm b/distro/pkg/deb/knot-resolver6.postrm index e5814954..e5814954 100644 --- a/distro/pkg/deb/knot-resolver-core.postrm +++ b/distro/pkg/deb/knot-resolver6.postrm diff --git a/distro/pkg/deb/rules b/distro/pkg/deb/rules index cc925bf0..dff9df6f 100755 --- a/distro/pkg/deb/rules +++ b/distro/pkg/deb/rules @@ -10,17 +10,13 @@ export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -fno-omit-frame-pointer # package maintainers to append LDFLAGS export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -export PYKRES_NAME=knot_resolver -export PYKRES_DEST=debian/knot-resolver-core/ -export KRES_MANAGER_NAME=knot_resolver_manager -export KRES_MANAGER_DEST=debian/knot-resolver-manager/ +# include python modules in main package +export PYKRES_DESTDIR=debian/knot-resolver6/ # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk -export ARCH=$(DEB_HOST_GNU_CPU) - %: dh $@ --with python3 @@ -39,16 +35,16 @@ override_dh_auto_build: -Dc_args="$${CFLAGS}" \ -Dc_link_args="$${LDFLAGS}" ninja -v -C build_deb - PYBUILD_NAME="$${PYKRES_NAME}" PYBUILD_DESTDIR="$${PYKRES_DEST}" \ + PYBUILD_NAME=knot_resolver PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" \ dh_auto_build --buildsystem=pybuild --sourcedirectory build_deb/python - PYBUILD_NAME="$${KRES_MANAGER_NAME}" PYBUILD_DESTDIR="$${KRES_MANAGER_DEST}" \ + PYBUILD_NAME=knot_resoolver_manager PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" \ dh_auto_build --buildsystem=pybuild --sourcedirectory manager override_dh_auto_install: DESTDIR="${PWD}/debian/tmp" ninja -v -C build_deb install - PYBUILD_NAME="$${PYKRES_NAME}" PYBUILD_DESTDIR="$${PYKRES_DEST}" \ + PYBUILD_NAME=knot_resolver PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" \ dh_auto_install --buildsystem=pybuild --sourcedirectory build_deb/python - PYBUILD_NAME="$${KRES_MANAGER_NAME}" PYBUILD_DESTDIR="$${KRES_MANAGER_DEST}" \ + PYBUILD_NAME=knot_resolver_manager PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" \ dh_auto_install --buildsystem=pybuild --sourcedirectory manager install -m 644 -D manager/etc/knot-resolver/config.yaml debian/tmp/etc/knot-resolver/config.yaml install -m 644 -D manager/shell-completion/client.bash debian/tmp/usr/share/bash-completion/completions/kresctl @@ -57,8 +53,5 @@ override_dh_auto_install: override_dh_auto_test: meson test -C build_deb -override_dh_missing: - dh_missing --fail-missing - override_dh_strip: - dh_strip --dbg-package=knot-resolver-core-dbg + dh_strip --dbg-package=knot-resolver6-dbg |