distro: add deb-noxdp for deb distros without libbpf

This commit is contained in:
Daniel Salzman 2022-12-18 11:48:27 +01:00
parent b7ade832fc
commit 86ff9c60fc
40 changed files with 626 additions and 13 deletions

View file

@ -15,6 +15,10 @@ compat = 3
name = "el-7"
distro = ["centos == 7", "rhel == 7"]
[[distro.aliases]]
name = "_deb-noxdp"
distro = ["debian == 10", "ubuntu == 18.04"]
# pkstyle aliases bellow are expected to be built-in in apkg >= 0.5.0
# https://gitlab.nic.cz/packaging/apkg/-/issues/79
[[distro.aliases]]

View file

@ -0,0 +1 @@
../deb/changelog

1
distro/pkg/_deb-noxdp/clean Symbolic link
View file

@ -0,0 +1 @@
../deb/clean

View file

@ -0,0 +1 @@
../deb/compat

View file

@ -0,0 +1,272 @@
Source: knot
Section: net
Priority: optional
Maintainer: Knot DNS <knot-dns@labs.nic.cz>
Uploaders:
Jakub Ružička <jakub.ruzicka@nic.cz>,
Daniel Salzman <daniel.salzman@nic.cz>,
Build-Depends-Indep:
python3-setuptools,
python3-sphinx,
Build-Depends:
autoconf,
automake,
debhelper (>= 11),
dh-python,
libcap-ng-dev,
libedit-dev,
libelf-dev,
libfstrm-dev,
libgnutls28-dev,
libidn2-dev,
liblmdb-dev,
libmaxminddb-dev,
libmnl-dev,
libnghttp2-dev,
libprotobuf-c-dev,
libsofthsm2 <!nocheck>,
libsystemd-dev [linux-any] | libsystemd-daemon-dev [linux-any],
libsystemd-dev [linux-any] | libsystemd-journal-dev [linux-any],
libtool,
liburcu-dev,
pkg-config,
protobuf-c-compiler,
python3-all,
Standards-Version: 4.5.0
Homepage: https://www.knot-dns.cz/
Vcs-Browser: https://gitlab.nic.cz/knot/knot-dns
Vcs-Git: https://gitlab.nic.cz/knot/knot-dns.git
Rules-Requires-Root: no
Package: knot
Architecture: any
Depends:
adduser,
libdnssec9 (= ${binary:Version}),
libknot13 (= ${binary:Version}),
libzscanner4 (= ${binary:Version}),
lsb-base (>= 3.0-6),
${misc:Depends},
${shlibs:Depends},
Pre-Depends:
${misc:Pre-Depends},
Suggests:
systemd,
Description: Authoritative domain name server
Knot DNS is a fast, authoritative only, high performance, feature
full and open source name server.
.
Knot DNS is developed by CZ.NIC Labs, the R&D department of .CZ
registry and hence is well suited to run anything from the root
zone, the top-level domain, to many smaller standard domain names.
Package: libknot13
Architecture: any
Multi-Arch: same
Depends:
${misc:Depends},
${shlibs:Depends},
Section: libs
Description: DNS shared library from Knot DNS
Knot DNS is a fast, authoritative only, high performance, feature
full and open source name server.
.
Knot DNS is developed by CZ.NIC Labs, the R&D department of .CZ
registry and hence is well suited to run anything from the root
zone, the top-level domain, to many smaller standard domain names.
.
This package provides a DNS shared library used by Knot DNS and
Knot Resolver.
Package: libzscanner4
Architecture: any
Multi-Arch: same
Depends:
${misc:Depends},
${shlibs:Depends},
Section: libs
Description: DNS zone-parsing shared library from Knot DNS
Knot DNS is a fast, authoritative only, high performance, feature
full and open source name server.
.
Knot DNS is developed by CZ.NIC Labs, the R&D department of .CZ
registry and hence is well suited to run anything from the root
zone, the top-level domain, to many smaller standard domain names.
.
This package provides a fast zone parser shared library used by Knot
DNS and Knot Resolver.
Package: libdnssec9
Architecture: any
Multi-Arch: same
Depends:
${misc:Depends},
${shlibs:Depends},
Section: libs
Description: DNSSEC shared library from Knot DNS
Knot DNS is a fast, authoritative only, high performance, feature
full and open source name server.
.
Knot DNS is developed by CZ.NIC Labs, the R&D department of .CZ
registry and hence is well suited to run anything from the root
zone, the top-level domain, to many smaller standard domain names.
.
This package provides common DNSSEC shared library used by Knot DNS
and Knot Resolver.
Package: libknot-dev
Architecture: any
Depends:
libdnssec9 (= ${binary:Version}),
libgnutls28-dev,
libknot13 (= ${binary:Version}),
libzscanner4 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Section: libdevel
Description: Knot DNS shared library development files
Knot DNS is a fast, authoritative only, high performance, feature
full and open source name server.
.
Knot DNS is developed by CZ.NIC Labs, the R&D department of .CZ
registry and hence is well suited to run anything from the root
zone, the top-level domain, to many smaller standard domain names.
.
This package provides development files for shared libraries from Knot DNS.
Package: knot-dnsutils
Architecture: any
Depends:
libdnssec9 (= ${binary:Version}),
libknot13 (= ${binary:Version}),
libzscanner4 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: DNS clients provided with Knot DNS (kdig, knsupdate)
Knot DNS is a fast, authoritative only, high performance, feature
full and open source name server.
.
Knot DNS is developed by CZ.NIC Labs, the R&D department of .CZ
registry and hence is well suited to run anything from the root
zone, the top-level domain, to many smaller standard domain names.
.
This package delivers various DNS client programs from Knot DNS.
.
- kdig - query a DNS server in various ways
- knsupdate - perform dynamic updates (See RFC2136)
.
Those clients were designed to be almost 1:1 compatible with BIND dnsutils,
but they provide some enhancements, which are documented.
.
WARNING: knslookup is not provided as it is considered obsolete.
Package: knot-dnssecutils
Architecture: any
Depends:
libdnssec9 (= ${binary:Version}),
libknot13 (= ${binary:Version}),
libzscanner4 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: DNSSEC tools provided with Knot DNS
Knot DNS is a fast, authoritative only, high performance, feature
full and open source name server.
.
Knot DNS is developed by CZ.NIC Labs, the R&D department of .CZ
registry and hence is well suited to run anything from the root
zone, the top-level domain, to many smaller standard domain names.
.
This package delivers various DNSSEC tools from Knot DNS.
.
- kzonecheck
- kzonesign
- knsec3hash
Package: knot-host
Architecture: any
Depends:
libdnssec9 (= ${binary:Version}),
libknot13 (= ${binary:Version}),
libzscanner4 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: Version of 'host' bundled with Knot DNS
Knot DNS is a fast, authoritative only, high performance, feature
full and open source name server.
.
Knot DNS is developed by CZ.NIC Labs, the R&D department of .CZ
registry and hence is well suited to run anything from the root
zone, the top-level domain, to many smaller standard domain names.
.
This package provides the 'host' program from Knot DNS. This program is
designed to be almost 1:1 compatible with BIND 9.x 'host' program.
Package: knot-module-dnstap
Architecture: any
Multi-Arch: same
Depends:
knot (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: dnstap module for Knot DNS
Knot DNS is a fast, authoritative only, high performance, feature
full and open source name server.
.
Knot DNS is developed by CZ.NIC Labs, the R&D department of .CZ
registry and hence is well suited to run anything from the root
zone, the top-level domain, to many smaller standard domain names.
.
This package contains dnstap module for logging DNS traffic.
Package: knot-module-geoip
Architecture: any
Multi-Arch: same
Depends:
knot (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: geoip module for Knot DNS
Knot DNS is a fast, authoritative only, high performance, feature
full and open source name server.
.
Knot DNS is developed by CZ.NIC Labs, the R&D department of .CZ
registry and hence is well suited to run anything from the root
zone, the top-level domain, to many smaller standard domain names.
.
This package contains geoip module for geography-based responses.
Package: knot-doc
Architecture: all
Multi-Arch: foreign
Depends:
libjs-jquery,
libjs-sphinxdoc,
libjs-underscore,
${misc:Depends},
Section: doc
Description: Documentation for Knot DNS
Knot DNS is a fast, authoritative only, high performance, feature
full and open source name server.
.
Knot DNS is developed by CZ.NIC Labs, the R&D department of .CZ
registry and hence is well suited to run anything from the root
zone, the top-level domain, to many smaller standard domain names.
.
This package provides various documents that are useful for
maintaining a working Knot DNS installation.
Package: python3-libknot
Architecture: all
Depends:
${misc:Depends},
${python3:Depends},
Section: python
Description: Python bindings for libknot
Knot DNS is a fast, authoritative only, high performance, feature
full and open source name server.
.
Knot DNS is developed by CZ.NIC Labs, the R&D department of .CZ
registry and hence is well suited to run anything from the root
zone, the top-level domain, to many smaller standard domain names.
.
This package provides Python bindings for the libknot shared library.

View file

@ -0,0 +1 @@
../deb/copyright

View file

@ -0,0 +1 @@
../deb/cz.nic.knotd.conf

1
distro/pkg/_deb-noxdp/docs Symbolic link
View file

@ -0,0 +1 @@
../deb/docs

View file

@ -0,0 +1 @@
../deb/knot-dnssecutils.install

View file

@ -0,0 +1 @@
../deb/knot-dnssecutils.manpages

View file

@ -0,0 +1,2 @@
usr/bin/kdig
usr/bin/knsupdate

View file

@ -0,0 +1,2 @@
usr/share/man/man1/kdig.1
usr/share/man/man1/knsupdate.1

View file

@ -0,0 +1 @@
../deb/knot-doc.install

View file

@ -0,0 +1 @@
../deb/knot-doc.links

View file

@ -0,0 +1 @@
../deb/knot-host.install

View file

@ -0,0 +1 @@
../deb/knot-host.manpages

View file

@ -0,0 +1 @@
../deb/knot-module-dnstap.install

View file

@ -0,0 +1 @@
../deb/knot-module-geoip.install

View file

@ -0,0 +1 @@
../deb/knot.dirs

View file

@ -0,0 +1 @@
../deb/knot.init

View file

@ -0,0 +1 @@
../deb/knot.install

View file

@ -0,0 +1 @@
../deb/knot.manpages

View file

@ -0,0 +1 @@
../deb/knot.postinst

View file

@ -0,0 +1 @@
../deb/knot.postrm

View file

@ -0,0 +1 @@
../deb/knot.service

View file

@ -0,0 +1 @@
../deb/libdnssec9.install

View file

@ -0,0 +1 @@
../deb/libdnssec9.symbols

View file

@ -0,0 +1 @@
../deb/libknot-dev.install

View file

@ -0,0 +1 @@
../deb/libknot13.install

View file

@ -0,0 +1,223 @@
libknot.so.13 libknot13 #MINVER#
KNOT_DB_LMDB_DUPSORT@Base 3.2.0
KNOT_DB_LMDB_INTEGERKEY@Base 3.2.0
KNOT_DB_LMDB_MAPASYNC@Base 3.2.0
KNOT_DB_LMDB_NOSYNC@Base 3.2.0
KNOT_DB_LMDB_NOTLS@Base 3.2.0
KNOT_DB_LMDB_RDONLY@Base 3.2.0
KNOT_DB_LMDB_WRITEMAP@Base 3.2.0
KNOT_DUMP_STYLE_DEFAULT@Base 3.2.0
knot_ctl_accept@Base 3.2.0
knot_ctl_alloc@Base 3.2.0
knot_ctl_bind@Base 3.2.0
knot_ctl_close@Base 3.2.0
knot_ctl_connect@Base 3.2.0
knot_ctl_free@Base 3.2.0
knot_ctl_receive@Base 3.2.0
knot_ctl_send@Base 3.2.0
knot_ctl_set_timeout@Base 3.2.0
knot_ctl_unbind@Base 3.2.0
knot_db_lmdb_api@Base 3.2.0
knot_db_lmdb_del_exact@Base 3.2.0
knot_db_lmdb_get_mapsize@Base 3.2.0
knot_db_lmdb_get_path@Base 3.2.0
knot_db_lmdb_get_usage@Base 3.2.0
knot_db_lmdb_iter_del@Base 3.2.0
knot_db_lmdb_txn_begin@Base 3.2.0
knot_db_trie_api@Base 3.2.0
knot_dname_cmp@Base 3.2.0
knot_dname_copy@Base 3.2.0
knot_dname_copy_lower@Base 3.2.0
knot_dname_free@Base 3.2.0
knot_dname_from_str@Base 3.2.0
knot_dname_in_bailiwick@Base 3.2.0
knot_dname_is_case_equal@Base 3.2.0
knot_dname_is_equal@Base 3.2.0
knot_dname_labels@Base 3.2.0
knot_dname_lf@Base 3.2.0
knot_dname_matched_labels@Base 3.2.0
knot_dname_prefixlen@Base 3.2.0
knot_dname_realsize@Base 3.2.0
knot_dname_replace_suffix@Base 3.2.0
knot_dname_size@Base 3.2.0
knot_dname_store@Base 3.2.0
knot_dname_to_lower@Base 3.2.0
knot_dname_to_str@Base 3.2.0
knot_dname_to_wire@Base 3.2.0
knot_dname_unpack@Base 3.2.0
knot_dname_wire_check@Base 3.2.0
knot_dnssec_alg_names@Base 3.2.0
knot_edns_add_option@Base 3.2.0
knot_edns_alignment_size@Base 3.2.0
knot_edns_chain_parse@Base 3.2.0
knot_edns_chain_size@Base 3.2.0
knot_edns_chain_write@Base 3.2.0
knot_edns_client_subnet_get_addr@Base 3.2.0
knot_edns_client_subnet_parse@Base 3.2.0
knot_edns_client_subnet_set_addr@Base 3.2.0
knot_edns_client_subnet_size@Base 3.2.0
knot_edns_client_subnet_write@Base 3.2.0
knot_edns_cookie_client_check@Base 3.2.0
knot_edns_cookie_client_generate@Base 3.2.0
knot_edns_cookie_parse@Base 3.2.0
knot_edns_cookie_server_check@Base 3.2.0
knot_edns_cookie_server_generate@Base 3.2.0
knot_edns_cookie_size@Base 3.2.0
knot_edns_cookie_write@Base 3.2.0
knot_edns_ede_names@Base 3.2.0
knot_edns_get_ext_rcode@Base 3.2.0
knot_edns_get_option@Base 3.2.0
knot_edns_get_options@Base 3.2.0
knot_edns_get_version@Base 3.2.0
knot_edns_init@Base 3.2.0
knot_edns_keepalive_parse@Base 3.2.0
knot_edns_keepalive_size@Base 3.2.0
knot_edns_keepalive_write@Base 3.2.0
knot_edns_reserve_option@Base 3.2.0
knot_edns_set_ext_rcode@Base 3.2.0
knot_edns_set_version@Base 3.2.0
knot_error_from_libdnssec@Base 3.2.0
knot_get_obsolete_rdata_descriptor@Base 3.2.0
knot_get_rdata_descriptor@Base 3.2.0
knot_naptr_header_size@Base 3.2.0
knot_opcode_names@Base 3.2.0
knot_opt_code_to_string@Base 3.2.0
knot_pkt_begin@Base 3.2.0
knot_pkt_clear@Base 3.2.0
knot_pkt_copy@Base 3.2.0
knot_pkt_ext_rcode@Base 3.2.0
knot_pkt_ext_rcode_name@Base 3.2.0
knot_pkt_free@Base 3.2.0
knot_pkt_init_response@Base 3.2.0
knot_pkt_new@Base 3.2.0
knot_pkt_parse@Base 3.2.0
knot_pkt_parse_question@Base 3.2.0
knot_pkt_put_question@Base 3.2.0
knot_pkt_put_rotate@Base 3.2.0
knot_pkt_reclaim@Base 3.2.0
knot_pkt_reserve@Base 3.2.0
knot_probe_alloc@Base 3.2.0
knot_probe_consume@Base 3.2.0
knot_probe_data_set@Base 3.2.0
knot_probe_fd@Base 3.2.0
knot_probe_free@Base 3.2.0
knot_probe_produce@Base 3.2.0
knot_probe_set_consumer@Base 3.2.0
knot_probe_set_producer@Base 3.2.0
knot_probe_tcp_rtt@Base 3.2.0
knot_rcode_names@Base 3.2.0
knot_rdataset_add@Base 3.2.0
knot_rdataset_at@Base 3.2.0
knot_rdataset_clear@Base 3.2.0
knot_rdataset_copy@Base 3.2.0
knot_rdataset_eq@Base 3.2.0
knot_rdataset_intersect@Base 3.2.0
knot_rdataset_intersect2@Base 3.2.0
knot_rdataset_member@Base 3.2.0
knot_rdataset_merge@Base 3.2.0
knot_rdataset_subset@Base 3.2.0
knot_rdataset_subtract@Base 3.2.0
knot_rrclass_from_string@Base 3.2.0
knot_rrclass_to_string@Base 3.2.0
knot_rrset_add_rdata@Base 3.2.0
knot_rrset_clear@Base 3.2.0
knot_rrset_copy@Base 3.2.0
knot_rrset_equal@Base 3.2.0
knot_rrset_free@Base 3.2.0
knot_rrset_is_nsec3rel@Base 3.2.0
knot_rrset_new@Base 3.2.0
knot_rrset_rr_from_wire@Base 3.2.0
knot_rrset_rr_to_canonical@Base 3.2.0
knot_rrset_size@Base 3.2.0
knot_rrset_to_wire_extra@Base 3.2.0
knot_rrset_txt_dump@Base 3.2.0
knot_rrset_txt_dump_data@Base 3.2.0
knot_rrset_txt_dump_header@Base 3.2.0
knot_rrtype_additional_needed@Base 3.2.0
knot_rrtype_from_string@Base 3.2.0
knot_rrtype_is_dnssec@Base 3.2.0
knot_rrtype_is_metatype@Base 3.2.0
knot_rrtype_should_be_lowercased@Base 3.2.0
knot_rrtype_to_string@Base 3.2.0
knot_strerror@Base 3.2.0
knot_svcb_param_names@Base 3.2.0
knot_tcp_inbuf_update@Base 3.2.0
knot_tcp_outbufs_ack@Base 3.2.0
knot_tcp_outbufs_add@Base 3.2.0
knot_tcp_outbufs_can_send@Base 3.2.0
knot_tcp_outbufs_usage@Base 3.2.0
knot_tsig_add@Base 3.2.0
knot_tsig_append@Base 3.2.0
knot_tsig_client_check@Base 3.2.0
knot_tsig_client_check_next@Base 3.2.0
knot_tsig_create_rdata@Base 3.2.0
knot_tsig_key_copy@Base 3.2.0
knot_tsig_key_deinit@Base 3.2.0
knot_tsig_key_init@Base 3.2.0
knot_tsig_key_init_file@Base 3.2.0
knot_tsig_key_init_str@Base 3.2.0
knot_tsig_rcode_names@Base 3.2.0
knot_tsig_rdata_alg@Base 3.2.0
knot_tsig_rdata_alg_name@Base 3.2.0
knot_tsig_rdata_error@Base 3.2.0
knot_tsig_rdata_fudge@Base 3.2.0
knot_tsig_rdata_is_ok@Base 3.2.0
knot_tsig_rdata_mac@Base 3.2.0
knot_tsig_rdata_mac_length@Base 3.2.0
knot_tsig_rdata_orig_id@Base 3.2.0
knot_tsig_rdata_other_data@Base 3.2.0
knot_tsig_rdata_other_data_length@Base 3.2.0
knot_tsig_rdata_set_fudge@Base 3.2.0
knot_tsig_rdata_set_mac@Base 3.2.0
knot_tsig_rdata_set_orig_id@Base 3.2.0
knot_tsig_rdata_set_other_data@Base 3.2.0
knot_tsig_rdata_set_time_signed@Base 3.2.0
knot_tsig_rdata_time_signed@Base 3.2.0
knot_tsig_rdata_tsig_timers_length@Base 3.2.0
knot_tsig_rdata_tsig_variables_length@Base 3.2.0
knot_tsig_server_check@Base 3.2.0
knot_tsig_sign@Base 3.2.0
knot_tsig_sign_next@Base 3.2.0
knot_tsig_wire_maxsize@Base 3.2.0
knot_tsig_wire_size@Base 3.2.0
yp_addr@Base 3.2.0
yp_addr_noport@Base 3.2.0
yp_addr_noport_to_bin@Base 3.2.0
yp_addr_noport_to_txt@Base 3.2.0
yp_addr_range_to_bin@Base 3.2.0
yp_addr_range_to_txt@Base 3.2.0
yp_addr_to_bin@Base 3.2.0
yp_addr_to_txt@Base 3.2.0
yp_base64_to_bin@Base 3.2.0
yp_base64_to_txt@Base 3.2.0
yp_bool_to_bin@Base 3.2.0
yp_bool_to_txt@Base 3.2.0
yp_deinit@Base 3.2.0
yp_dname_to_bin@Base 3.2.0
yp_dname_to_txt@Base 3.2.0
yp_format_id@Base 3.2.0
yp_format_key0@Base 3.2.0
yp_format_key1@Base 3.2.0
yp_hex_to_bin@Base 3.2.0
yp_hex_to_txt@Base 3.2.0
yp_init@Base 3.2.0
yp_int_to_bin@Base 3.2.0
yp_int_to_txt@Base 3.2.0
yp_item_to_bin@Base 3.2.0
yp_item_to_txt@Base 3.2.0
yp_option_to_bin@Base 3.2.0
yp_option_to_txt@Base 3.2.0
yp_parse@Base 3.2.0
yp_schema_check_deinit@Base 3.2.0
yp_schema_check_init@Base 3.2.0
yp_schema_check_parser@Base 3.2.0
yp_schema_check_str@Base 3.2.0
yp_schema_copy@Base 3.2.0
yp_schema_find@Base 3.2.0
yp_schema_free@Base 3.2.0
yp_schema_merge@Base 3.2.0
yp_schema_purge_dynamic@Base 3.2.0
yp_set_input_file@Base 3.2.0
yp_set_input_string@Base 3.2.0
yp_str_to_bin@Base 3.2.0
yp_str_to_txt@Base 3.2.0

View file

@ -0,0 +1 @@
../deb/libzscanner4.install

View file

@ -0,0 +1 @@
../deb/libzscanner4.symbols

View file

@ -0,0 +1 @@
../deb/not-installed

View file

@ -0,0 +1 @@
../deb/prepare-environment

87
distro/pkg/_deb-noxdp/rules Executable file
View file

@ -0,0 +1,87 @@
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -DNDEBUG
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DPKG_GENSYMBOLS_CHECK_LEVEL := 4
export KNOT_SOFTHSM2_DSO = /usr/lib/softhsm/libsofthsm2.so
include /usr/share/dpkg/default.mk
ifeq (maint,$(filter $(DEB_BUILD_OPTIONS),maint))
FASTPARSER := --disable-fastparser
else
FASTPARSER := --enable-fastparser
endif
ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),hurd-i386))
RECVMMSG:=--enable-recvmmsg=no
else
RECVMMSG:=--enable-recvmmsg=yes
endif
ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),amd64 i386))
RUN_TEST :=
else
RUN_TEST := -timeout --kill-after=5s 5m
endif
LIBKNOT_SYMBOLS := $(wildcard $(CURDIR)/debian/libknot*.symbols)
# MAJOR.MINOR version part
BASE_VERSION := $(shell echo $(DEB_VERSION) | sed 's/^\([^.]\+\.[^.]\+\).*/\1/')
PYBUILD = pybuild --dir python --dest-dir debian/python3-libknot
%:
dh $@ \
--exclude=.la --exclude=example.com.zone \
--with python3
override_dh_auto_configure:
dh_auto_configure -- \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--libexecdir=/usr/lib/knot \
--with-rundir=/run/knot \
--with-moduledir=/usr/lib/$(DEB_HOST_MULTIARCH)/knot/modules-$(BASE_VERSION) \
--with-storage=/var/lib/knot \
--enable-systemd=auto \
--enable-dnstap \
--with-module-dnstap=shared \
--with-module-geoip=shared \
$(RECVMMSG) \
$(FASTPARSER) \
--disable-silent-rules \
--disable-static
override_dh_auto_configure-indep:
$(PYBUILD) --configure
override_dh_auto_build-indep:
dh_auto_build -- html
$(PYBUILD) --build
override_dh_auto_install-arch:
dh_auto_install -- install
# rename knot.sample.conf to knot.conf
mv $(CURDIR)/debian/tmp/etc/knot/knot.sample.conf $(CURDIR)/debian/tmp/etc/knot/knot.conf
override_dh_auto_install-indep:
dh_auto_install -- install-html
# rename knot.sample.conf to knot.conf
mv $(CURDIR)/debian/tmp/etc/knot/knot.sample.conf $(CURDIR)/debian/tmp/etc/knot/knot.conf
$(PYBUILD) --install
override_dh_auto_test-indep:
override_dh_auto_test-arch:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
$(RUN_TEST) dh_auto_test
endif
override_dh_missing:
dh_missing --fail-missing
override_dh_installchangelogs:
dh_installchangelogs NEWS

View file

@ -0,0 +1 @@
../deb/source

1
distro/pkg/_deb-noxdp/tests Symbolic link
View file

@ -0,0 +1 @@
../deb/tests

1
distro/pkg/_deb-noxdp/ufw Symbolic link
View file

@ -0,0 +1 @@
../deb/ufw

1
distro/pkg/_deb-noxdp/watch Symbolic link
View file

@ -0,0 +1 @@
../deb/watch

View file

@ -69,19 +69,9 @@ override_dh_auto_install-arch:
dh_auto_install -- install
# rename knot.sample.conf to knot.conf
mv $(CURDIR)/debian/tmp/etc/knot/knot.sample.conf $(CURDIR)/debian/tmp/etc/knot/knot.conf
# Some workarounds where XDP is unavailable
@if [ -f "$(CURDIR)/debian/tmp/usr/sbin/kxdpgun" ]; then \
echo "XDP enabled"; \
if grep -E -q "DoQ support: +no" "$(CURDIR)/debian/tmp/usr/sbin/knotd"; then \
echo "Stripping the QUIC symbols"; \
sed -i '/knot_xquic_/d' $(LIBKNOT_SYMBOLS); \
fi \
else \
echo "XDP disabled"; \
touch $(CURDIR)/debian/tmp/usr/share/man/man8/kxdpgun.8; \
printf '#!/bin/sh\n\necho "kxdpgun not available"\n' > $(CURDIR)/debian/tmp/usr/sbin/kxdpgun; \
echo "Stripping the XDP symbols"; \
sed -i -E '/knot_xdp_|knot_eth_|knot_tcp_[crst]|knot_xquic_|KNOT_XDP_/d' $(LIBKNOT_SYMBOLS); \
@if grep -E -q "DoQ support: +no" "$(CURDIR)/debian/tmp/usr/sbin/knotd"; then \
echo "Stripping the QUIC symbols"; \
sed -i '/knot_xquic_/d' $(LIBKNOT_SYMBOLS); \
fi
override_dh_auto_install-indep: