Adding upstream version 3.4.6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
99672d3929
commit
70063ca008
1268 changed files with 448383 additions and 0 deletions
674
COPYING
Normal file
674
COPYING
Normal file
|
@ -0,0 +1,674 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
2618
Doxyfile.in
Normal file
2618
Doxyfile.in
Normal file
File diff suppressed because it is too large
Load diff
99
Makefile.am
Normal file
99
Makefile.am
Normal file
|
@ -0,0 +1,99 @@
|
|||
ACLOCAL_AMFLAGS = -I m4
|
||||
SUBDIRS = src tests tests-fuzz python samples distro doc
|
||||
|
||||
EXTRA_DIST = README.md
|
||||
|
||||
.PHONY: singlehtml epub install-singlehtml install-epub
|
||||
singlehtml install-singlehtml epub install-epub:
|
||||
$(MAKE) -C doc $@
|
||||
|
||||
.PHONY: check-compile
|
||||
check-compile:
|
||||
$(MAKE) $(AM_MAKEFLAGS) -C tests $@
|
||||
$(MAKE) $(AM_MAKEFLAGS) -C tests-fuzz $@
|
||||
|
||||
AM_DISTCHECK_CONFIGURE_FLAGS =
|
||||
|
||||
CODE_COVERAGE_INFO = coverage.info
|
||||
CODE_COVERAGE_HTML = coverage.html
|
||||
CODE_COVERAGE_DIRS = \
|
||||
src/contrib \
|
||||
src/knot \
|
||||
src/libdnssec \
|
||||
src/libknot \
|
||||
src/libzscanner
|
||||
|
||||
code_coverage_quiet = --quiet
|
||||
|
||||
check-code-coverage:
|
||||
if CODE_COVERAGE_ENABLED
|
||||
$(MAKE) $(AM_MAKEFLAGS) code-coverage-initial
|
||||
-$(MAKE) $(AM_MAKEFLAGS) -k check
|
||||
$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
|
||||
$(MAKE) $(AM_MAKEFLAGS) code-coverage-html
|
||||
$(MAKE) $(AM_MAKEFLAGS) code-coverage-summary
|
||||
else
|
||||
@echo "You need to run configure with --enable-code-coverage to enable code coverage"
|
||||
endif
|
||||
|
||||
code-coverage-initial:
|
||||
if CODE_COVERAGE_ENABLED
|
||||
$(LCOV) $(code_coverage_quiet) \
|
||||
--no-external \
|
||||
$(foreach dir, $(CODE_COVERAGE_DIRS), --directory $(top_builddir)/$(dir)) \
|
||||
--capture --initial \
|
||||
--ignore-errors source \
|
||||
--no-checksum \
|
||||
--compat-libtool \
|
||||
--output-file $(CODE_COVERAGE_INFO)
|
||||
else
|
||||
@echo "You need to run configure with --enable-code-coverage to enable code coverage"
|
||||
endif
|
||||
|
||||
code-coverage-capture:
|
||||
if CODE_COVERAGE_ENABLED
|
||||
$(LCOV) $(code_coverage_quiet) \
|
||||
--no-external \
|
||||
$(foreach dir, $(CODE_COVERAGE_DIRS), --directory $(builddir)/$(dir)) \
|
||||
--capture \
|
||||
--ignore-errors source \
|
||||
--no-checksum \
|
||||
--compat-libtool \
|
||||
--output-file $(CODE_COVERAGE_INFO)
|
||||
else
|
||||
@echo "You need to run configure with --enable-code-coverage to enable code coverage"
|
||||
endif
|
||||
|
||||
code-coverage-html:
|
||||
if CODE_COVERAGE_ENABLED
|
||||
@echo "Generating code coverage HTML report (this might take a while)"
|
||||
LANG=C $(GENHTML) $(code_coverage_quiet) \
|
||||
--output-directory $(CODE_COVERAGE_HTML) \
|
||||
--title "Knot DNS $(PACKAGE_VERSION) Code Coverage" \
|
||||
--legend --show-details \
|
||||
--ignore-errors source \
|
||||
$(CODE_COVERAGE_INFO)
|
||||
else
|
||||
@echo "You need to run configure with --enable-code-coverage to enable code coverage"
|
||||
endif
|
||||
|
||||
code-coverage-summary:
|
||||
if CODE_COVERAGE_ENABLED
|
||||
$(LCOV) \
|
||||
--summary $(CODE_COVERAGE_INFO)
|
||||
else
|
||||
@echo "You need to run configure with --enable-code-coverage to enable code coverage"
|
||||
endif
|
||||
|
||||
if CODE_COVERAGE_ENABLED
|
||||
clean-local: code-coverage-clean
|
||||
-find . -name "*.gcno" -delete
|
||||
code-coverage-clean:
|
||||
-$(LCOV) --directory $(top_builddir) -z
|
||||
-rm -rf $(CODE_COVERAGE_INFO) $(CODE_COVERAGE_HTML)
|
||||
-find . -name "*.gcda" -o -name "*.gcov" -delete
|
||||
endif
|
||||
|
||||
|
||||
.PHONY: check-code-coverage code-coverage-initial code-coverage-capture code-coverage-html code-coverage-summary code-coverage-clean
|
||||
.NOTPARALLEL: clean
|
983
Makefile.in
Normal file
983
Makefile.in
Normal file
|
@ -0,0 +1,983 @@
|
|||
# Makefile.in generated by automake 1.16.5 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2021 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_compile_flag.m4 \
|
||||
$(top_srcdir)/m4/ax_check_link_flag.m4 \
|
||||
$(top_srcdir)/m4/code-coverage.m4 \
|
||||
$(top_srcdir)/m4/knot-lib-version.m4 \
|
||||
$(top_srcdir)/m4/knot-module.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/m4/sanitizer.m4 $(top_srcdir)/m4/visibility.m4 \
|
||||
$(top_srcdir)/m4/knot-version.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
|
||||
$(am__configure_deps) $(am__DIST_COMMON)
|
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
configure.lineno config.status.lineno
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/src/config.h
|
||||
CONFIG_CLEAN_FILES = src/libknot/version.h src/libdnssec/version.h \
|
||||
src/libzscanner/version.h Doxyfile \
|
||||
python/libknot/libknot/__init__.py \
|
||||
src/knot/modules/static_modules.h
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
|
||||
ctags-recursive dvi-recursive html-recursive info-recursive \
|
||||
install-data-recursive install-dvi-recursive \
|
||||
install-exec-recursive install-html-recursive \
|
||||
install-info-recursive install-pdf-recursive \
|
||||
install-ps-recursive install-recursive installcheck-recursive \
|
||||
installdirs-recursive pdf-recursive ps-recursive \
|
||||
tags-recursive uninstall-recursive
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||
distclean-recursive maintainer-clean-recursive
|
||||
am__recursive_targets = \
|
||||
$(RECURSIVE_TARGETS) \
|
||||
$(RECURSIVE_CLEAN_TARGETS) \
|
||||
$(am__extra_recursive_targets)
|
||||
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
|
||||
cscope distdir distdir-am dist dist-all distcheck
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
am__DIST_COMMON = $(srcdir)/Doxyfile.in $(srcdir)/Makefile.in \
|
||||
$(top_srcdir)/python/libknot/libknot/__init__.py.in \
|
||||
$(top_srcdir)/src/knot/modules/static_modules.h.in \
|
||||
$(top_srcdir)/src/libdnssec/version.h.in \
|
||||
$(top_srcdir)/src/libknot/version.h.in \
|
||||
$(top_srcdir)/src/libzscanner/version.h.in COPYING NEWS \
|
||||
README.md ar-lib compile config.guess config.sub install-sh \
|
||||
ltmain.sh missing
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
am__remove_distdir = \
|
||||
if test -d "$(distdir)"; then \
|
||||
find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||
&& rm -rf "$(distdir)" \
|
||||
|| { sleep 5 && rm -rf "$(distdir)"; }; \
|
||||
else :; fi
|
||||
am__post_remove_distdir = $(am__remove_distdir)
|
||||
am__relativize = \
|
||||
dir0=`pwd`; \
|
||||
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
|
||||
sed_rest='s,^[^/]*/*,,'; \
|
||||
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
|
||||
sed_butlast='s,/*[^/]*$$,,'; \
|
||||
while test -n "$$dir1"; do \
|
||||
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
|
||||
if test "$$first" != "."; then \
|
||||
if test "$$first" = ".."; then \
|
||||
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
|
||||
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
|
||||
else \
|
||||
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
|
||||
if test "$$first2" = "$$first"; then \
|
||||
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
|
||||
else \
|
||||
dir2="../$$dir2"; \
|
||||
fi; \
|
||||
dir0="$$dir0"/"$$first"; \
|
||||
fi; \
|
||||
fi; \
|
||||
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
|
||||
done; \
|
||||
reldir="$$dir2"
|
||||
GZIP_ENV = --best
|
||||
DIST_ARCHIVES = $(distdir).tar.xz
|
||||
DIST_TARGETS = dist-xz
|
||||
# Exists only to be overridden by the user if desired.
|
||||
AM_DISTCHECK_DVI_TARGET = dvi
|
||||
distuninstallcheck_listfiles = find . -type f -print
|
||||
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
|
||||
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
|
||||
distcleancheck_listfiles = find . -type f -print
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CFLAG_VISIBILITY = @CFLAG_VISIBILITY@
|
||||
CODE_COVERAGE_ENABLED = @CODE_COVERAGE_ENABLED@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CSCOPE = @CSCOPE@
|
||||
CTAGS = @CTAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DNSTAP_CFLAGS = @DNSTAP_CFLAGS@
|
||||
DNSTAP_LIBS = @DNSTAP_LIBS@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
ETAGS = @ETAGS@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
FILECMD = @FILECMD@
|
||||
GENHTML = @GENHTML@
|
||||
GREP = @GREP@
|
||||
HAVE_VISIBILITY = @HAVE_VISIBILITY@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
KNOT_VERSION_MAJOR = @KNOT_VERSION_MAJOR@
|
||||
KNOT_VERSION_MINOR = @KNOT_VERSION_MINOR@
|
||||
KNOT_VERSION_PATCH = @KNOT_VERSION_PATCH@
|
||||
LCOV = @LCOV@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LDFLAG_EXCLUDE_LIBS = @LDFLAG_EXCLUDE_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_NO_UNDEFINED = @LT_NO_UNDEFINED@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PDFLATEX = @PDFLATEX@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
PROTOC_C = @PROTOC_C@
|
||||
RANLIB = @RANLIB@
|
||||
RELEASE_DATE = @RELEASE_DATE@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SPHINXBUILD = @SPHINXBUILD@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
cap_ng_CFLAGS = @cap_ng_CFLAGS@
|
||||
cap_ng_LIBS = @cap_ng_LIBS@
|
||||
conf_mapsize = @conf_mapsize@
|
||||
config_dir = @config_dir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
dlopen_LIBS = @dlopen_LIBS@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
embedded_libngtcp2_CFLAGS = @embedded_libngtcp2_CFLAGS@
|
||||
embedded_libngtcp2_LIBS = @embedded_libngtcp2_LIBS@
|
||||
exec_prefix = @exec_prefix@
|
||||
fuzzer_CFLAGS = @fuzzer_CFLAGS@
|
||||
fuzzer_LDFLAGS = @fuzzer_LDFLAGS@
|
||||
gnutls_CFLAGS = @gnutls_CFLAGS@
|
||||
gnutls_LIBS = @gnutls_LIBS@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libbpf_CFLAGS = @libbpf_CFLAGS@
|
||||
libbpf_LIBS = @libbpf_LIBS@
|
||||
libdbus_CFLAGS = @libdbus_CFLAGS@
|
||||
libdbus_LIBS = @libdbus_LIBS@
|
||||
libdir = @libdir@
|
||||
libdnssec_SONAME = @libdnssec_SONAME@
|
||||
libdnssec_SOVERSION = @libdnssec_SOVERSION@
|
||||
libdnssec_VERSION_INFO = @libdnssec_VERSION_INFO@
|
||||
libedit_CFLAGS = @libedit_CFLAGS@
|
||||
libedit_LIBS = @libedit_LIBS@
|
||||
libexecdir = @libexecdir@
|
||||
libfstrm_CFLAGS = @libfstrm_CFLAGS@
|
||||
libfstrm_LIBS = @libfstrm_LIBS@
|
||||
libidn2_CFLAGS = @libidn2_CFLAGS@
|
||||
libidn2_LIBS = @libidn2_LIBS@
|
||||
libknot_SONAME = @libknot_SONAME@
|
||||
libknot_SOVERSION = @libknot_SOVERSION@
|
||||
libknot_VERSION_INFO = @libknot_VERSION_INFO@
|
||||
libkqueue_CFLAGS = @libkqueue_CFLAGS@
|
||||
libkqueue_LIBS = @libkqueue_LIBS@
|
||||
libmaxminddb_CFLAGS = @libmaxminddb_CFLAGS@
|
||||
libmaxminddb_LIBS = @libmaxminddb_LIBS@
|
||||
libmnl_CFLAGS = @libmnl_CFLAGS@
|
||||
libmnl_LIBS = @libmnl_LIBS@
|
||||
libnghttp2_CFLAGS = @libnghttp2_CFLAGS@
|
||||
libnghttp2_LIBS = @libnghttp2_LIBS@
|
||||
libngtcp2_CFLAGS = @libngtcp2_CFLAGS@
|
||||
libngtcp2_LIBS = @libngtcp2_LIBS@
|
||||
libprotobuf_c_CFLAGS = @libprotobuf_c_CFLAGS@
|
||||
libprotobuf_c_LIBS = @libprotobuf_c_LIBS@
|
||||
liburcu_CFLAGS = @liburcu_CFLAGS@
|
||||
liburcu_LIBS = @liburcu_LIBS@
|
||||
libxdp_CFLAGS = @libxdp_CFLAGS@
|
||||
libxdp_LIBS = @libxdp_LIBS@
|
||||
libzscanner_SONAME = @libzscanner_SONAME@
|
||||
libzscanner_SOVERSION = @libzscanner_SOVERSION@
|
||||
libzscanner_VERSION_INFO = @libzscanner_VERSION_INFO@
|
||||
lmdb_CFLAGS = @lmdb_CFLAGS@
|
||||
lmdb_LIBS = @lmdb_LIBS@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
malloc_LIBS = @malloc_LIBS@
|
||||
mandir = @mandir@
|
||||
math_LIBS = @math_LIBS@
|
||||
mkdir_p = @mkdir_p@
|
||||
module_dir = @module_dir@
|
||||
module_instdir = @module_instdir@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
pkgconfigdir = @pkgconfigdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
pthread_LIBS = @pthread_LIBS@
|
||||
run_dir = @run_dir@
|
||||
runstatedir = @runstatedir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
storage_dir = @storage_dir@
|
||||
sysconfdir = @sysconfdir@
|
||||
systemd_CFLAGS = @systemd_CFLAGS@
|
||||
systemd_LIBS = @systemd_LIBS@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
SUBDIRS = src tests tests-fuzz python samples distro doc
|
||||
EXTRA_DIST = README.md
|
||||
AM_DISTCHECK_CONFIGURE_FLAGS =
|
||||
CODE_COVERAGE_INFO = coverage.info
|
||||
CODE_COVERAGE_HTML = coverage.html
|
||||
CODE_COVERAGE_DIRS = \
|
||||
src/contrib \
|
||||
src/knot \
|
||||
src/libdnssec \
|
||||
src/libknot \
|
||||
src/libzscanner
|
||||
|
||||
code_coverage_quiet = --quiet
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
am--refresh: Makefile
|
||||
@:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
|
||||
$(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
echo ' $(SHELL) ./config.status'; \
|
||||
$(SHELL) ./config.status;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
$(SHELL) ./config.status --recheck
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
$(am__cd) $(srcdir) && $(AUTOCONF)
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||
$(am__aclocal_m4_deps):
|
||||
src/libknot/version.h: $(top_builddir)/config.status $(top_srcdir)/src/libknot/version.h.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
src/libdnssec/version.h: $(top_builddir)/config.status $(top_srcdir)/src/libdnssec/version.h.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
src/libzscanner/version.h: $(top_builddir)/config.status $(top_srcdir)/src/libzscanner/version.h.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
Doxyfile: $(top_builddir)/config.status $(srcdir)/Doxyfile.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
python/libknot/libknot/__init__.py: $(top_builddir)/config.status $(top_srcdir)/python/libknot/libknot/__init__.py.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
src/knot/modules/static_modules.h: $(top_builddir)/config.status $(top_srcdir)/src/knot/modules/static_modules.h.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool config.lt
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run 'make' without going through this Makefile.
|
||||
# To change the values of 'make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in 'config.status', edit 'config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run 'make');
|
||||
# (2) otherwise, pass the desired values on the 'make' command line.
|
||||
$(am__recursive_targets):
|
||||
@fail=; \
|
||||
if $(am__make_keepgoing); then \
|
||||
failcom='fail=yes'; \
|
||||
else \
|
||||
failcom='exit 1'; \
|
||||
fi; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-recursive
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-recursive
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscope: cscope.files
|
||||
test ! -s cscope.files \
|
||||
|| $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
|
||||
clean-cscope:
|
||||
-rm -f cscope.files
|
||||
cscope.files: clean-cscope cscopelist
|
||||
cscopelist: cscopelist-recursive
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
-rm -f cscope.out cscope.in.out cscope.po.out cscope.files
|
||||
distdir: $(BUILT_SOURCES)
|
||||
$(MAKE) $(AM_MAKEFLAGS) distdir-am
|
||||
|
||||
distdir-am: $(DISTFILES)
|
||||
$(am__remove_distdir)
|
||||
test -d "$(distdir)" || mkdir "$(distdir)"
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
$(am__make_dryrun) \
|
||||
|| test -d "$(distdir)/$$subdir" \
|
||||
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
|
||||
$(am__relativize); \
|
||||
new_distdir=$$reldir; \
|
||||
dir1=$$subdir; dir2="$(top_distdir)"; \
|
||||
$(am__relativize); \
|
||||
new_top_distdir=$$reldir; \
|
||||
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
|
||||
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
|
||||
($(am__cd) $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$new_top_distdir" \
|
||||
distdir="$$new_distdir" \
|
||||
am__remove_distdir=: \
|
||||
am__skip_length_check=: \
|
||||
am__skip_mode_fix=: \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
-test -n "$(am__skip_mode_fix)" \
|
||||
|| find "$(distdir)" -type d ! -perm -755 \
|
||||
-exec chmod u+rwx,go+rx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r "$(distdir)"
|
||||
dist-gzip: distdir
|
||||
tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
dist-bzip2: distdir
|
||||
tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
dist-lzip: distdir
|
||||
tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
|
||||
$(am__post_remove_distdir)
|
||||
dist-xz: distdir
|
||||
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
dist-zstd: distdir
|
||||
tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
dist-tarZ: distdir
|
||||
@echo WARNING: "Support for distribution archives compressed with" \
|
||||
"legacy program 'compress' is deprecated." >&2
|
||||
@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
|
||||
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
dist-shar: distdir
|
||||
@echo WARNING: "Support for shar distribution archives is" \
|
||||
"deprecated." >&2
|
||||
@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
|
||||
shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
dist-zip: distdir
|
||||
-rm -f $(distdir).zip
|
||||
zip -rq $(distdir).zip $(distdir)
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
dist dist-all:
|
||||
$(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist
|
||||
case '$(DIST_ARCHIVES)' in \
|
||||
*.tar.gz*) \
|
||||
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
|
||||
*.tar.bz2*) \
|
||||
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||
*.tar.lz*) \
|
||||
lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
|
||||
*.tar.xz*) \
|
||||
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
|
||||
*.tar.Z*) \
|
||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||
*.shar.gz*) \
|
||||
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
|
||||
*.zip*) \
|
||||
unzip $(distdir).zip ;;\
|
||||
*.tar.zst*) \
|
||||
zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
|
||||
esac
|
||||
chmod -R a-w $(distdir)
|
||||
chmod u+w $(distdir)
|
||||
mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
|
||||
chmod a-w $(distdir)
|
||||
test -d $(distdir)/_build || exit 0; \
|
||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||
&& am__cwd=`pwd` \
|
||||
&& $(am__cd) $(distdir)/_build/sub \
|
||||
&& ../../configure \
|
||||
$(AM_DISTCHECK_CONFIGURE_FLAGS) \
|
||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
--srcdir=../.. --prefix="$$dc_install_base" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||
distuninstallcheck \
|
||||
&& chmod -R a-w "$$dc_install_base" \
|
||||
&& ({ \
|
||||
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||
&& rm -rf "$$dc_destdir" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||
&& rm -rf $(DIST_ARCHIVES) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
|
||||
&& cd "$$am__cwd" \
|
||||
|| exit 1
|
||||
$(am__post_remove_distdir)
|
||||
@(echo "$(distdir) archives ready for distribution: "; \
|
||||
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
|
||||
distuninstallcheck:
|
||||
@test -n '$(distuninstallcheck_dir)' || { \
|
||||
echo 'ERROR: trying to run $@ with an empty' \
|
||||
'$$(distuninstallcheck_dir)' >&2; \
|
||||
exit 1; \
|
||||
}; \
|
||||
$(am__cd) '$(distuninstallcheck_dir)' || { \
|
||||
echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
|
||||
exit 1; \
|
||||
}; \
|
||||
test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left after uninstall:" ; \
|
||||
if test -n "$(DESTDIR)"; then \
|
||||
echo " (check DESTDIR support)"; \
|
||||
fi ; \
|
||||
$(distuninstallcheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
distcleancheck: distclean
|
||||
@if test '$(srcdir)' = . ; then \
|
||||
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||
$(distcleancheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
@CODE_COVERAGE_ENABLED_FALSE@clean-local:
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libtool clean-local mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-libtool \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-recursive
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-recursive
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-recursive
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-recursive
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf $(top_srcdir)/autom4te.cache
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: $(am__recursive_targets) install-am install-strip
|
||||
|
||||
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
|
||||
am--refresh check check-am clean clean-cscope clean-generic \
|
||||
clean-libtool clean-local cscope cscopelist-am ctags ctags-am \
|
||||
dist dist-all dist-bzip2 dist-gzip dist-lzip dist-shar \
|
||||
dist-tarZ dist-xz dist-zip dist-zstd distcheck distclean \
|
||||
distclean-generic distclean-libtool distclean-tags \
|
||||
distcleancheck distdir distuninstallcheck dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-dvi install-dvi-am install-exec \
|
||||
install-exec-am install-html install-html-am install-info \
|
||||
install-info-am install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip installcheck \
|
||||
installcheck-am installdirs installdirs-am maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
|
||||
uninstall-am
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
.PHONY: singlehtml epub install-singlehtml install-epub
|
||||
singlehtml install-singlehtml epub install-epub:
|
||||
$(MAKE) -C doc $@
|
||||
|
||||
.PHONY: check-compile
|
||||
check-compile:
|
||||
$(MAKE) $(AM_MAKEFLAGS) -C tests $@
|
||||
$(MAKE) $(AM_MAKEFLAGS) -C tests-fuzz $@
|
||||
|
||||
check-code-coverage:
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ $(MAKE) $(AM_MAKEFLAGS) code-coverage-initial
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ -$(MAKE) $(AM_MAKEFLAGS) -k check
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ $(MAKE) $(AM_MAKEFLAGS) code-coverage-html
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ $(MAKE) $(AM_MAKEFLAGS) code-coverage-summary
|
||||
@CODE_COVERAGE_ENABLED_FALSE@ @echo "You need to run configure with --enable-code-coverage to enable code coverage"
|
||||
|
||||
code-coverage-initial:
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ $(LCOV) $(code_coverage_quiet) \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --no-external \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ $(foreach dir, $(CODE_COVERAGE_DIRS), --directory $(top_builddir)/$(dir)) \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --capture --initial \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --ignore-errors source \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --no-checksum \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --compat-libtool \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --output-file $(CODE_COVERAGE_INFO)
|
||||
@CODE_COVERAGE_ENABLED_FALSE@ @echo "You need to run configure with --enable-code-coverage to enable code coverage"
|
||||
|
||||
code-coverage-capture:
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ $(LCOV) $(code_coverage_quiet) \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --no-external \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ $(foreach dir, $(CODE_COVERAGE_DIRS), --directory $(builddir)/$(dir)) \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --capture \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --ignore-errors source \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --no-checksum \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --compat-libtool \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --output-file $(CODE_COVERAGE_INFO)
|
||||
@CODE_COVERAGE_ENABLED_FALSE@ @echo "You need to run configure with --enable-code-coverage to enable code coverage"
|
||||
|
||||
code-coverage-html:
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ @echo "Generating code coverage HTML report (this might take a while)"
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ LANG=C $(GENHTML) $(code_coverage_quiet) \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --output-directory $(CODE_COVERAGE_HTML) \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --title "Knot DNS $(PACKAGE_VERSION) Code Coverage" \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --legend --show-details \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --ignore-errors source \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ $(CODE_COVERAGE_INFO)
|
||||
@CODE_COVERAGE_ENABLED_FALSE@ @echo "You need to run configure with --enable-code-coverage to enable code coverage"
|
||||
|
||||
code-coverage-summary:
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ $(LCOV) \
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ --summary $(CODE_COVERAGE_INFO)
|
||||
@CODE_COVERAGE_ENABLED_FALSE@ @echo "You need to run configure with --enable-code-coverage to enable code coverage"
|
||||
|
||||
@CODE_COVERAGE_ENABLED_TRUE@clean-local: code-coverage-clean
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ -find . -name "*.gcno" -delete
|
||||
@CODE_COVERAGE_ENABLED_TRUE@code-coverage-clean:
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ -$(LCOV) --directory $(top_builddir) -z
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ -rm -rf $(CODE_COVERAGE_INFO) $(CODE_COVERAGE_HTML)
|
||||
@CODE_COVERAGE_ENABLED_TRUE@ -find . -name "*.gcda" -o -name "*.gcov" -delete
|
||||
|
||||
.PHONY: check-code-coverage code-coverage-initial code-coverage-capture code-coverage-html code-coverage-summary code-coverage-clean
|
||||
.NOTPARALLEL: clean
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
121
README.md
Normal file
121
README.md
Normal file
|
@ -0,0 +1,121 @@
|
|||
[](https://scan.coverity.com/projects/knot-dns)
|
||||
[](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:knot-dns)
|
||||
|
||||
# Requirements
|
||||
|
||||
[doc/requirements.rst](doc/requirements.rst)
|
||||
|
||||
# Installation
|
||||
|
||||
[doc/installation.rst](doc/installation.rst)
|
||||
|
||||
## 1. Install prerequisites
|
||||
|
||||
### Debian based distributions
|
||||
|
||||
#### Update the system:
|
||||
```bash
|
||||
sudo apt-get update
|
||||
sudo apt-get upgrade
|
||||
```
|
||||
|
||||
#### Install prerequisites:
|
||||
```bash
|
||||
sudo apt-get install \
|
||||
libtool autoconf automake make pkg-config liburcu-dev libgnutls28-dev libedit-dev liblmdb-dev
|
||||
```
|
||||
|
||||
#### Install optional packages:
|
||||
```bash
|
||||
sudo apt-get install \
|
||||
libcap-ng-dev libsystemd-dev libidn2-dev libprotobuf-c-dev protobuf-c-compiler libfstrm-dev libmaxminddb-dev libnghttp2-dev libbpf-dev libxdp-dev libmnl-dev python3-sphinx python3-sphinx-panels softhsm2
|
||||
```
|
||||
|
||||
### Fedora like distributions
|
||||
|
||||
#### Update the system:
|
||||
```bash
|
||||
dnf upgrade
|
||||
```
|
||||
|
||||
#### Install basic development tools:
|
||||
```bash
|
||||
dnf install @buildsys-build
|
||||
```
|
||||
|
||||
#### Install prerequisites:
|
||||
```bash
|
||||
dnf install \
|
||||
libtool autoconf automake pkgconfig userspace-rcu-devel gnutls-devel libedit-devel lmdb-devel
|
||||
```
|
||||
|
||||
#### Install optional packages:
|
||||
```bash
|
||||
dnf install \
|
||||
libcap-ng-devel systemd-devel libidn2-devel protobuf-c-devel fstrm-devel libmaxminddb-devel libnghttp2-devel libbpf-devel libxdp-devel libmnl-devel python-sphinx python-sphinx-panels softhsm
|
||||
```
|
||||
|
||||
When compiling on RHEL based system, the Fedora EPEL repository has to be
|
||||
enabled.
|
||||
|
||||
## 2. Install Knot DNS
|
||||
|
||||
Get the source code:
|
||||
```bash
|
||||
git clone https://gitlab.nic.cz/knot/knot-dns.git
|
||||
```
|
||||
Or extract source package to knot-dns directory.
|
||||
|
||||
Compile the source code:
|
||||
```bash
|
||||
cd knot-dns
|
||||
autoreconf -if
|
||||
./configure
|
||||
make
|
||||
```
|
||||
|
||||
Install Knot DNS into system:
|
||||
```bash
|
||||
sudo make install
|
||||
sudo ldconfig
|
||||
```
|
||||
|
||||
# Running
|
||||
|
||||
### 1. Ensure some configuration
|
||||
|
||||
[doc/configuration.rst](doc/configuration.rst)
|
||||
|
||||
Please see [samples/knot.sample.conf](samples/knot.sample.conf),
|
||||
[project documentation](https://www.knot-dns.cz/documentation/),
|
||||
or `man 5 knot.conf` for more details. Basically the configuration should specify:
|
||||
- network interfaces
|
||||
- served zones
|
||||
|
||||
E.g. use the default configuration file:
|
||||
```bash
|
||||
cd /etc/knot
|
||||
mv knot.sample.conf knot.conf
|
||||
```
|
||||
Modify the configuration file:
|
||||
```bash
|
||||
editor knot.conf
|
||||
```
|
||||
|
||||
### 2. Prepare working directory
|
||||
|
||||
```bash
|
||||
mv example.com.zone /var/lib/knot/
|
||||
```
|
||||
|
||||
### 3. Start the server
|
||||
|
||||
[doc/operation.rst](doc/operation.rst)
|
||||
|
||||
This can be done by running the `knotd` command. Alternatively, your distribution
|
||||
should have an init script available, if you installed Knot DNS from a binary package.
|
||||
|
||||
Start the server in foreground to see if it runs:
|
||||
```bash
|
||||
knotd -c /etc/knot/knot.conf
|
||||
```
|
1566
aclocal.m4
vendored
Normal file
1566
aclocal.m4
vendored
Normal file
File diff suppressed because it is too large
Load diff
271
ar-lib
Executable file
271
ar-lib
Executable file
|
@ -0,0 +1,271 @@
|
|||
#! /bin/sh
|
||||
# Wrapper for Microsoft lib.exe
|
||||
|
||||
me=ar-lib
|
||||
scriptversion=2019-07-04.01; # UTC
|
||||
|
||||
# Copyright (C) 2010-2021 Free Software Foundation, Inc.
|
||||
# Written by Peter Rosin <peda@lysator.liu.se>.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# This file is maintained in Automake, please report
|
||||
# bugs to <bug-automake@gnu.org> or send patches to
|
||||
# <automake-patches@gnu.org>.
|
||||
|
||||
|
||||
# func_error message
|
||||
func_error ()
|
||||
{
|
||||
echo "$me: $1" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
file_conv=
|
||||
|
||||
# func_file_conv build_file
|
||||
# Convert a $build file to $host form and store it in $file
|
||||
# Currently only supports Windows hosts.
|
||||
func_file_conv ()
|
||||
{
|
||||
file=$1
|
||||
case $file in
|
||||
/ | /[!/]*) # absolute file, and not a UNC file
|
||||
if test -z "$file_conv"; then
|
||||
# lazily determine how to convert abs files
|
||||
case `uname -s` in
|
||||
MINGW*)
|
||||
file_conv=mingw
|
||||
;;
|
||||
CYGWIN* | MSYS*)
|
||||
file_conv=cygwin
|
||||
;;
|
||||
*)
|
||||
file_conv=wine
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
case $file_conv in
|
||||
mingw)
|
||||
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
|
||||
;;
|
||||
cygwin | msys)
|
||||
file=`cygpath -m "$file" || echo "$file"`
|
||||
;;
|
||||
wine)
|
||||
file=`winepath -w "$file" || echo "$file"`
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# func_at_file at_file operation archive
|
||||
# Iterate over all members in AT_FILE performing OPERATION on ARCHIVE
|
||||
# for each of them.
|
||||
# When interpreting the content of the @FILE, do NOT use func_file_conv,
|
||||
# since the user would need to supply preconverted file names to
|
||||
# binutils ar, at least for MinGW.
|
||||
func_at_file ()
|
||||
{
|
||||
operation=$2
|
||||
archive=$3
|
||||
at_file_contents=`cat "$1"`
|
||||
eval set x "$at_file_contents"
|
||||
shift
|
||||
|
||||
for member
|
||||
do
|
||||
$AR -NOLOGO $operation:"$member" "$archive" || exit $?
|
||||
done
|
||||
}
|
||||
|
||||
case $1 in
|
||||
'')
|
||||
func_error "no command. Try '$0 --help' for more information."
|
||||
;;
|
||||
-h | --h*)
|
||||
cat <<EOF
|
||||
Usage: $me [--help] [--version] PROGRAM ACTION ARCHIVE [MEMBER...]
|
||||
|
||||
Members may be specified in a file named with @FILE.
|
||||
EOF
|
||||
exit $?
|
||||
;;
|
||||
-v | --v*)
|
||||
echo "$me, version $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
esac
|
||||
|
||||
if test $# -lt 3; then
|
||||
func_error "you must specify a program, an action and an archive"
|
||||
fi
|
||||
|
||||
AR=$1
|
||||
shift
|
||||
while :
|
||||
do
|
||||
if test $# -lt 2; then
|
||||
func_error "you must specify a program, an action and an archive"
|
||||
fi
|
||||
case $1 in
|
||||
-lib | -LIB \
|
||||
| -ltcg | -LTCG \
|
||||
| -machine* | -MACHINE* \
|
||||
| -subsystem* | -SUBSYSTEM* \
|
||||
| -verbose | -VERBOSE \
|
||||
| -wx* | -WX* )
|
||||
AR="$AR $1"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
action=$1
|
||||
shift
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
orig_archive=$1
|
||||
shift
|
||||
func_file_conv "$orig_archive"
|
||||
archive=$file
|
||||
|
||||
# strip leading dash in $action
|
||||
action=${action#-}
|
||||
|
||||
delete=
|
||||
extract=
|
||||
list=
|
||||
quick=
|
||||
replace=
|
||||
index=
|
||||
create=
|
||||
|
||||
while test -n "$action"
|
||||
do
|
||||
case $action in
|
||||
d*) delete=yes ;;
|
||||
x*) extract=yes ;;
|
||||
t*) list=yes ;;
|
||||
q*) quick=yes ;;
|
||||
r*) replace=yes ;;
|
||||
s*) index=yes ;;
|
||||
S*) ;; # the index is always updated implicitly
|
||||
c*) create=yes ;;
|
||||
u*) ;; # TODO: don't ignore the update modifier
|
||||
v*) ;; # TODO: don't ignore the verbose modifier
|
||||
*)
|
||||
func_error "unknown action specified"
|
||||
;;
|
||||
esac
|
||||
action=${action#?}
|
||||
done
|
||||
|
||||
case $delete$extract$list$quick$replace,$index in
|
||||
yes,* | ,yes)
|
||||
;;
|
||||
yesyes*)
|
||||
func_error "more than one action specified"
|
||||
;;
|
||||
*)
|
||||
func_error "no action specified"
|
||||
;;
|
||||
esac
|
||||
|
||||
if test -n "$delete"; then
|
||||
if test ! -f "$orig_archive"; then
|
||||
func_error "archive not found"
|
||||
fi
|
||||
for member
|
||||
do
|
||||
case $1 in
|
||||
@*)
|
||||
func_at_file "${1#@}" -REMOVE "$archive"
|
||||
;;
|
||||
*)
|
||||
func_file_conv "$1"
|
||||
$AR -NOLOGO -REMOVE:"$file" "$archive" || exit $?
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
elif test -n "$extract"; then
|
||||
if test ! -f "$orig_archive"; then
|
||||
func_error "archive not found"
|
||||
fi
|
||||
if test $# -gt 0; then
|
||||
for member
|
||||
do
|
||||
case $1 in
|
||||
@*)
|
||||
func_at_file "${1#@}" -EXTRACT "$archive"
|
||||
;;
|
||||
*)
|
||||
func_file_conv "$1"
|
||||
$AR -NOLOGO -EXTRACT:"$file" "$archive" || exit $?
|
||||
;;
|
||||
esac
|
||||
done
|
||||
else
|
||||
$AR -NOLOGO -LIST "$archive" | tr -d '\r' | sed -e 's/\\/\\\\/g' \
|
||||
| while read member
|
||||
do
|
||||
$AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $?
|
||||
done
|
||||
fi
|
||||
|
||||
elif test -n "$quick$replace"; then
|
||||
if test ! -f "$orig_archive"; then
|
||||
if test -z "$create"; then
|
||||
echo "$me: creating $orig_archive"
|
||||
fi
|
||||
orig_archive=
|
||||
else
|
||||
orig_archive=$archive
|
||||
fi
|
||||
|
||||
for member
|
||||
do
|
||||
case $1 in
|
||||
@*)
|
||||
func_file_conv "${1#@}"
|
||||
set x "$@" "@$file"
|
||||
;;
|
||||
*)
|
||||
func_file_conv "$1"
|
||||
set x "$@" "$file"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
shift
|
||||
done
|
||||
|
||||
if test -n "$orig_archive"; then
|
||||
$AR -NOLOGO -OUT:"$archive" "$orig_archive" "$@" || exit $?
|
||||
else
|
||||
$AR -NOLOGO -OUT:"$archive" "$@" || exit $?
|
||||
fi
|
||||
|
||||
elif test -n "$list"; then
|
||||
if test ! -f "$orig_archive"; then
|
||||
func_error "archive not found"
|
||||
fi
|
||||
$AR -NOLOGO -LIST "$archive" || exit $?
|
||||
fi
|
348
compile
Executable file
348
compile
Executable file
|
@ -0,0 +1,348 @@
|
|||
#! /bin/sh
|
||||
# Wrapper for compilers which do not understand '-c -o'.
|
||||
|
||||
scriptversion=2018-03-07.03; # UTC
|
||||
|
||||
# Copyright (C) 1999-2021 Free Software Foundation, Inc.
|
||||
# Written by Tom Tromey <tromey@cygnus.com>.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# This file is maintained in Automake, please report
|
||||
# bugs to <bug-automake@gnu.org> or send patches to
|
||||
# <automake-patches@gnu.org>.
|
||||
|
||||
nl='
|
||||
'
|
||||
|
||||
# We need space, tab and new line, in precisely that order. Quoting is
|
||||
# there to prevent tools from complaining about whitespace usage.
|
||||
IFS=" "" $nl"
|
||||
|
||||
file_conv=
|
||||
|
||||
# func_file_conv build_file lazy
|
||||
# Convert a $build file to $host form and store it in $file
|
||||
# Currently only supports Windows hosts. If the determined conversion
|
||||
# type is listed in (the comma separated) LAZY, no conversion will
|
||||
# take place.
|
||||
func_file_conv ()
|
||||
{
|
||||
file=$1
|
||||
case $file in
|
||||
/ | /[!/]*) # absolute file, and not a UNC file
|
||||
if test -z "$file_conv"; then
|
||||
# lazily determine how to convert abs files
|
||||
case `uname -s` in
|
||||
MINGW*)
|
||||
file_conv=mingw
|
||||
;;
|
||||
CYGWIN* | MSYS*)
|
||||
file_conv=cygwin
|
||||
;;
|
||||
*)
|
||||
file_conv=wine
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
case $file_conv/,$2, in
|
||||
*,$file_conv,*)
|
||||
;;
|
||||
mingw/*)
|
||||
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
|
||||
;;
|
||||
cygwin/* | msys/*)
|
||||
file=`cygpath -m "$file" || echo "$file"`
|
||||
;;
|
||||
wine/*)
|
||||
file=`winepath -w "$file" || echo "$file"`
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# func_cl_dashL linkdir
|
||||
# Make cl look for libraries in LINKDIR
|
||||
func_cl_dashL ()
|
||||
{
|
||||
func_file_conv "$1"
|
||||
if test -z "$lib_path"; then
|
||||
lib_path=$file
|
||||
else
|
||||
lib_path="$lib_path;$file"
|
||||
fi
|
||||
linker_opts="$linker_opts -LIBPATH:$file"
|
||||
}
|
||||
|
||||
# func_cl_dashl library
|
||||
# Do a library search-path lookup for cl
|
||||
func_cl_dashl ()
|
||||
{
|
||||
lib=$1
|
||||
found=no
|
||||
save_IFS=$IFS
|
||||
IFS=';'
|
||||
for dir in $lib_path $LIB
|
||||
do
|
||||
IFS=$save_IFS
|
||||
if $shared && test -f "$dir/$lib.dll.lib"; then
|
||||
found=yes
|
||||
lib=$dir/$lib.dll.lib
|
||||
break
|
||||
fi
|
||||
if test -f "$dir/$lib.lib"; then
|
||||
found=yes
|
||||
lib=$dir/$lib.lib
|
||||
break
|
||||
fi
|
||||
if test -f "$dir/lib$lib.a"; then
|
||||
found=yes
|
||||
lib=$dir/lib$lib.a
|
||||
break
|
||||
fi
|
||||
done
|
||||
IFS=$save_IFS
|
||||
|
||||
if test "$found" != yes; then
|
||||
lib=$lib.lib
|
||||
fi
|
||||
}
|
||||
|
||||
# func_cl_wrapper cl arg...
|
||||
# Adjust compile command to suit cl
|
||||
func_cl_wrapper ()
|
||||
{
|
||||
# Assume a capable shell
|
||||
lib_path=
|
||||
shared=:
|
||||
linker_opts=
|
||||
for arg
|
||||
do
|
||||
if test -n "$eat"; then
|
||||
eat=
|
||||
else
|
||||
case $1 in
|
||||
-o)
|
||||
# configure might choose to run compile as 'compile cc -o foo foo.c'.
|
||||
eat=1
|
||||
case $2 in
|
||||
*.o | *.[oO][bB][jJ])
|
||||
func_file_conv "$2"
|
||||
set x "$@" -Fo"$file"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
func_file_conv "$2"
|
||||
set x "$@" -Fe"$file"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
-I)
|
||||
eat=1
|
||||
func_file_conv "$2" mingw
|
||||
set x "$@" -I"$file"
|
||||
shift
|
||||
;;
|
||||
-I*)
|
||||
func_file_conv "${1#-I}" mingw
|
||||
set x "$@" -I"$file"
|
||||
shift
|
||||
;;
|
||||
-l)
|
||||
eat=1
|
||||
func_cl_dashl "$2"
|
||||
set x "$@" "$lib"
|
||||
shift
|
||||
;;
|
||||
-l*)
|
||||
func_cl_dashl "${1#-l}"
|
||||
set x "$@" "$lib"
|
||||
shift
|
||||
;;
|
||||
-L)
|
||||
eat=1
|
||||
func_cl_dashL "$2"
|
||||
;;
|
||||
-L*)
|
||||
func_cl_dashL "${1#-L}"
|
||||
;;
|
||||
-static)
|
||||
shared=false
|
||||
;;
|
||||
-Wl,*)
|
||||
arg=${1#-Wl,}
|
||||
save_ifs="$IFS"; IFS=','
|
||||
for flag in $arg; do
|
||||
IFS="$save_ifs"
|
||||
linker_opts="$linker_opts $flag"
|
||||
done
|
||||
IFS="$save_ifs"
|
||||
;;
|
||||
-Xlinker)
|
||||
eat=1
|
||||
linker_opts="$linker_opts $2"
|
||||
;;
|
||||
-*)
|
||||
set x "$@" "$1"
|
||||
shift
|
||||
;;
|
||||
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
|
||||
func_file_conv "$1"
|
||||
set x "$@" -Tp"$file"
|
||||
shift
|
||||
;;
|
||||
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
|
||||
func_file_conv "$1" mingw
|
||||
set x "$@" "$file"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set x "$@" "$1"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
shift
|
||||
done
|
||||
if test -n "$linker_opts"; then
|
||||
linker_opts="-link$linker_opts"
|
||||
fi
|
||||
exec "$@" $linker_opts
|
||||
exit 1
|
||||
}
|
||||
|
||||
eat=
|
||||
|
||||
case $1 in
|
||||
'')
|
||||
echo "$0: No command. Try '$0 --help' for more information." 1>&2
|
||||
exit 1;
|
||||
;;
|
||||
-h | --h*)
|
||||
cat <<\EOF
|
||||
Usage: compile [--help] [--version] PROGRAM [ARGS]
|
||||
|
||||
Wrapper for compilers which do not understand '-c -o'.
|
||||
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
|
||||
arguments, and rename the output as expected.
|
||||
|
||||
If you are trying to build a whole package this is not the
|
||||
right script to run: please start by reading the file 'INSTALL'.
|
||||
|
||||
Report bugs to <bug-automake@gnu.org>.
|
||||
EOF
|
||||
exit $?
|
||||
;;
|
||||
-v | --v*)
|
||||
echo "compile $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
|
||||
icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
|
||||
func_cl_wrapper "$@" # Doesn't return...
|
||||
;;
|
||||
esac
|
||||
|
||||
ofile=
|
||||
cfile=
|
||||
|
||||
for arg
|
||||
do
|
||||
if test -n "$eat"; then
|
||||
eat=
|
||||
else
|
||||
case $1 in
|
||||
-o)
|
||||
# configure might choose to run compile as 'compile cc -o foo foo.c'.
|
||||
# So we strip '-o arg' only if arg is an object.
|
||||
eat=1
|
||||
case $2 in
|
||||
*.o | *.obj)
|
||||
ofile=$2
|
||||
;;
|
||||
*)
|
||||
set x "$@" -o "$2"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*.c)
|
||||
cfile=$1
|
||||
set x "$@" "$1"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set x "$@" "$1"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
shift
|
||||
done
|
||||
|
||||
if test -z "$ofile" || test -z "$cfile"; then
|
||||
# If no '-o' option was seen then we might have been invoked from a
|
||||
# pattern rule where we don't need one. That is ok -- this is a
|
||||
# normal compilation that the losing compiler can handle. If no
|
||||
# '.c' file was seen then we are probably linking. That is also
|
||||
# ok.
|
||||
exec "$@"
|
||||
fi
|
||||
|
||||
# Name of file we expect compiler to create.
|
||||
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
|
||||
|
||||
# Create the lock directory.
|
||||
# Note: use '[/\\:.-]' here to ensure that we don't use the same name
|
||||
# that we are using for the .o file. Also, base the name on the expected
|
||||
# object file name, since that is what matters with a parallel build.
|
||||
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
|
||||
while true; do
|
||||
if mkdir "$lockdir" >/dev/null 2>&1; then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
# FIXME: race condition here if user kills between mkdir and trap.
|
||||
trap "rmdir '$lockdir'; exit 1" 1 2 15
|
||||
|
||||
# Run the compile.
|
||||
"$@"
|
||||
ret=$?
|
||||
|
||||
if test -f "$cofile"; then
|
||||
test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
|
||||
elif test -f "${cofile}bj"; then
|
||||
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
|
||||
fi
|
||||
|
||||
rmdir "$lockdir"
|
||||
exit $ret
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'before-save-hook 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC0"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
1754
config.guess
vendored
Executable file
1754
config.guess
vendored
Executable file
File diff suppressed because it is too large
Load diff
1890
config.sub
vendored
Executable file
1890
config.sub
vendored
Executable file
File diff suppressed because it is too large
Load diff
827
configure.ac
Normal file
827
configure.ac
Normal file
|
@ -0,0 +1,827 @@
|
|||
AC_PREREQ([2.69])
|
||||
|
||||
m4_define([knot_VERSION_MAJOR], 3)dnl
|
||||
m4_define([knot_VERSION_MINOR], 4)dnl
|
||||
m4_define([knot_VERSION_PATCH], 6)dnl Leave empty if the master branch!
|
||||
m4_include([m4/knot-version.m4])
|
||||
|
||||
AC_INIT([knot], [knot_PKG_VERSION], [knot-dns@labs.nic.cz])
|
||||
AM_INIT_AUTOMAKE([foreign std-options subdir-objects no-dist-gzip dist-xz -Wall -Werror])
|
||||
AM_SILENT_RULES([yes])
|
||||
AC_CONFIG_SRCDIR([src/knot])
|
||||
AC_CONFIG_HEADERS([src/config.h])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
# Update library versions
|
||||
# https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
||||
KNOT_LIB_VERSION([libknot], 15, 0, 0)
|
||||
KNOT_LIB_VERSION([libdnssec], 9, 0, 0)
|
||||
KNOT_LIB_VERSION([libzscanner], 4, 0, 0)
|
||||
|
||||
AC_SUBST([KNOT_VERSION_MAJOR], knot_VERSION_MAJOR)
|
||||
AC_SUBST([KNOT_VERSION_MINOR], knot_VERSION_MINOR)
|
||||
AC_SUBST([KNOT_VERSION_PATCH], knot_VERSION_PATCH)
|
||||
|
||||
AC_CONFIG_FILES([src/libknot/version.h
|
||||
src/libdnssec/version.h
|
||||
src/libzscanner/version.h])
|
||||
|
||||
# Automatically update release date based on NEWS
|
||||
AC_PROG_SED
|
||||
release_date=$($SED -n 's/^Knot DNS .* (\(.*\))/\1/p;q;' ${srcdir}/NEWS)
|
||||
AC_SUBST([RELEASE_DATE], $release_date)
|
||||
|
||||
# Set compiler compatibility flags
|
||||
AC_PROG_CC
|
||||
AC_PROG_CPP_WERROR
|
||||
|
||||
# Set default CFLAGS
|
||||
CFLAGS="$CFLAGS -Wall -Wshadow -Werror=format-security -Werror=implicit -Werror=attributes -Wstrict-prototypes"
|
||||
|
||||
AX_CHECK_COMPILE_FLAG("-fpredictive-commoning", [CFLAGS="$CFLAGS -fpredictive-commoning"], [], "-Werror")
|
||||
AX_CHECK_LINK_FLAG(["-Wl,--exclude-libs,ALL"], [ldflag_exclude_libs="-Wl,--exclude-libs,ALL"], [ldflag_exclude_libs=""], "")
|
||||
AC_SUBST([LDFLAG_EXCLUDE_LIBS], $ldflag_exclude_libs)
|
||||
|
||||
# Get processor byte ordering
|
||||
AC_C_BIGENDIAN([endianity=big-endian], [endianity=little-endian])
|
||||
AS_IF([test "$endianity" = "little-endian"],[
|
||||
AC_DEFINE([ENDIANITY_LITTLE], [1], [System is little-endian.])])
|
||||
|
||||
# Check if an archiver is available
|
||||
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
||||
|
||||
AC_PROG_INSTALL
|
||||
|
||||
# Initialize libtool
|
||||
LT_INIT
|
||||
|
||||
# Build DLLs on Cygwin/MSYS2
|
||||
AS_CASE([$host_os],
|
||||
[cygwin* | msys*], [LT_NO_UNDEFINED="-no-undefined"]
|
||||
)
|
||||
AC_SUBST(LT_NO_UNDEFINED)
|
||||
|
||||
# Use pkg-config
|
||||
PKG_PROG_PKG_CONFIG
|
||||
m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], [AC_SUBST([pkgconfigdir], ['${libdir}/pkgconfig'])])
|
||||
AC_CONFIG_FILES([src/knotd.pc
|
||||
src/libknot.pc
|
||||
src/libdnssec.pc
|
||||
src/libzscanner.pc
|
||||
])
|
||||
|
||||
# Default directories
|
||||
knot_prefix=$ac_default_prefix
|
||||
AS_IF([test "$prefix" != NONE], [knot_prefix=$prefix])
|
||||
|
||||
run_dir="${localstatedir}/run/knot"
|
||||
AC_ARG_WITH([rundir],
|
||||
AS_HELP_STRING([--with-rundir=path], [Path to run-time variable data (pid, sockets...). [default=LOCALSTATEDIR/run/knot]]),
|
||||
[run_dir=$withval])
|
||||
AC_SUBST(run_dir)
|
||||
|
||||
storage_dir="${localstatedir}/lib/knot"
|
||||
AC_ARG_WITH([storage],
|
||||
AS_HELP_STRING([--with-storage=path], [Default storage directory (slave zones, persistent data). [default=LOCALSTATEDIR/lib/knot]]),
|
||||
[storage_dir=$withval])
|
||||
AC_SUBST(storage_dir)
|
||||
|
||||
config_dir="${sysconfdir}/knot"
|
||||
AC_ARG_WITH([configdir],
|
||||
AS_HELP_STRING([--with-configdir=path], [Default directory for configuration. [default=SYSCONFDIR/knot]]),
|
||||
[config_dir=$withval])
|
||||
AC_SUBST(config_dir)
|
||||
|
||||
module_dir=
|
||||
module_instdir="${libdir}/knot/modules-${KNOT_VERSION_MAJOR}.${KNOT_VERSION_MINOR}"
|
||||
AC_ARG_WITH([moduledir],
|
||||
AS_HELP_STRING([--with-moduledir=path], [Path to auto-loaded dynamic modules. [default not set]]),
|
||||
[module_dir=$withval module_instdir=$module_dir])
|
||||
AC_SUBST(module_instdir)
|
||||
AC_SUBST(module_dir)
|
||||
|
||||
# Build Knot DNS daemon
|
||||
AC_ARG_ENABLE([daemon],
|
||||
AS_HELP_STRING([--disable-daemon], [Don't build Knot DNS main daemon]), [], [enable_daemon=yes])
|
||||
AM_CONDITIONAL([HAVE_DAEMON], [test "$enable_daemon" = "yes"])
|
||||
|
||||
# Build Knot DNS modules
|
||||
AC_ARG_ENABLE([modules],
|
||||
AS_HELP_STRING([--disable-modules], [Don't build Knot DNS modules]), [], [enable_modules=yes])
|
||||
|
||||
# Build Knot DNS utilities
|
||||
AC_ARG_ENABLE([utilities],
|
||||
AS_HELP_STRING([--disable-utilities], [Don't build Knot DNS utilities]), [], [enable_utilities=yes])
|
||||
AM_CONDITIONAL([HAVE_UTILS], [test "$enable_utilities" = "yes"])
|
||||
AM_CONDITIONAL([HAVE_LIBUTILS], test "$enable_utilities" != "no" -o \
|
||||
"$enable_daemon" != "no")
|
||||
|
||||
# Build Knot DNS documentation
|
||||
AC_ARG_ENABLE([documentation],
|
||||
AS_HELP_STRING([--disable-documentation], [Don't build Knot DNS documentation]), [], [enable_documentation=yes])
|
||||
AS_IF([test "$enable_documentation" != "no"], [
|
||||
AC_PATH_PROG([SPHINXBUILD], [sphinx-build], [false])
|
||||
AS_IF([test "$SPHINXBUILD" != "false"], [
|
||||
enable_documentation="man html epub"
|
||||
AC_PATH_PROG([PDFLATEX], [pdflatex], [false])
|
||||
AS_IF([test "$PDFLATEX" != "false"], [
|
||||
enable_documentation="$enable_documentation pdf"
|
||||
])
|
||||
])
|
||||
])
|
||||
AM_CONDITIONAL([HAVE_DOCS], [test "$enable_documentation" != "no"])
|
||||
AM_CONDITIONAL([HAVE_SPHINX], [test "$SPHINXBUILD" != "false"])
|
||||
AM_CONDITIONAL([HAVE_PDFLATEX], test "$PDFLATEX" != "false")
|
||||
|
||||
######################
|
||||
# Generic dependencies
|
||||
######################
|
||||
|
||||
AC_ARG_ENABLE([fastparser],
|
||||
AS_HELP_STRING([--disable-fastparser], [Disable use of fast zone parser]),
|
||||
[], [AS_IF([test -d ".git"], [enable_fastparser=no], [enable_fastparser=yes])]
|
||||
)
|
||||
AM_CONDITIONAL([FAST_PARSER], [test "$enable_fastparser" = "yes"])
|
||||
|
||||
# GnuTLS crypto backend
|
||||
PKG_CHECK_MODULES([gnutls], [gnutls >= 3.6.10], [
|
||||
save_CFLAGS=$CFLAGS
|
||||
save_LIBS=$LIBS
|
||||
CFLAGS="$CFLAGS $gnutls_CFLAGS"
|
||||
LIBS="$LIBS $gnutls_LIBS"
|
||||
|
||||
AC_CHECK_FUNC([gnutls_pkcs11_copy_pubkey], [enable_pkcs11=yes], [enable_pkcs11=no])
|
||||
AS_IF([test "$enable_pkcs11" = yes],
|
||||
[AC_DEFINE([ENABLE_PKCS11], [1], [PKCS #11 support available])])
|
||||
|
||||
AC_CHECK_DECL([GNUTLS_SIGN_EDDSA_ED448],
|
||||
[AC_DEFINE([HAVE_ED448], [1], [GnuTLS ED448 support available])
|
||||
enable_ed448=yes],
|
||||
[enable_ed448=no],
|
||||
[#include <gnutls/gnutls.h>])
|
||||
|
||||
AC_CHECK_FUNC([gnutls_early_cipher_get],
|
||||
[AC_DEFINE([HAVE_GNUTLS_QUIC], [1], [gnutls_early_cipher_get available])
|
||||
gnutls_quic=yes], [gnutls_quic=no])
|
||||
|
||||
CFLAGS=$save_CFLAGS
|
||||
LIBS=$save_LIBS
|
||||
])
|
||||
AM_CONDITIONAL([ENABLE_PKCS11], [test "$enable_pkcs11" = "yes"])
|
||||
|
||||
AC_ARG_ENABLE([recvmmsg],
|
||||
AS_HELP_STRING([--enable-recvmmsg=auto|yes|no], [enable recvmmsg() network API [default=auto]]),
|
||||
[], [enable_recvmmsg=auto])
|
||||
|
||||
AS_CASE([$enable_recvmmsg],
|
||||
[auto|yes],[
|
||||
AC_CHECK_FUNC([recvmmsg],
|
||||
[AC_CHECK_FUNC([sendmmsg],[enable_recvmmsg=yes],[enable_recvmmsg=no])],
|
||||
[enable_recvmmsg=no])],
|
||||
[no],[],
|
||||
[*], [AC_MSG_ERROR([Invalid value of --enable-recvmmsg.]
|
||||
)])
|
||||
|
||||
AS_IF([test "$enable_recvmmsg" = yes],[
|
||||
AC_DEFINE([ENABLE_RECVMMSG], [1], [Use recvmmsg().])])
|
||||
|
||||
# XDP support
|
||||
AC_ARG_ENABLE([xdp],
|
||||
AS_HELP_STRING([--enable-xdp=auto|yes|no], [enable eXpress Data Path [default=auto]]),
|
||||
[], [enable_xdp=auto])
|
||||
|
||||
PKG_CHECK_MODULES([libbpf], [libbpf],
|
||||
[save_LIBS=$LIBS
|
||||
LIBS="$LIBS $libbpf_LIBS"
|
||||
AC_CHECK_FUNC([bpf_object__find_map_by_offset], [libbpf1=no], [libbpf1=yes])
|
||||
LIBS=$save_LIBS
|
||||
have_libbpf=yes],
|
||||
[have_libbpf=no]
|
||||
)
|
||||
|
||||
AS_CASE([$enable_xdp],
|
||||
[auto], [AS_IF([test "$have_libbpf" = "yes"], [enable_xdp=yes], [enable_xdp=no])],
|
||||
[yes], [AS_IF([test "$have_libbpf" = "yes"], [enable_xdp=yes], [AC_MSG_ERROR([libbpf not available])])],
|
||||
[no], [],
|
||||
[*], [AC_MSG_ERROR([Invalid value of --enable-xdp.])]
|
||||
)
|
||||
AM_CONDITIONAL([ENABLE_XDP], [test "$enable_xdp" != "no"])
|
||||
|
||||
AS_IF([test "$enable_xdp" = "yes"], [
|
||||
PKG_CHECK_MODULES([libxdp], [libxdp], [enable_xdp=libxdp], [enable_xdp=yes])
|
||||
AS_IF([test "$enable_xdp" = "libxdp"],
|
||||
[AC_DEFINE([USE_LIBXDP], [1], [Use libxdp.])
|
||||
libbpf_CFLAGS="$libbpf_CFLAGS $libxdp_CFLAGS"
|
||||
libbpf_LIBS="$libbpf_LIBS $libxdp_LIBS"],
|
||||
[AS_IF([test "$libbpf1" = "yes"], [AC_MSG_ERROR([libxdp not available])])]
|
||||
)]
|
||||
)
|
||||
AC_SUBST([libbpf_CFLAGS])
|
||||
AC_SUBST([libbpf_LIBS])
|
||||
|
||||
AS_IF([test "$enable_xdp" != "no"],[
|
||||
AC_DEFINE([ENABLE_XDP], [1], [Use eXpress Data Path.])])
|
||||
|
||||
# Reuseport support
|
||||
AS_CASE([$host_os],
|
||||
[freebsd*], [reuseport_opt=SO_REUSEPORT_LB],
|
||||
[*], [reuseport_opt=SO_REUSEPORT],
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE([reuseport],
|
||||
AS_HELP_STRING([--enable-reuseport=auto|yes|no],
|
||||
[enable SO_REUSEPORT(_LB) support [default=auto]]),
|
||||
[], [enable_reuseport=auto]
|
||||
)
|
||||
|
||||
AS_CASE([$enable_reuseport],
|
||||
[auto], [
|
||||
AS_CASE([$host_os],
|
||||
[freebsd*|linux*], [AC_CHECK_DECL([$reuseport_opt],
|
||||
[enable_reuseport=yes],
|
||||
[enable_reuseport=no],
|
||||
[#include <sys/socket.h>
|
||||
])],
|
||||
[*], [enable_reuseport=no]
|
||||
)],
|
||||
[yes], [AC_CHECK_DECL([$reuseport_opt], [],
|
||||
[AC_MSG_ERROR([SO_REUSEPORT(_LB) not supported.])],
|
||||
[#include <sys/socket.h>
|
||||
])],
|
||||
[no], [],
|
||||
[*], [AC_MSG_ERROR([Invalid value of --enable-reuseport.])]
|
||||
)
|
||||
|
||||
AS_IF([test "$enable_reuseport" = yes],[
|
||||
AC_DEFINE([ENABLE_REUSEPORT], [1], [Use SO_REUSEPORT(_LB).])])
|
||||
|
||||
#########################################
|
||||
# Dependencies needed for Knot DNS daemon
|
||||
#########################################
|
||||
|
||||
# Systemd integration
|
||||
AC_ARG_ENABLE([systemd],
|
||||
AS_HELP_STRING([--enable-systemd=auto|yes|no], [enable systemd integration [default=auto]]),
|
||||
[enable_systemd="$enableval"], [enable_systemd=auto])
|
||||
|
||||
AC_ARG_ENABLE([dbus],
|
||||
AS_HELP_STRING([--enable-dbus=auto|systemd|libdbus|no], [enable D-bus support [default=auto]]),
|
||||
[enable_dbus="$enableval"], [enable_dbus=auto])
|
||||
|
||||
AS_IF([test "$enable_daemon" = "yes"],[
|
||||
|
||||
AS_IF([test "$enable_systemd" != "no"],[
|
||||
AS_CASE([$enable_systemd],
|
||||
[auto],[PKG_CHECK_MODULES([systemd], [libsystemd], [enable_systemd=yes], [
|
||||
PKG_CHECK_MODULES([systemd], [libsystemd-daemon libsystemd-journal], [enable_systemd=yes], [enable_systemd=no])])],
|
||||
[yes],[PKG_CHECK_MODULES([systemd], [libsystemd], [], [
|
||||
PKG_CHECK_MODULES([systemd], [libsystemd-daemon libsystemd-journal])])],
|
||||
[*],[AC_MSG_ERROR([Invalid value of --enable-systemd.])])
|
||||
])
|
||||
|
||||
AS_IF([test "$enable_systemd" = "yes"],[
|
||||
AC_DEFINE([ENABLE_SYSTEMD], [1], [Use systemd integration.])])
|
||||
|
||||
AS_IF([test "$enable_dbus" != "no"],[
|
||||
AS_CASE([$enable_dbus],
|
||||
[auto],[AS_IF([test "$enable_systemd" = "yes"],
|
||||
[AC_DEFINE([ENABLE_DBUS_SYSTEMD], [1], [systemd D-Bus available])
|
||||
enable_dbus=systemd],
|
||||
[PKG_CHECK_MODULES([libdbus], [dbus-1],
|
||||
[AC_DEFINE([ENABLE_DBUS_LIBDBUS], [1], [libdbus D-Bus available])
|
||||
enable_dbus=libdbus],
|
||||
[enable_dbus=no])])],
|
||||
[systemd],[AS_IF([test "$enable_systemd" = "yes"],
|
||||
[AC_DEFINE([ENABLE_DBUS_SYSTEMD], [1], [systemd D-Bus available])
|
||||
enable_dbus=systemd],
|
||||
[AC_MSG_ERROR([systemd >= 221 not available.])])],
|
||||
[libdbus],[PKG_CHECK_MODULES([libdbus], [dbus-1],
|
||||
[AC_DEFINE([ENABLE_DBUS_LIBDBUS], [1], [libdbus D-Bus available])
|
||||
enable_dbus=libdbus],
|
||||
[AC_MSG_ERROR([libdbus not available.])])],
|
||||
[no],[enable_dbus=no],
|
||||
[*],[AC_MSG_ERROR([Invalid value of --enable-dbus.])])
|
||||
])
|
||||
|
||||
]) dnl enable_daemon
|
||||
|
||||
# Socket polling method
|
||||
socket_polling=
|
||||
AC_ARG_WITH([socket-polling],
|
||||
AS_HELP_STRING([--with-socket-polling=auto|poll|epoll|kqueue|libkqueue],
|
||||
[Use specific socket polling method [default=auto]]),
|
||||
[socket_polling=$withval], [socket_polling=auto]
|
||||
)
|
||||
|
||||
AS_CASE([$socket_polling],
|
||||
[auto], [AC_CHECK_FUNCS([kqueue],
|
||||
[AC_DEFINE([HAVE_KQUEUE], [1], [kqueue available])
|
||||
socket_polling=kqueue],
|
||||
[AC_CHECK_FUNCS([epoll_create],
|
||||
[AC_DEFINE([HAVE_EPOLL], [1], [epoll available])
|
||||
socket_polling=epoll],
|
||||
[socket_polling=poll])])],
|
||||
[poll], [socket_polling=poll],
|
||||
[epoll], [AC_CHECK_FUNCS([epoll_create],
|
||||
[AC_DEFINE([HAVE_EPOLL], [1], [epoll available])
|
||||
socket_polling=epoll],
|
||||
[AC_MSG_ERROR([epoll not available.])])],
|
||||
[kqueue], [AC_CHECK_FUNCS([kqueue],
|
||||
[AC_DEFINE([HAVE_KQUEUE], [1], [kqueue available])
|
||||
socket_polling=kqueue],
|
||||
[AC_MSG_ERROR([kqueue not available.])])],
|
||||
[libkqueue], [PKG_CHECK_MODULES([libkqueue], [libkqueue],
|
||||
[AC_DEFINE([HAVE_KQUEUE], [1], [libkqueue available])
|
||||
socket_polling=libkqueue],
|
||||
[AC_MSG_ERROR([libkqueue not available.])])],
|
||||
[*], [AC_MSG_ERROR([Invalid value of --socket-polling.])]
|
||||
)
|
||||
|
||||
# Alternative memory allocator
|
||||
malloc_LIBS=
|
||||
AC_ARG_WITH([memory-allocator],
|
||||
AS_HELP_STRING([--with-memory-allocator=auto|LIBRARY],
|
||||
[Use specific memory allocator for the server (e.g. jemalloc) [default=auto]]),
|
||||
AS_CASE([$withval],
|
||||
[auto], [],
|
||||
[*], [malloc_LIBS="-l$withval"]
|
||||
)
|
||||
with_memory_allocator=[$withval]
|
||||
)
|
||||
AS_IF([test "$with_memory_allocator" = ""], [with_memory_allocator="auto"])
|
||||
AC_SUBST([malloc_LIBS])
|
||||
|
||||
AS_IF([test "$enable_daemon" = "yes"],[
|
||||
|
||||
PKG_CHECK_MODULES([liburcu], [liburcu], [], [
|
||||
AC_MSG_ERROR([liburcu not found])
|
||||
])
|
||||
|
||||
])
|
||||
|
||||
static_modules=""
|
||||
shared_modules=""
|
||||
static_modules_declars=""
|
||||
static_modules_init=""
|
||||
doc_modules=""
|
||||
|
||||
KNOT_MODULE([authsignal], "yes")
|
||||
KNOT_MODULE([cookies], "yes")
|
||||
KNOT_MODULE([dnsproxy], "yes", "non-shareable")
|
||||
KNOT_MODULE([dnstap], "no")
|
||||
KNOT_MODULE([geoip], "yes")
|
||||
KNOT_MODULE([noudp], "yes")
|
||||
KNOT_MODULE([onlinesign], "yes", "non-shareable")
|
||||
KNOT_MODULE([probe], "yes")
|
||||
KNOT_MODULE([queryacl], "yes")
|
||||
KNOT_MODULE([rrl], "yes")
|
||||
KNOT_MODULE([stats], "yes")
|
||||
KNOT_MODULE([synthrecord], "yes")
|
||||
KNOT_MODULE([whoami], "yes")
|
||||
|
||||
AC_SUBST([STATIC_MODULES_DECLARS], [$(printf "$static_modules_declars")])
|
||||
AM_SUBST_NOTMAKE([STATIC_MODULES_DECLARS])
|
||||
AC_SUBST([STATIC_MODULES_INIT], [$(printf "$static_modules_init")])
|
||||
AM_SUBST_NOTMAKE([STATIC_MODULES_INIT])
|
||||
AC_SUBST([DOC_MODULES], [$(printf "$doc_modules")])
|
||||
AM_SUBST_NOTMAKE([DOC_MODULES])
|
||||
|
||||
# Check for Dnstap
|
||||
AC_ARG_ENABLE([dnstap],
|
||||
AS_HELP_STRING([--enable-dnstap], [Enable dnstap support for kdig (requires fstrm, protobuf-c)]),
|
||||
[], [enable_dnstap=no])
|
||||
|
||||
AS_IF([test "$enable_dnstap" != "no" -o "$STATIC_MODULE_dnstap" != "no" -o "$SHARED_MODULE_dnstap" != "no"],[
|
||||
AC_PATH_PROG([PROTOC_C], [protoc-c])
|
||||
AS_IF([test -z "$PROTOC_C"],[
|
||||
AC_MSG_ERROR([The protoc-c program was not found. Please install protobuf-c!])
|
||||
])
|
||||
PKG_CHECK_MODULES([libfstrm], [libfstrm])
|
||||
PKG_CHECK_MODULES([libprotobuf_c], [libprotobuf-c >= 1.0.0])
|
||||
AC_SUBST([DNSTAP_CFLAGS], ["$libfstrm_CFLAGS $libprotobuf_c_CFLAGS"])
|
||||
AC_SUBST([DNSTAP_LIBS], ["$libfstrm_LIBS $libprotobuf_c_LIBS"])
|
||||
])
|
||||
|
||||
AS_IF([test "$enable_dnstap" != "no"],[
|
||||
AC_DEFINE([USE_DNSTAP], [1], [Define to 1 to enable dnstap support for kdig])
|
||||
])
|
||||
AM_CONDITIONAL([HAVE_DNSTAP], test "$enable_dnstap" != "no")
|
||||
|
||||
AM_CONDITIONAL([HAVE_LIBDNSTAP], test "$enable_dnstap" != "no" -o \
|
||||
"$STATIC_MODULE_dnstap" != "no" -o \
|
||||
"$SHARED_MODULE_dnstap" != "no")
|
||||
# MaxMind DB for the GeoIP module
|
||||
AC_ARG_ENABLE([maxminddb],
|
||||
AS_HELP_STRING([--enable-maxminddb=auto|yes|no], [enable MaxMind DB [default=auto]]),
|
||||
[enable_maxminddb="$enableval"], [enable_maxminddb=auto])
|
||||
|
||||
AS_IF([test "$enable_daemon" = "no"],[enable_maxminddb=no])
|
||||
AS_CASE([$enable_maxminddb],
|
||||
[no],[],
|
||||
[auto],[PKG_CHECK_MODULES([libmaxminddb], [libmaxminddb], [enable_maxminddb=yes], [enable_maxminddb=no])],
|
||||
[yes], [PKG_CHECK_MODULES([libmaxminddb], [libmaxminddb])],
|
||||
[*],[
|
||||
save_CFLAGS="$CFLAGS"
|
||||
save_LIBS="$LIBS"
|
||||
AS_IF([test "$enable_maxminddb" != ""],[
|
||||
LIBS="$LIBS -L$enable_maxminddb"
|
||||
CFLAGS="$CFLAGS -I$enable_maxminddb/include"
|
||||
])
|
||||
AC_SEARCH_LIBS([MMDB_open], [maxminddb], [
|
||||
AS_IF([test "$enable_maxminddb" != ""], [
|
||||
libmaxminddb_CFLAGS="-I$enable_maxminddb/include"
|
||||
libmaxminddb_LIBS="-L$enable_maxminddb -lmaxminddb"
|
||||
],[
|
||||
libmaxminddb_CFLAGS=""
|
||||
libmaxminddb_LIBS="$ac_cv_search_MMDB_open"
|
||||
])
|
||||
],[AC_MSG_ERROR("not found in `$enable_maxminddb'")])
|
||||
CFLAGS="$save_CFLAGS"
|
||||
LIBS="$save_LIBS"
|
||||
AC_SUBST([libmaxminddb_CFLAGS])
|
||||
AC_SUBST([libmaxminddb_LIBS])
|
||||
enable_maxminddb=yes
|
||||
])
|
||||
|
||||
AS_IF([test "$enable_maxminddb" = yes], [AC_DEFINE([HAVE_MAXMINDDB], [1], [Define to 1 to enable MaxMind DB.])])
|
||||
AM_CONDITIONAL([HAVE_MAXMINDDB], [test "$enable_maxminddb" = yes])
|
||||
|
||||
AC_ARG_WITH([lmdb],
|
||||
[AS_HELP_STRING([--with-lmdb=DIR], [explicit location where to find LMDB])]
|
||||
)
|
||||
PKG_CHECK_MODULES([lmdb], [lmdb >= 0.9.15], [], [
|
||||
save_CPPFLAGS=$CPPFLAGS
|
||||
save_LIBS=$LIBS
|
||||
|
||||
have_lmdb=no
|
||||
|
||||
for try_lmdb in "$with_lmdb" "" "/usr/local" "/usr/pkg"; do
|
||||
AS_IF([test -d "$try_lmdb"], [
|
||||
lmdb_CFLAGS="-I$try_lmdb/include"
|
||||
lmdb_LIBS="-L$try_lmdb/lib"
|
||||
],[
|
||||
lmdb_CFLAGS=""
|
||||
lmdb_LIBS=""
|
||||
])
|
||||
|
||||
CPPFLAGS="$save_CPPFLAGS $lmdb_CFLAGS"
|
||||
LIBS="$save_LIBS $lmdb_LIBS"
|
||||
|
||||
AC_SEARCH_LIBS([mdb_txn_id], [lmdb], [
|
||||
have_lmdb=yes
|
||||
lmdb_LIBS="$lmdb_LIBS -llmdb"
|
||||
AC_SUBST([lmdb_CFLAGS])
|
||||
AC_SUBST([lmdb_LIBS])
|
||||
break
|
||||
])
|
||||
|
||||
# do not cache result of AC_SEARCH_LIBS test
|
||||
unset ac_cv_search_mdb_txn_id
|
||||
done
|
||||
|
||||
CPPFLAGS="$save_CPPFLAGS"
|
||||
LIBS="$save_LIBS"
|
||||
|
||||
AS_IF([test "$have_lmdb" = "no"], [
|
||||
AC_MSG_ERROR([lmdb library not found])
|
||||
])
|
||||
])
|
||||
|
||||
# LMDB mapping sizes
|
||||
conf_mapsize_default=500
|
||||
AC_ARG_WITH([conf_mapsize],
|
||||
AS_HELP_STRING([--with-conf-mapsize=NUM], [Configuration DB mapsize in MiB [default=$conf_mapsize_default]]),
|
||||
[conf_mapsize=$withval],[conf_mapsize=$conf_mapsize_default])
|
||||
|
||||
AS_CASE([$conf_mapsize],
|
||||
[yes],[conf_mapsize=$conf_mapsize_default],
|
||||
[no], [AC_MSG_ERROR([conf_mapsize must be a number])],
|
||||
[*], [AS_IF([test $conf_mapsize != $(( $conf_mapsize + 0 ))],
|
||||
[AC_MSG_ERROR(conf_mapsize must be an integer number)])])
|
||||
AC_DEFINE_UNQUOTED([CONF_MAPSIZE], [$conf_mapsize], [Configuration DB mapsize.])
|
||||
AC_SUBST(conf_mapsize)
|
||||
|
||||
# libedit
|
||||
AS_IF([test "$enable_daemon" = "yes" -o "$enable_utilities" = "yes"], [
|
||||
PKG_CHECK_MODULES([libedit], [libedit], [with_libedit=yes], [
|
||||
with_libedit=no
|
||||
AC_CHECK_HEADER([histedit.h], [
|
||||
# workaround for OpenBSD
|
||||
AS_CASE([$host_os],
|
||||
[openbsd*], [libedit_deps=-lcurses],
|
||||
[libedit_deps=]
|
||||
)
|
||||
AC_CHECK_LIB([edit], [el_init], [
|
||||
with_libedit=yes
|
||||
libedit_CFLAGS=
|
||||
libedit_LIBS="-ledit $libedit_deps"
|
||||
], [], [$libedit_deps]
|
||||
)
|
||||
])
|
||||
])
|
||||
AS_IF([test "$with_libedit" != "yes"], [
|
||||
AC_MSG_ERROR([libedit not found])
|
||||
])
|
||||
], [
|
||||
with_libedit=no
|
||||
libedit_CFLAGS=
|
||||
libedit_LIBS=
|
||||
])
|
||||
|
||||
# QUIC support
|
||||
AC_ARG_ENABLE([quic],
|
||||
AS_HELP_STRING([--enable-quic=auto|yes|no|embedded], [Support DoQ (needs libngtcp2 >= 0.17.0, gnutls >= 3.7.3) [default=auto]]),
|
||||
[], [enable_quic=auto])
|
||||
|
||||
AS_CASE([$enable_quic],
|
||||
[auto], [PKG_CHECK_MODULES([libngtcp2], [libngtcp2 >= 0.17.0 libngtcp2_crypto_gnutls], [enable_quic=yes], [enable_quic=no])],
|
||||
[yes], [PKG_CHECK_MODULES([libngtcp2], [libngtcp2 >= 0.17.0 libngtcp2_crypto_gnutls], [enable_quic=yes],
|
||||
AS_IF([test "$gnutls_quic" = "yes"],
|
||||
[enable_quic=embedded
|
||||
embedded_libngtcp2_CFLAGS="-I\$(top_srcdir)/src/contrib/libngtcp2 -I\$(top_srcdir)/src/contrib/libngtcp2/ngtcp2/lib"
|
||||
embedded_libngtcp2_LIBS=$libelf_LIBS
|
||||
libngtcp2_CFLAGS="-I\$(top_srcdir)/src/contrib/libngtcp2"],
|
||||
[enable_quic=no
|
||||
AC_MSG_WARN([gnutls >= 3.7.3 is required for QUIC])]))],
|
||||
[embedded], [enable_quic=embedded
|
||||
embedded_libngtcp2_CFLAGS="-I\$(top_srcdir)/src/contrib/libngtcp2 -I\$(top_srcdir)/src/contrib/libngtcp2/ngtcp2/lib"
|
||||
embedded_libngtcp2_LIBS=$libelf_LIBS
|
||||
libngtcp2_CFLAGS="-I\$(top_srcdir)/src/contrib/libngtcp2"],
|
||||
[no], [],
|
||||
[*], [AC_MSG_ERROR([Invalid value of --enable-quic.])]
|
||||
)
|
||||
AM_CONDITIONAL([EMBEDDED_LIBNGTCP2], [test "$enable_quic" = "embedded"])
|
||||
AM_CONDITIONAL([ENABLE_QUIC], [test "$enable_quic" != "no"])
|
||||
AC_SUBST([embedded_libngtcp2_CFLAGS])
|
||||
AC_SUBST([embedded_libngtcp2_LIBS])
|
||||
AC_SUBST([libngtcp2_CFLAGS])
|
||||
AC_SUBST([libngtcp2_LIBS])
|
||||
|
||||
AS_IF([test "$enable_quic" != "no"], [
|
||||
AC_DEFINE([ENABLE_QUIC], [1], [Define to 1 to enable DoQ support using libngtcp2 and GnuTLS])])
|
||||
|
||||
############################################
|
||||
# Dependencies needed for Knot DNS utilities
|
||||
############################################
|
||||
|
||||
dnl Check for libidn2.
|
||||
AC_ARG_WITH(libidn,
|
||||
AS_HELP_STRING([--with-libidn=[DIR]], [Support IDN (needs GNU libidn2)]),
|
||||
with_libidn=$withval,
|
||||
with_libidn=yes
|
||||
)
|
||||
|
||||
dnl Check for libnghttp2.
|
||||
AC_ARG_WITH(libnghttp2,
|
||||
AS_HELP_STRING([--with-libnghttp2=[DIR]], [Support DoH (needs libnghttp2)]),
|
||||
with_libnghttp2=$withval,
|
||||
with_libnghttp2=yes
|
||||
)
|
||||
|
||||
AS_IF([test "$enable_utilities" = "yes"], [
|
||||
AS_IF([test "$with_libidn" != "no"], [
|
||||
PKG_CHECK_MODULES([libidn2], [libidn2 >= 2.0.0], [
|
||||
with_libidn=libidn2
|
||||
AC_DEFINE([LIBIDN], [1], [Define to 1 to enable IDN support])
|
||||
], [
|
||||
with_libidn=no
|
||||
AC_MSG_WARN([libidn2 not found])
|
||||
])
|
||||
])
|
||||
|
||||
AS_IF([test "$with_libnghttp2" != "no"], [
|
||||
PKG_CHECK_MODULES([libnghttp2], [libnghttp2], [
|
||||
with_libnghttp2=libnghttp2
|
||||
AC_DEFINE([LIBNGHTTP2], [1], [Define to 1 to enable DoH support])
|
||||
], [
|
||||
with_libnghttp2=no
|
||||
AC_MSG_WARN([libnghttp2 not found])
|
||||
])
|
||||
])
|
||||
|
||||
AS_IF([test "$enable_xdp" != "no"], [
|
||||
PKG_CHECK_MODULES([libmnl], [libmnl], [], [
|
||||
AC_MSG_ERROR([libmnl not found])
|
||||
])
|
||||
])
|
||||
]) # Knot DNS utilities dependencies
|
||||
|
||||
AC_ARG_ENABLE([cap-ng],
|
||||
AS_HELP_STRING([--enable-cap-ng=auto|no], [enable POSIX capabilities [default=auto]]),
|
||||
[enable_cap_ng="$enableval"], [enable_cap_ng=auto])
|
||||
|
||||
AS_IF([test "$enable_daemon" = "yes"], [
|
||||
|
||||
AS_IF([test "$enable_cap_ng" != "no"],[
|
||||
PKG_CHECK_MODULES([cap_ng], [cap-ng], [enable_cap_ng=yes], [
|
||||
enable_cap_ng=no
|
||||
AC_CHECK_HEADER([cap-ng.h], [
|
||||
save_LIBS="$LIBS"
|
||||
AC_SEARCH_LIBS([capng_apply], [cap-ng], [
|
||||
AS_IF([test "$ac_cv_search_capng_apply" != "none required"],
|
||||
[cap_ng_LIBS="$ac_cv_search_capng_apply"], [cap_ng_LIBS=])
|
||||
AC_SUBST([cap_ng_LIBS])
|
||||
enable_cap_ng=yes
|
||||
])
|
||||
LIBS="$save_LIBS"
|
||||
])
|
||||
])
|
||||
], [
|
||||
enable_cap_ng=no
|
||||
cap_ng_LIBS=
|
||||
])])
|
||||
|
||||
AS_IF([test "$enable_cap_ng" = yes],
|
||||
[AC_DEFINE([ENABLE_CAP_NG], [1], [POSIX capabilities available])]
|
||||
)
|
||||
|
||||
save_LIBS="$LIBS"
|
||||
AC_SEARCH_LIBS([pthread_create], [pthread], [
|
||||
AS_IF([test "$ac_cv_search_pthread_create" != "none required"],
|
||||
[pthread_LIBS="$ac_cv_search_pthread_create"], [pthread_LIBS=])
|
||||
AC_SUBST([pthread_LIBS])
|
||||
],[
|
||||
AC_MSG_ERROR([pthreads not found])
|
||||
])
|
||||
LIBS="$save_LIBS"
|
||||
|
||||
save_LIBS="$LIBS"
|
||||
AC_SEARCH_LIBS([dlopen], [dl], [
|
||||
AS_IF([test "$ac_cv_search_dlopen" != "none required"],
|
||||
[dlopen_LIBS="$ac_cv_search_dlopen"], [dlopen_LIBS=])
|
||||
AC_SUBST([dlopen_LIBS])
|
||||
],[
|
||||
AC_MSG_ERROR([dlopen not found])
|
||||
])
|
||||
LIBS="$save_LIBS"
|
||||
|
||||
save_LIBS="$LIBS"
|
||||
AC_SEARCH_LIBS([pow], [m], [
|
||||
AS_IF([test "$ac_cv_search_pow" != "none required"],
|
||||
[math_LIBS="$ac_cv_search_pow"], [math_LIBS=])
|
||||
AC_SUBST([math_LIBS])
|
||||
],[
|
||||
AC_MSG_ERROR([math not found])
|
||||
])
|
||||
LIBS="$save_LIBS"
|
||||
|
||||
save_LIBS="$LIBS"
|
||||
AC_SEARCH_LIBS([pthread_setaffinity_np], [pthread], [
|
||||
AC_DEFINE([HAVE_PTHREAD_SETAFFINITY_NP], [1],
|
||||
[Define to 1 if you have the pthread_setaffinity_np function.])
|
||||
])
|
||||
LIBS="$save_LIBS"
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_RESOLV
|
||||
AC_CHECK_HEADERS_ONCE([pthread_np.h sys/uio.h bsd/string.h])
|
||||
|
||||
# Checks for optional library functions.
|
||||
AC_CHECK_FUNCS([accept4 fgetln getline initgroups malloc_trim \
|
||||
setgroups strlcat strlcpy sysctlbyname])
|
||||
|
||||
# Check for robust memory cleanup implementations.
|
||||
AC_CHECK_FUNC([explicit_bzero], [
|
||||
AC_DEFINE([HAVE_EXPLICIT_BZERO], [1], [explicit_bzero available])
|
||||
explicit_bzero=yes], [explicit_bzero=no]
|
||||
)
|
||||
AC_CHECK_FUNC([explicit_memset], [
|
||||
AC_DEFINE([HAVE_EXPLICIT_MEMSET], [1], [explicit_memset available])
|
||||
explicit_memset=yes], [explicit_memset=no]
|
||||
)
|
||||
AM_CONDITIONAL([USE_GNUTLS_MEMSET], [test "$explicit_bzero" = "no" -a "$explicit_memset" = "no"])
|
||||
|
||||
# Check for mandatory library functions.
|
||||
AC_CHECK_FUNC([vasprintf], [], [
|
||||
AC_MSG_ERROR([vasprintf support in the libc is required])])
|
||||
|
||||
# Check for cpu_set_t/cpuset_t compatibility
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]], [[cpu_set_t set; CPU_ZERO(&set);]])],
|
||||
[AC_DEFINE(HAVE_CPUSET_LINUX, 1, [Define if Linux-like cpu_set_t exists.])])
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread_np.h>]], [[cpuset_t set; CPU_ZERO(&set);]])],
|
||||
[AC_DEFINE(HAVE_CPUSET_BSD, 1, [Define if FreeBSD-like cpuset_t exists.])])
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sched.h>]], [[cpuset_t* set = cpuset_create(); cpuset_destroy(set);]])],
|
||||
[AC_DEFINE(HAVE_CPUSET_NETBSD, 1, [Define if cpuset_t and cpuset(3) exists.])])
|
||||
|
||||
# Check for a C11 or GCC-style '__atomic' compiler builtin atomic functions.
|
||||
atomic_type="none"
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([[#if (__STDC_VERSION__ < 201112L) || defined(__STDC_NO_ATOMICS__)
|
||||
#error "No C11 atomics"
|
||||
#endif
|
||||
#include <stdatomic.h>]],
|
||||
[[atomic_uint_fast64_t val = 0;]]
|
||||
[[atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);]])],
|
||||
[AC_DEFINE(HAVE_C11_ATOMIC, 1, [Define to 1 if you have C11 'atomic' functions.])
|
||||
atomic_type="C11"],
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([[#include <stdint.h>]],
|
||||
[[uint64_t val = 0; __atomic_add_fetch(&val, 1, __ATOMIC_RELAXED);]])],
|
||||
[AC_DEFINE(HAVE_GCC_ATOMIC, 1, [Define to 1 if you have GCC-style '__atomic' functions.])
|
||||
atomic_type="__atomic"]
|
||||
)
|
||||
)
|
||||
|
||||
# Prepare CFLAG_VISIBILITY to be used where needed
|
||||
gl_VISIBILITY()
|
||||
|
||||
# Add code coverage macro
|
||||
AX_CODE_COVERAGE
|
||||
|
||||
AX_SANITIZER
|
||||
AS_IF([test -n "$sanitizer_CFLAGS"], [CFLAGS="$CFLAGS $sanitizer_CFLAGS"])
|
||||
AM_CONDITIONAL([FUZZER], [test "$with_fuzzer" != "no"])
|
||||
AM_CONDITIONAL([OSS_FUZZ], [test "$with_oss_fuzz" != "no"])
|
||||
|
||||
# Strip -fdebug-prefix-map= parameters from flags for better reproducibility of binaries.
|
||||
filtered_cflags=$(echo -n "$CFLAGS" | \
|
||||
sed 's/[[^[:alnum:]]]-f[[^[:space:]]]*-prefix-map=[[^[:space:]]]*//g')
|
||||
filtered_cppflags=$(echo -n "$CPPFLAGS" | \
|
||||
sed 's/[[^[:alnum:]]]-f[[^[:space:]]]*-prefix-map=[[^[:space:]]]*//g')
|
||||
filtered_config_params=$(echo -n "$ac_configure_args" | \
|
||||
sed 's/[[^[:alnum:]]]-f[[^[:space:]]]*-prefix-map=[[^[:space:]]]*//g')
|
||||
|
||||
result_msg_base="
|
||||
Target: $host_os $host_cpu $endianity
|
||||
Compiler: ${CC}
|
||||
CFLAGS: ${filtered_cflags} ${filtered_cppflags}
|
||||
LIBS: ${LIBS} ${LDFLAGS}
|
||||
LibURCU: ${liburcu_LIBS} ${liburcu_CFLAGS}
|
||||
GnuTLS: ${gnutls_LIBS} ${gnutls_CFLAGS}
|
||||
Libedit: ${libedit_LIBS} ${libedit_CFLAGS}
|
||||
LMDB: ${lmdb_LIBS} ${lmdb_CFLAGS}
|
||||
Config: ${conf_mapsize} MiB default mapsize
|
||||
|
||||
Prefix: ${knot_prefix}
|
||||
Run dir: ${run_dir}
|
||||
Storage dir: ${storage_dir}
|
||||
Config dir: ${config_dir}
|
||||
Module dir: ${module_dir}
|
||||
|
||||
Static modules: ${static_modules}
|
||||
Shared modules: ${shared_modules}
|
||||
|
||||
Knot DNS libraries: yes
|
||||
Knot DNS daemon: ${enable_daemon}
|
||||
Knot DNS utilities: ${enable_utilities}
|
||||
Knot DNS documentation: ${enable_documentation}
|
||||
|
||||
Use recvmmsg: ${enable_recvmmsg}
|
||||
Use SO_REUSEPORT(_LB): ${enable_reuseport}
|
||||
XDP support: ${enable_xdp}
|
||||
DoQ support: ${enable_quic}
|
||||
Socket polling: ${socket_polling}
|
||||
Atomic support: ${atomic_type}
|
||||
Memory allocator: ${with_memory_allocator}
|
||||
Fast zone parser: ${enable_fastparser}
|
||||
Utilities with IDN: ${with_libidn}
|
||||
Utilities with DoH: ${with_libnghttp2}
|
||||
Utilities with Dnstap: ${enable_dnstap}
|
||||
MaxMind DB support: ${enable_maxminddb}
|
||||
Systemd integration: ${enable_systemd}
|
||||
D-Bus support: ${enable_dbus}
|
||||
POSIX capabilities: ${enable_cap_ng}
|
||||
PKCS #11 support: ${enable_pkcs11}
|
||||
Ed448 support: ${enable_ed448}
|
||||
|
||||
Code coverage: ${enable_code_coverage}
|
||||
Sanitizer: ${with_sanitizer}
|
||||
LibFuzzer: ${with_fuzzer}
|
||||
OSS-Fuzz: ${with_oss_fuzz}"
|
||||
|
||||
result_msg_esc=$(echo -n " Configure:$filtered_config_params\n$result_msg_base" | sed '$!s/$/\\n/' | tr -d '\n')
|
||||
|
||||
AC_DEFINE_UNQUOTED([CONFIGURE_SUMMARY],["$result_msg_esc"],[Configure summary])
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
Doxyfile
|
||||
doc/Makefile
|
||||
tests/Makefile
|
||||
tests-fuzz/Makefile
|
||||
samples/Makefile
|
||||
distro/Makefile
|
||||
python/Makefile
|
||||
python/knot_exporter/Makefile
|
||||
python/knot_exporter/pyproject.toml
|
||||
python/knot_exporter/setup.py
|
||||
python/libknot/Makefile
|
||||
python/libknot/pyproject.toml
|
||||
python/libknot/setup.py
|
||||
python/libknot/libknot/__init__.py
|
||||
src/Makefile
|
||||
src/libknot/xdp/Makefile
|
||||
src/knot/modules/static_modules.h
|
||||
])
|
||||
|
||||
AC_CONFIG_FILES([doc/modules.rst],
|
||||
[cp doc/modules.rst "${srcdir}"/doc/modules.rst 2>/dev/null
|
||||
abs_srcdir=$(cd "${srcdir}" && pwd)
|
||||
ln -s -f "${abs_srcdir}"/src/knot/modules "${srcdir}"/doc 2>/dev/null])
|
||||
|
||||
AC_OUTPUT
|
||||
AC_MSG_RESULT([
|
||||
Knot DNS $VERSION
|
||||
$result_msg_base
|
||||
])
|
791
depcomp
Executable file
791
depcomp
Executable file
|
@ -0,0 +1,791 @@
|
|||
#! /bin/sh
|
||||
# depcomp - compile a program generating dependencies as side-effects
|
||||
|
||||
scriptversion=2018-03-07.03; # UTC
|
||||
|
||||
# Copyright (C) 1999-2021 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
||||
|
||||
case $1 in
|
||||
'')
|
||||
echo "$0: No command. Try '$0 --help' for more information." 1>&2
|
||||
exit 1;
|
||||
;;
|
||||
-h | --h*)
|
||||
cat <<\EOF
|
||||
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
||||
|
||||
Run PROGRAMS ARGS to compile a file, generating dependencies
|
||||
as side-effects.
|
||||
|
||||
Environment variables:
|
||||
depmode Dependency tracking mode.
|
||||
source Source file read by 'PROGRAMS ARGS'.
|
||||
object Object file output by 'PROGRAMS ARGS'.
|
||||
DEPDIR directory where to store dependencies.
|
||||
depfile Dependency file to output.
|
||||
tmpdepfile Temporary file to use when outputting dependencies.
|
||||
libtool Whether libtool is used (yes/no).
|
||||
|
||||
Report bugs to <bug-automake@gnu.org>.
|
||||
EOF
|
||||
exit $?
|
||||
;;
|
||||
-v | --v*)
|
||||
echo "depcomp $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
esac
|
||||
|
||||
# Get the directory component of the given path, and save it in the
|
||||
# global variables '$dir'. Note that this directory component will
|
||||
# be either empty or ending with a '/' character. This is deliberate.
|
||||
set_dir_from ()
|
||||
{
|
||||
case $1 in
|
||||
*/*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
|
||||
*) dir=;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Get the suffix-stripped basename of the given path, and save it the
|
||||
# global variable '$base'.
|
||||
set_base_from ()
|
||||
{
|
||||
base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
|
||||
}
|
||||
|
||||
# If no dependency file was actually created by the compiler invocation,
|
||||
# we still have to create a dummy depfile, to avoid errors with the
|
||||
# Makefile "include basename.Plo" scheme.
|
||||
make_dummy_depfile ()
|
||||
{
|
||||
echo "#dummy" > "$depfile"
|
||||
}
|
||||
|
||||
# Factor out some common post-processing of the generated depfile.
|
||||
# Requires the auxiliary global variable '$tmpdepfile' to be set.
|
||||
aix_post_process_depfile ()
|
||||
{
|
||||
# If the compiler actually managed to produce a dependency file,
|
||||
# post-process it.
|
||||
if test -f "$tmpdepfile"; then
|
||||
# Each line is of the form 'foo.o: dependency.h'.
|
||||
# Do two passes, one to just change these to
|
||||
# $object: dependency.h
|
||||
# and one to simply output
|
||||
# dependency.h:
|
||||
# which is needed to avoid the deleted-header problem.
|
||||
{ sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
|
||||
sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
|
||||
} > "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
else
|
||||
make_dummy_depfile
|
||||
fi
|
||||
}
|
||||
|
||||
# A tabulation character.
|
||||
tab=' '
|
||||
# A newline character.
|
||||
nl='
|
||||
'
|
||||
# Character ranges might be problematic outside the C locale.
|
||||
# These definitions help.
|
||||
upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
lower=abcdefghijklmnopqrstuvwxyz
|
||||
digits=0123456789
|
||||
alpha=${upper}${lower}
|
||||
|
||||
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
|
||||
depfile=${depfile-`echo "$object" |
|
||||
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
|
||||
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||
|
||||
rm -f "$tmpdepfile"
|
||||
|
||||
# Avoid interferences from the environment.
|
||||
gccflag= dashmflag=
|
||||
|
||||
# Some modes work just like other modes, but use different flags. We
|
||||
# parameterize here, but still list the modes in the big case below,
|
||||
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
||||
# here, because this file can only contain one case statement.
|
||||
if test "$depmode" = hp; then
|
||||
# HP compiler uses -M and no extra arg.
|
||||
gccflag=-M
|
||||
depmode=gcc
|
||||
fi
|
||||
|
||||
if test "$depmode" = dashXmstdout; then
|
||||
# This is just like dashmstdout with a different argument.
|
||||
dashmflag=-xM
|
||||
depmode=dashmstdout
|
||||
fi
|
||||
|
||||
cygpath_u="cygpath -u -f -"
|
||||
if test "$depmode" = msvcmsys; then
|
||||
# This is just like msvisualcpp but w/o cygpath translation.
|
||||
# Just convert the backslash-escaped backslashes to single forward
|
||||
# slashes to satisfy depend.m4
|
||||
cygpath_u='sed s,\\\\,/,g'
|
||||
depmode=msvisualcpp
|
||||
fi
|
||||
|
||||
if test "$depmode" = msvc7msys; then
|
||||
# This is just like msvc7 but w/o cygpath translation.
|
||||
# Just convert the backslash-escaped backslashes to single forward
|
||||
# slashes to satisfy depend.m4
|
||||
cygpath_u='sed s,\\\\,/,g'
|
||||
depmode=msvc7
|
||||
fi
|
||||
|
||||
if test "$depmode" = xlc; then
|
||||
# IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
|
||||
gccflag=-qmakedep=gcc,-MF
|
||||
depmode=gcc
|
||||
fi
|
||||
|
||||
case "$depmode" in
|
||||
gcc3)
|
||||
## gcc 3 implements dependency tracking that does exactly what
|
||||
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
||||
## it if -MD -MP comes after the -MF stuff. Hmm.
|
||||
## Unfortunately, FreeBSD c89 acceptance of flags depends upon
|
||||
## the command line argument order; so add the flags where they
|
||||
## appear in depend2.am. Note that the slowdown incurred here
|
||||
## affects only configure: in makefiles, %FASTDEP% shortcuts this.
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
|
||||
*) set fnord "$@" "$arg" ;;
|
||||
esac
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
done
|
||||
"$@"
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
mv "$tmpdepfile" "$depfile"
|
||||
;;
|
||||
|
||||
gcc)
|
||||
## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
|
||||
## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
|
||||
## (see the conditional assignment to $gccflag above).
|
||||
## There are various ways to get dependency output from gcc. Here's
|
||||
## why we pick this rather obscure method:
|
||||
## - Don't want to use -MD because we'd like the dependencies to end
|
||||
## up in a subdir. Having to rename by hand is ugly.
|
||||
## (We might end up doing this anyway to support other compilers.)
|
||||
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
||||
## -MM, not -M (despite what the docs say). Also, it might not be
|
||||
## supported by the other compilers which use the 'gcc' depmode.
|
||||
## - Using -M directly means running the compiler twice (even worse
|
||||
## than renaming).
|
||||
if test -z "$gccflag"; then
|
||||
gccflag=-MD,
|
||||
fi
|
||||
"$@" -Wp,"$gccflag$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
# The second -e expression handles DOS-style file names with drive
|
||||
# letters.
|
||||
sed -e 's/^[^:]*: / /' \
|
||||
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
||||
## This next piece of magic avoids the "deleted header file" problem.
|
||||
## The problem is that when a header file which appears in a .P file
|
||||
## is deleted, the dependency causes make to die (because there is
|
||||
## typically no way to rebuild the header). We avoid this by adding
|
||||
## dummy dependencies for each header file. Too bad gcc doesn't do
|
||||
## this for us directly.
|
||||
## Some versions of gcc put a space before the ':'. On the theory
|
||||
## that the space means something, we add a space to the output as
|
||||
## well. hp depmode also adds that space, but also prefixes the VPATH
|
||||
## to the object. Take care to not repeat it in the output.
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
tr ' ' "$nl" < "$tmpdepfile" \
|
||||
| sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
|
||||
| sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
hp)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
sgi)
|
||||
if test "$libtool" = yes; then
|
||||
"$@" "-Wp,-MDupdate,$tmpdepfile"
|
||||
else
|
||||
"$@" -MDupdate "$tmpdepfile"
|
||||
fi
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
|
||||
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
||||
echo "$object : \\" > "$depfile"
|
||||
# Clip off the initial element (the dependent). Don't try to be
|
||||
# clever and replace this with sed code, as IRIX sed won't handle
|
||||
# lines with more than a fixed number of characters (4096 in
|
||||
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
||||
# the IRIX cc adds comments like '#:fec' to the end of the
|
||||
# dependency line.
|
||||
tr ' ' "$nl" < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
|
||||
| tr "$nl" ' ' >> "$depfile"
|
||||
echo >> "$depfile"
|
||||
# The second pass generates a dummy entry for each header file.
|
||||
tr ' ' "$nl" < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||
>> "$depfile"
|
||||
else
|
||||
make_dummy_depfile
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
xlc)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
aix)
|
||||
# The C for AIX Compiler uses -M and outputs the dependencies
|
||||
# in a .u file. In older versions, this file always lives in the
|
||||
# current directory. Also, the AIX compiler puts '$object:' at the
|
||||
# start of each line; $object doesn't have directory information.
|
||||
# Version 6 uses the directory in both cases.
|
||||
set_dir_from "$object"
|
||||
set_base_from "$object"
|
||||
if test "$libtool" = yes; then
|
||||
tmpdepfile1=$dir$base.u
|
||||
tmpdepfile2=$base.u
|
||||
tmpdepfile3=$dir.libs/$base.u
|
||||
"$@" -Wc,-M
|
||||
else
|
||||
tmpdepfile1=$dir$base.u
|
||||
tmpdepfile2=$dir$base.u
|
||||
tmpdepfile3=$dir$base.u
|
||||
"$@" -M
|
||||
fi
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
do
|
||||
test -f "$tmpdepfile" && break
|
||||
done
|
||||
aix_post_process_depfile
|
||||
;;
|
||||
|
||||
tcc)
|
||||
# tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
|
||||
# FIXME: That version still under development at the moment of writing.
|
||||
# Make that this statement remains true also for stable, released
|
||||
# versions.
|
||||
# It will wrap lines (doesn't matter whether long or short) with a
|
||||
# trailing '\', as in:
|
||||
#
|
||||
# foo.o : \
|
||||
# foo.c \
|
||||
# foo.h \
|
||||
#
|
||||
# It will put a trailing '\' even on the last line, and will use leading
|
||||
# spaces rather than leading tabs (at least since its commit 0394caf7
|
||||
# "Emit spaces for -MD").
|
||||
"$@" -MD -MF "$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
# Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
|
||||
# We have to change lines of the first kind to '$object: \'.
|
||||
sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
|
||||
# And for each line of the second kind, we have to emit a 'dep.h:'
|
||||
# dummy dependency, to avoid the deleted-header problem.
|
||||
sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
## The order of this option in the case statement is important, since the
|
||||
## shell code in configure will try each of these formats in the order
|
||||
## listed in this file. A plain '-MD' option would be understood by many
|
||||
## compilers, so we must ensure this comes after the gcc and icc options.
|
||||
pgcc)
|
||||
# Portland's C compiler understands '-MD'.
|
||||
# Will always output deps to 'file.d' where file is the root name of the
|
||||
# source file under compilation, even if file resides in a subdirectory.
|
||||
# The object file name does not affect the name of the '.d' file.
|
||||
# pgcc 10.2 will output
|
||||
# foo.o: sub/foo.c sub/foo.h
|
||||
# and will wrap long lines using '\' :
|
||||
# foo.o: sub/foo.c ... \
|
||||
# sub/foo.h ... \
|
||||
# ...
|
||||
set_dir_from "$object"
|
||||
# Use the source, not the object, to determine the base name, since
|
||||
# that's sadly what pgcc will do too.
|
||||
set_base_from "$source"
|
||||
tmpdepfile=$base.d
|
||||
|
||||
# For projects that build the same source file twice into different object
|
||||
# files, the pgcc approach of using the *source* file root name can cause
|
||||
# problems in parallel builds. Use a locking strategy to avoid stomping on
|
||||
# the same $tmpdepfile.
|
||||
lockdir=$base.d-lock
|
||||
trap "
|
||||
echo '$0: caught signal, cleaning up...' >&2
|
||||
rmdir '$lockdir'
|
||||
exit 1
|
||||
" 1 2 13 15
|
||||
numtries=100
|
||||
i=$numtries
|
||||
while test $i -gt 0; do
|
||||
# mkdir is a portable test-and-set.
|
||||
if mkdir "$lockdir" 2>/dev/null; then
|
||||
# This process acquired the lock.
|
||||
"$@" -MD
|
||||
stat=$?
|
||||
# Release the lock.
|
||||
rmdir "$lockdir"
|
||||
break
|
||||
else
|
||||
# If the lock is being held by a different process, wait
|
||||
# until the winning process is done or we timeout.
|
||||
while test -d "$lockdir" && test $i -gt 0; do
|
||||
sleep 1
|
||||
i=`expr $i - 1`
|
||||
done
|
||||
fi
|
||||
i=`expr $i - 1`
|
||||
done
|
||||
trap - 1 2 13 15
|
||||
if test $i -le 0; then
|
||||
echo "$0: failed to acquire lock after $numtries attempts" >&2
|
||||
echo "$0: check lockdir '$lockdir'" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
# Each line is of the form `foo.o: dependent.h',
|
||||
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
|
||||
# Do two passes, one to just change these to
|
||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
||||
# Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
# correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
|
||||
| sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
hp2)
|
||||
# The "hp" stanza above does not work with aCC (C++) and HP's ia64
|
||||
# compilers, which have integrated preprocessors. The correct option
|
||||
# to use with these is +Maked; it writes dependencies to a file named
|
||||
# 'foo.d', which lands next to the object file, wherever that
|
||||
# happens to be.
|
||||
# Much of this is similar to the tru64 case; see comments there.
|
||||
set_dir_from "$object"
|
||||
set_base_from "$object"
|
||||
if test "$libtool" = yes; then
|
||||
tmpdepfile1=$dir$base.d
|
||||
tmpdepfile2=$dir.libs/$base.d
|
||||
"$@" -Wc,+Maked
|
||||
else
|
||||
tmpdepfile1=$dir$base.d
|
||||
tmpdepfile2=$dir$base.d
|
||||
"$@" +Maked
|
||||
fi
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
|
||||
do
|
||||
test -f "$tmpdepfile" && break
|
||||
done
|
||||
if test -f "$tmpdepfile"; then
|
||||
sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
|
||||
# Add 'dependent.h:' lines.
|
||||
sed -ne '2,${
|
||||
s/^ *//
|
||||
s/ \\*$//
|
||||
s/$/:/
|
||||
p
|
||||
}' "$tmpdepfile" >> "$depfile"
|
||||
else
|
||||
make_dummy_depfile
|
||||
fi
|
||||
rm -f "$tmpdepfile" "$tmpdepfile2"
|
||||
;;
|
||||
|
||||
tru64)
|
||||
# The Tru64 compiler uses -MD to generate dependencies as a side
|
||||
# effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
|
||||
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
||||
# dependencies in 'foo.d' instead, so we check for that too.
|
||||
# Subdirectories are respected.
|
||||
set_dir_from "$object"
|
||||
set_base_from "$object"
|
||||
|
||||
if test "$libtool" = yes; then
|
||||
# Libtool generates 2 separate objects for the 2 libraries. These
|
||||
# two compilations output dependencies in $dir.libs/$base.o.d and
|
||||
# in $dir$base.o.d. We have to check for both files, because
|
||||
# one of the two compilations can be disabled. We should prefer
|
||||
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
|
||||
# automatically cleaned when .libs/ is deleted, while ignoring
|
||||
# the former would cause a distcleancheck panic.
|
||||
tmpdepfile1=$dir$base.o.d # libtool 1.5
|
||||
tmpdepfile2=$dir.libs/$base.o.d # Likewise.
|
||||
tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
|
||||
"$@" -Wc,-MD
|
||||
else
|
||||
tmpdepfile1=$dir$base.d
|
||||
tmpdepfile2=$dir$base.d
|
||||
tmpdepfile3=$dir$base.d
|
||||
"$@" -MD
|
||||
fi
|
||||
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
do
|
||||
test -f "$tmpdepfile" && break
|
||||
done
|
||||
# Same post-processing that is required for AIX mode.
|
||||
aix_post_process_depfile
|
||||
;;
|
||||
|
||||
msvc7)
|
||||
if test "$libtool" = yes; then
|
||||
showIncludes=-Wc,-showIncludes
|
||||
else
|
||||
showIncludes=-showIncludes
|
||||
fi
|
||||
"$@" $showIncludes > "$tmpdepfile"
|
||||
stat=$?
|
||||
grep -v '^Note: including file: ' "$tmpdepfile"
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
# The first sed program below extracts the file names and escapes
|
||||
# backslashes for cygpath. The second sed program outputs the file
|
||||
# name when reading, but also accumulates all include files in the
|
||||
# hold buffer in order to output them again at the end. This only
|
||||
# works with sed implementations that can handle large buffers.
|
||||
sed < "$tmpdepfile" -n '
|
||||
/^Note: including file: *\(.*\)/ {
|
||||
s//\1/
|
||||
s/\\/\\\\/g
|
||||
p
|
||||
}' | $cygpath_u | sort -u | sed -n '
|
||||
s/ /\\ /g
|
||||
s/\(.*\)/'"$tab"'\1 \\/p
|
||||
s/.\(.*\) \\/\1:/
|
||||
H
|
||||
$ {
|
||||
s/.*/'"$tab"'/
|
||||
G
|
||||
p
|
||||
}' >> "$depfile"
|
||||
echo >> "$depfile" # make sure the fragment doesn't end with a backslash
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
msvc7msys)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
#nosideeffect)
|
||||
# This comment above is used by automake to tell side-effect
|
||||
# dependency tracking mechanisms from slower ones.
|
||||
|
||||
dashmstdout)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout, regardless of -o.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test "X$1" != 'X--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
# Remove '-o $object'.
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
test -z "$dashmflag" && dashmflag=-M
|
||||
# Require at least two characters before searching for ':'
|
||||
# in the target name. This is to cope with DOS-style filenames:
|
||||
# a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
|
||||
"$@" $dashmflag |
|
||||
sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
cat < "$tmpdepfile" > "$depfile"
|
||||
# Some versions of the HPUX 10.20 sed can't process this sed invocation
|
||||
# correctly. Breaking it into two sed invocations is a workaround.
|
||||
tr ' ' "$nl" < "$tmpdepfile" \
|
||||
| sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
|
||||
| sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
dashXmstdout)
|
||||
# This case only exists to satisfy depend.m4. It is never actually
|
||||
# run, as this mode is specially recognized in the preamble.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
makedepend)
|
||||
"$@" || exit $?
|
||||
# Remove any Libtool call
|
||||
if test "$libtool" = yes; then
|
||||
while test "X$1" != 'X--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
# X makedepend
|
||||
shift
|
||||
cleared=no eat=no
|
||||
for arg
|
||||
do
|
||||
case $cleared in
|
||||
no)
|
||||
set ""; shift
|
||||
cleared=yes ;;
|
||||
esac
|
||||
if test $eat = yes; then
|
||||
eat=no
|
||||
continue
|
||||
fi
|
||||
case "$arg" in
|
||||
-D*|-I*)
|
||||
set fnord "$@" "$arg"; shift ;;
|
||||
# Strip any option that makedepend may not understand. Remove
|
||||
# the object too, otherwise makedepend will parse it as a source file.
|
||||
-arch)
|
||||
eat=yes ;;
|
||||
-*|$object)
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"; shift ;;
|
||||
esac
|
||||
done
|
||||
obj_suffix=`echo "$object" | sed 's/^.*\././'`
|
||||
touch "$tmpdepfile"
|
||||
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
||||
rm -f "$depfile"
|
||||
# makedepend may prepend the VPATH from the source file name to the object.
|
||||
# No need to regex-escape $object, excess matching of '.' is harmless.
|
||||
sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
|
||||
# Some versions of the HPUX 10.20 sed can't process the last invocation
|
||||
# correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed '1,2d' "$tmpdepfile" \
|
||||
| tr ' ' "$nl" \
|
||||
| sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
|
||||
| sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
||||
;;
|
||||
|
||||
cpp)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test "X$1" != 'X--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
# Remove '-o $object'.
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
"$@" -E \
|
||||
| sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||
| sed '$ s: \\$::' > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
cat < "$tmpdepfile" >> "$depfile"
|
||||
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
msvisualcpp)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test "X$1" != 'X--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case "$arg" in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
||||
set fnord "$@"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
"$@" -E 2>/dev/null |
|
||||
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
|
||||
echo "$tab" >> "$depfile"
|
||||
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
msvcmsys)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
none)
|
||||
exec "$@"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unknown depmode $depmode" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'before-save-hook 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC0"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
5
distro/Makefile.am
Normal file
5
distro/Makefile.am
Normal file
|
@ -0,0 +1,5 @@
|
|||
EXTRA_DIST = \
|
||||
common \
|
||||
config \
|
||||
pkg \
|
||||
tests
|
529
distro/Makefile.in
Normal file
529
distro/Makefile.in
Normal file
|
@ -0,0 +1,529 @@
|
|||
# Makefile.in generated by automake 1.16.5 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2021 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = distro
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_compile_flag.m4 \
|
||||
$(top_srcdir)/m4/ax_check_link_flag.m4 \
|
||||
$(top_srcdir)/m4/code-coverage.m4 \
|
||||
$(top_srcdir)/m4/knot-lib-version.m4 \
|
||||
$(top_srcdir)/m4/knot-module.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/m4/sanitizer.m4 $(top_srcdir)/m4/visibility.m4 \
|
||||
$(top_srcdir)/m4/knot-version.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/src/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CFLAG_VISIBILITY = @CFLAG_VISIBILITY@
|
||||
CODE_COVERAGE_ENABLED = @CODE_COVERAGE_ENABLED@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CSCOPE = @CSCOPE@
|
||||
CTAGS = @CTAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DNSTAP_CFLAGS = @DNSTAP_CFLAGS@
|
||||
DNSTAP_LIBS = @DNSTAP_LIBS@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
ETAGS = @ETAGS@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
FILECMD = @FILECMD@
|
||||
GENHTML = @GENHTML@
|
||||
GREP = @GREP@
|
||||
HAVE_VISIBILITY = @HAVE_VISIBILITY@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
KNOT_VERSION_MAJOR = @KNOT_VERSION_MAJOR@
|
||||
KNOT_VERSION_MINOR = @KNOT_VERSION_MINOR@
|
||||
KNOT_VERSION_PATCH = @KNOT_VERSION_PATCH@
|
||||
LCOV = @LCOV@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LDFLAG_EXCLUDE_LIBS = @LDFLAG_EXCLUDE_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_NO_UNDEFINED = @LT_NO_UNDEFINED@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PDFLATEX = @PDFLATEX@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
PROTOC_C = @PROTOC_C@
|
||||
RANLIB = @RANLIB@
|
||||
RELEASE_DATE = @RELEASE_DATE@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SPHINXBUILD = @SPHINXBUILD@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
cap_ng_CFLAGS = @cap_ng_CFLAGS@
|
||||
cap_ng_LIBS = @cap_ng_LIBS@
|
||||
conf_mapsize = @conf_mapsize@
|
||||
config_dir = @config_dir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
dlopen_LIBS = @dlopen_LIBS@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
embedded_libngtcp2_CFLAGS = @embedded_libngtcp2_CFLAGS@
|
||||
embedded_libngtcp2_LIBS = @embedded_libngtcp2_LIBS@
|
||||
exec_prefix = @exec_prefix@
|
||||
fuzzer_CFLAGS = @fuzzer_CFLAGS@
|
||||
fuzzer_LDFLAGS = @fuzzer_LDFLAGS@
|
||||
gnutls_CFLAGS = @gnutls_CFLAGS@
|
||||
gnutls_LIBS = @gnutls_LIBS@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libbpf_CFLAGS = @libbpf_CFLAGS@
|
||||
libbpf_LIBS = @libbpf_LIBS@
|
||||
libdbus_CFLAGS = @libdbus_CFLAGS@
|
||||
libdbus_LIBS = @libdbus_LIBS@
|
||||
libdir = @libdir@
|
||||
libdnssec_SONAME = @libdnssec_SONAME@
|
||||
libdnssec_SOVERSION = @libdnssec_SOVERSION@
|
||||
libdnssec_VERSION_INFO = @libdnssec_VERSION_INFO@
|
||||
libedit_CFLAGS = @libedit_CFLAGS@
|
||||
libedit_LIBS = @libedit_LIBS@
|
||||
libexecdir = @libexecdir@
|
||||
libfstrm_CFLAGS = @libfstrm_CFLAGS@
|
||||
libfstrm_LIBS = @libfstrm_LIBS@
|
||||
libidn2_CFLAGS = @libidn2_CFLAGS@
|
||||
libidn2_LIBS = @libidn2_LIBS@
|
||||
libknot_SONAME = @libknot_SONAME@
|
||||
libknot_SOVERSION = @libknot_SOVERSION@
|
||||
libknot_VERSION_INFO = @libknot_VERSION_INFO@
|
||||
libkqueue_CFLAGS = @libkqueue_CFLAGS@
|
||||
libkqueue_LIBS = @libkqueue_LIBS@
|
||||
libmaxminddb_CFLAGS = @libmaxminddb_CFLAGS@
|
||||
libmaxminddb_LIBS = @libmaxminddb_LIBS@
|
||||
libmnl_CFLAGS = @libmnl_CFLAGS@
|
||||
libmnl_LIBS = @libmnl_LIBS@
|
||||
libnghttp2_CFLAGS = @libnghttp2_CFLAGS@
|
||||
libnghttp2_LIBS = @libnghttp2_LIBS@
|
||||
libngtcp2_CFLAGS = @libngtcp2_CFLAGS@
|
||||
libngtcp2_LIBS = @libngtcp2_LIBS@
|
||||
libprotobuf_c_CFLAGS = @libprotobuf_c_CFLAGS@
|
||||
libprotobuf_c_LIBS = @libprotobuf_c_LIBS@
|
||||
liburcu_CFLAGS = @liburcu_CFLAGS@
|
||||
liburcu_LIBS = @liburcu_LIBS@
|
||||
libxdp_CFLAGS = @libxdp_CFLAGS@
|
||||
libxdp_LIBS = @libxdp_LIBS@
|
||||
libzscanner_SONAME = @libzscanner_SONAME@
|
||||
libzscanner_SOVERSION = @libzscanner_SOVERSION@
|
||||
libzscanner_VERSION_INFO = @libzscanner_VERSION_INFO@
|
||||
lmdb_CFLAGS = @lmdb_CFLAGS@
|
||||
lmdb_LIBS = @lmdb_LIBS@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
malloc_LIBS = @malloc_LIBS@
|
||||
mandir = @mandir@
|
||||
math_LIBS = @math_LIBS@
|
||||
mkdir_p = @mkdir_p@
|
||||
module_dir = @module_dir@
|
||||
module_instdir = @module_instdir@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
pkgconfigdir = @pkgconfigdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
pthread_LIBS = @pthread_LIBS@
|
||||
run_dir = @run_dir@
|
||||
runstatedir = @runstatedir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
storage_dir = @storage_dir@
|
||||
sysconfdir = @sysconfdir@
|
||||
systemd_CFLAGS = @systemd_CFLAGS@
|
||||
systemd_LIBS = @systemd_LIBS@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
EXTRA_DIST = \
|
||||
common \
|
||||
config \
|
||||
pkg \
|
||||
tests
|
||||
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign distro/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign distro/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
tags TAGS:
|
||||
|
||||
ctags CTAGS:
|
||||
|
||||
cscope cscopelist:
|
||||
|
||||
distdir: $(BUILT_SOURCES)
|
||||
$(MAKE) $(AM_MAKEFLAGS) distdir-am
|
||||
|
||||
distdir-am: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile
|
||||
installdirs:
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||
cscopelist-am ctags-am distclean distclean-generic \
|
||||
distclean-libtool distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am install-dvi \
|
||||
install-dvi-am install-exec install-exec-am install-html \
|
||||
install-html-am install-info install-info-am install-man \
|
||||
install-pdf install-pdf-am install-ps install-ps-am \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags-am uninstall uninstall-am
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
9
distro/common/cz.nic.knotd.conf
Normal file
9
distro/common/cz.nic.knotd.conf
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||
<busconfig>
|
||||
<policy user="knot">
|
||||
<allow own="cz.nic.knotd" />
|
||||
</policy>
|
||||
<policy context="default">
|
||||
<allow receive_sender="cz.nic.knotd" />
|
||||
</policy>
|
||||
</busconfig>
|
30
distro/common/knot.service
Normal file
30
distro/common/knot.service
Normal file
|
@ -0,0 +1,30 @@
|
|||
[Unit]
|
||||
Description=Knot DNS server
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
Documentation=man:knotd(8) man:knot.conf(5) man:knotc(8)
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
User=knot
|
||||
Group=knot
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETPCAP
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_SETPCAP
|
||||
ExecStartPre=/usr/sbin/knotc conf-check
|
||||
ExecStart=/usr/sbin/knotd -m "$KNOT_CONF_MAX_SIZE"
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=on-abort
|
||||
LimitNOFILE=1048576
|
||||
TimeoutStopSec=300
|
||||
# Extend the systemd startup timeout by this value (seconds) for each zone
|
||||
Environment="KNOT_ZONE_LOAD_TIMEOUT_SEC=180"
|
||||
# Maximum size (MiB) of a configuration database
|
||||
Environment="KNOT_CONF_MAX_SIZE=512"
|
||||
|
||||
# Expected systemd >= v239
|
||||
RuntimeDirectory=knot
|
||||
StateDirectory=knot
|
||||
NoNewPrivileges=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
5
distro/common/system-local.conf
Normal file
5
distro/common/system-local.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||
<busconfig>
|
||||
<listen>unix:path=/rundir/dbus.sock</listen>
|
||||
</busconfig>
|
16
distro/config/apkg.toml
Normal file
16
distro/config/apkg.toml
Normal file
|
@ -0,0 +1,16 @@
|
|||
[project]
|
||||
name = "knot-dns"
|
||||
# needed for make-archive
|
||||
make_archive_script = "scripts/make-dev-archive.sh"
|
||||
|
||||
[upstream]
|
||||
# needed for get-archive
|
||||
archive_url = "https://secure.nic.cz/files/knot-dns/knot-{{ version }}.tar.xz"
|
||||
signature_url = "https://secure.nic.cz/files/knot-dns/knot-{{ version }}.tar.xz.asc"
|
||||
|
||||
[apkg]
|
||||
compat = 3
|
||||
|
||||
[[distro.aliases]]
|
||||
name = "deb-nolibxdp"
|
||||
distro = ["debian == 11", "ubuntu == 20.04", "ubuntu == 22.04"]
|
66
distro/pkg/arch/PKGBUILD
Normal file
66
distro/pkg/arch/PKGBUILD
Normal file
|
@ -0,0 +1,66 @@
|
|||
# Maintainer: Tomas Krizek <tomas.krizek@nic.cz>
|
||||
# Maintainer: Bruno Pagani <archange@archlinux.org>
|
||||
# Contributor: Ondřej Surý <ondrej@sury.org>
|
||||
# Contributor: Julian Brost <julian@0x4a42.net>
|
||||
# Contributor: Oleander Reis <oleander@oleander.cc>
|
||||
# Contributor: Otto Sabart <seberm[at]gmail[dot]com>
|
||||
|
||||
pkgname=knot
|
||||
pkgver={{ version }}
|
||||
pkgrel=1
|
||||
pkgdesc="High-performance authoritative-only DNS server"
|
||||
arch=('x86_64')
|
||||
url="https://www.knot-dns.cz/"
|
||||
license=('GPL3')
|
||||
depends=('fstrm'
|
||||
'gnutls'
|
||||
'libcap-ng'
|
||||
'libedit'
|
||||
'libidn2'
|
||||
'libmaxminddb'
|
||||
'liburcu'
|
||||
'lmdb'
|
||||
'protobuf-c'
|
||||
'systemd')
|
||||
backup=('etc/knot/knot.conf')
|
||||
source=("${pkgname}-${pkgver}.tar.xz")
|
||||
sha256sums=('SKIP')
|
||||
validpgpkeys=('742FA4E95829B6C5EAC6B85710BB7AF6FEBBD6AB') # Daniel Salzman <daniel.salzman@nic.cz>
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var/lib \
|
||||
--libexecdir=/usr/lib/knot \
|
||||
--with-rundir=/run/knot \
|
||||
--with-storage=/var/lib/knot \
|
||||
--enable-recvmmsg \
|
||||
--enable-dnstap \
|
||||
--enable-systemd \
|
||||
--enable-reuseport \
|
||||
--disable-silent-rules \
|
||||
--disable-static
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
rm "${pkgdir}"/etc/knot/example.com.zone
|
||||
mv "${pkgdir}"/etc/knot/{knot.sample.conf,knot.conf}
|
||||
|
||||
install -Dm644 distro/common/${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
|
||||
install -Dm644 distro/pkg/arch/${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
|
||||
}
|
1
distro/pkg/arch/knot.sysusers
Normal file
1
distro/pkg/arch/knot.sysusers
Normal file
|
@ -0,0 +1 @@
|
|||
u knot - "Knot DNS Daemon User"
|
2
distro/pkg/arch/knot.tmpfiles.arch
Normal file
2
distro/pkg/arch/knot.tmpfiles.arch
Normal file
|
@ -0,0 +1,2 @@
|
|||
d /run/knot 0755 knot knot - -
|
||||
d /var/lib/knot 0700 knot knot - -
|
6
distro/pkg/deb-nolibxdp/changelog
Normal file
6
distro/pkg/deb-nolibxdp/changelog
Normal file
|
@ -0,0 +1,6 @@
|
|||
knot ({{ version }}-cznic.{{ release }}) unstable; urgency=medium
|
||||
|
||||
* upstream package
|
||||
* see https://www.knot-dns.cz
|
||||
|
||||
-- Knot DNS <knot-dns@labs.nic.cz> {{ now }}
|
2
distro/pkg/deb-nolibxdp/clean
Normal file
2
distro/pkg/deb-nolibxdp/clean
Normal file
|
@ -0,0 +1,2 @@
|
|||
doc/modules
|
||||
.pybuild/
|
1
distro/pkg/deb-nolibxdp/compat
Normal file
1
distro/pkg/deb-nolibxdp/compat
Normal file
|
@ -0,0 +1 @@
|
|||
11
|
283
distro/pkg/deb-nolibxdp/control
Normal file
283
distro/pkg/deb-nolibxdp/control
Normal file
|
@ -0,0 +1,283 @@
|
|||
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,
|
||||
libbpf-dev,
|
||||
libcap-ng-dev,
|
||||
libedit-dev,
|
||||
libfstrm-dev,
|
||||
libgnutls28-dev,
|
||||
libidn2-dev,
|
||||
liblmdb-dev,
|
||||
libmaxminddb-dev,
|
||||
libmnl-dev,
|
||||
libnghttp2-dev,
|
||||
libprotobuf-c-dev,
|
||||
libsystemd-dev [linux-any] | libsystemd-daemon-dev [linux-any],
|
||||
libsystemd-dev [linux-any] | libsystemd-journal-dev [linux-any],
|
||||
libtool,
|
||||
liburcu-dev,
|
||||
pkgconf,
|
||||
protobuf-c-compiler,
|
||||
python3-all,
|
||||
softhsm2 <!nocheck>,
|
||||
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}),
|
||||
libknot15 (= ${binary:Version}),
|
||||
libzscanner4 (= ${binary:Version}),
|
||||
${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: libknot15
|
||||
Architecture: any
|
||||
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
|
||||
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
|
||||
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,
|
||||
libknot15 (= ${binary:Version}),
|
||||
libzscanner4 (= ${binary:Version}),
|
||||
${misc: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}),
|
||||
libknot15 (= ${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)
|
||||
- kxdpgun - send a DNS query stream over UDP to a DNS server
|
||||
.
|
||||
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}),
|
||||
libknot15 (= ${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}),
|
||||
libknot15 (= ${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
|
||||
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
|
||||
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: knot-exporter
|
||||
Architecture: all
|
||||
Depends:
|
||||
${misc:Depends},
|
||||
${python3:Depends},
|
||||
Section: python
|
||||
Description: Prometheus exporter 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 Python Prometheus exporter for Knot DNS.
|
||||
|
||||
Package: python3-libknot
|
||||
Architecture: all
|
||||
Depends:
|
||||
libknot15 (= ${binary:Version}),
|
||||
${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.
|
200
distro/pkg/deb-nolibxdp/copyright
Normal file
200
distro/pkg/deb-nolibxdp/copyright
Normal file
|
@ -0,0 +1,200 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: Knot DNS
|
||||
Upstream-Contact: knot-dns@labs.nic.cz
|
||||
Source: https://secure.nic.cz/files/knot-dns/
|
||||
|
||||
Files: *
|
||||
Copyright: 2011-2023 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
License: GPL-3+
|
||||
|
||||
Files: m4/*
|
||||
Copyright: 2011-2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
1996-2001, 2003-2015 Free Software Foundation, Inc.
|
||||
License: GPL-3+
|
||||
|
||||
Files: install-sh
|
||||
Copyright: 1994 X Consortium
|
||||
License: MIT
|
||||
|
||||
Files: debian/* distro/pkg/deb/*
|
||||
Copyright: 2011-2023 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
2011 Ondřej Surý <ondrej@debian.org>
|
||||
License: GPL-3+
|
||||
|
||||
Files: tests/tap/*
|
||||
Copyright: 2000-2001, 2004, 2006-2012 Russ Allbery <rra@stanford.edu>
|
||||
2006, 2007, 2008, 2013 The Board of Trustees of the Leland Stanford Junior University
|
||||
License: MIT
|
||||
|
||||
Files: tests/tap/files.*
|
||||
Copyright: 2011-2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
License: GPL-3+
|
||||
|
||||
Files: src/contrib/dnstap/*
|
||||
Copyright: 2014, Farsight Security, Inc. <software@farsightsecurity.com>
|
||||
2011-2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
License: GPL-3+
|
||||
|
||||
Files: src/contrib/libngtcp2/*
|
||||
Copyright: 2016-2023 ngtcp2 contributors
|
||||
2012-2017 nghttp2 contributors
|
||||
License: MIT
|
||||
|
||||
Files: src/contrib/musl/*
|
||||
Copyright: 2005-2020 Rich Felker, et al.
|
||||
License: MIT
|
||||
|
||||
Files: src/contrib/openbsd/siphash.*
|
||||
Copyright: 2013 Andre Oppermann <andre@FreeBSD.org>
|
||||
License: BSD-3-Clause
|
||||
|
||||
Files: src/contrib/openbsd/strl*
|
||||
Copyright: 1998 Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
License: ISC
|
||||
|
||||
Files: src/contrib/proxyv2/*
|
||||
Copyright: 2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
2021 Fastly, Inc.
|
||||
License: GPL-3+
|
||||
|
||||
Files: src/contrib/qp-trie/*
|
||||
Copyright: 2011-2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
2018 Tony Finch <dot@dotat.at>
|
||||
License: GPL-3+
|
||||
|
||||
Files: src/contrib/ucw/*
|
||||
Copyright: 2011-2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
1997-2017 Martin Mares <mj@ucw.cz>
|
||||
2007 Pavel Charvat <pchar@ucw.cz>
|
||||
2012 Ondrej Filip <feela@network.cz>
|
||||
License: LGPL-2+
|
||||
|
||||
Files: src/contrib/ucw/lists.*
|
||||
Copyright: 2011-2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
1998 Martin Mares <mj@ucw.cz>
|
||||
1998 Pavel Machek <pavel@ucw.cz>
|
||||
1998 Ondrej Zajicek <santiago@crfreenet.org>
|
||||
License: GPL-2+
|
||||
|
||||
Files: src/contrib/url-parser/*
|
||||
Copyright: 2020 Igor Sysoev
|
||||
2020 Nginx, Inc.
|
||||
2020 Joyent, Inc.
|
||||
License: MIT
|
||||
|
||||
Files: src/contrib/vpool/*
|
||||
Copyright: 2006, 2008 Alexey Vatchenko <av@bsdua.org>
|
||||
License: ISC
|
||||
|
||||
Files: tests-fuzz/main.c
|
||||
Copyright: 2011-2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
2017 Tim Ruehsen
|
||||
License: MIT
|
||||
|
||||
License: GPL-3+
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the full text of the GNU General Public License
|
||||
version 3 can be found in the file `/usr/share/common-licenses/GPL-3'.
|
||||
|
||||
License: GPL-2+
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian GNU/Linux systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL-2'.
|
||||
|
||||
License: LGPL-2+
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
.
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian GNU/Linux systems, the complete text of the GNU Lesser
|
||||
General Public License can be found in `/usr/share/common-licenses/LGPL-2'.
|
||||
|
||||
License: ISC
|
||||
Permission to use, copy, modify, and distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
License: BSD-3-Clause
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
3. Neither the name of the copyright holder nor the names of its contributors
|
||||
may be used to endorse or promote products derived from this software without
|
||||
specific prior written permission.
|
||||
.
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
License: MIT
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
.
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
||||
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
9
distro/pkg/deb-nolibxdp/cz.nic.knotd.conf
Normal file
9
distro/pkg/deb-nolibxdp/cz.nic.knotd.conf
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||
<busconfig>
|
||||
<policy user="knot">
|
||||
<allow own="cz.nic.knotd" />
|
||||
</policy>
|
||||
<policy context="default">
|
||||
<allow receive_sender="cz.nic.knotd" />
|
||||
</policy>
|
||||
</busconfig>
|
1
distro/pkg/deb-nolibxdp/docs
Normal file
1
distro/pkg/deb-nolibxdp/docs
Normal file
|
@ -0,0 +1 @@
|
|||
README.md
|
3
distro/pkg/deb-nolibxdp/knot-dnssecutils.install
Normal file
3
distro/pkg/deb-nolibxdp/knot-dnssecutils.install
Normal file
|
@ -0,0 +1,3 @@
|
|||
usr/bin/knsec3hash
|
||||
usr/bin/kzonecheck
|
||||
usr/bin/kzonesign
|
3
distro/pkg/deb-nolibxdp/knot-dnssecutils.manpages
Normal file
3
distro/pkg/deb-nolibxdp/knot-dnssecutils.manpages
Normal file
|
@ -0,0 +1,3 @@
|
|||
usr/share/man/man1/knsec3hash.1
|
||||
usr/share/man/man1/kzonecheck.1
|
||||
usr/share/man/man1/kzonesign.1
|
3
distro/pkg/deb-nolibxdp/knot-dnsutils.install
Normal file
3
distro/pkg/deb-nolibxdp/knot-dnsutils.install
Normal file
|
@ -0,0 +1,3 @@
|
|||
usr/bin/kdig
|
||||
usr/bin/knsupdate
|
||||
usr/sbin/kxdpgun
|
3
distro/pkg/deb-nolibxdp/knot-dnsutils.manpages
Normal file
3
distro/pkg/deb-nolibxdp/knot-dnsutils.manpages
Normal file
|
@ -0,0 +1,3 @@
|
|||
usr/share/man/man1/kdig.1
|
||||
usr/share/man/man1/knsupdate.1
|
||||
usr/share/man/man8/kxdpgun.8
|
1
distro/pkg/deb-nolibxdp/knot-doc.install
Normal file
1
distro/pkg/deb-nolibxdp/knot-doc.install
Normal file
|
@ -0,0 +1 @@
|
|||
usr/share/doc/knot/* /usr/share/doc/knot-doc/
|
5
distro/pkg/deb-nolibxdp/knot-doc.links
Normal file
5
distro/pkg/deb-nolibxdp/knot-doc.links
Normal file
|
@ -0,0 +1,5 @@
|
|||
usr/share/javascript/jquery/jquery.min.js usr/share/doc/knot-doc/_static/jquery.js
|
||||
usr/share/javascript/sphinxdoc/1.0/doctools.js usr/share/doc/knot-doc/_static/doctools.js
|
||||
usr/share/javascript/sphinxdoc/1.0/language_data.js usr/share/doc/knot-doc/_static/language_data.js
|
||||
usr/share/javascript/sphinxdoc/1.0/searchtools.js usr/share/doc/knot-doc/_static/searchtools.js
|
||||
usr/share/javascript/underscore/underscore.min.js usr/share/doc/knot-doc/_static/underscore.js
|
3
distro/pkg/deb-nolibxdp/knot-exporter.install
Normal file
3
distro/pkg/deb-nolibxdp/knot-exporter.install
Normal file
|
@ -0,0 +1,3 @@
|
|||
usr/lib/python3*/dist-packages/knot_exporter-*.egg-info
|
||||
usr/lib/python3*/dist-packages/knot_exporter/*.py
|
||||
usr/bin/knot-exporter /usr/sbin/
|
1
distro/pkg/deb-nolibxdp/knot-host.install
Normal file
1
distro/pkg/deb-nolibxdp/knot-host.install
Normal file
|
@ -0,0 +1 @@
|
|||
usr/bin/khost
|
1
distro/pkg/deb-nolibxdp/knot-host.manpages
Normal file
1
distro/pkg/deb-nolibxdp/knot-host.manpages
Normal file
|
@ -0,0 +1 @@
|
|||
usr/share/man/man1/khost.1
|
1
distro/pkg/deb-nolibxdp/knot-module-dnstap.install
Normal file
1
distro/pkg/deb-nolibxdp/knot-module-dnstap.install
Normal file
|
@ -0,0 +1 @@
|
|||
usr/lib/*/knot/modules-*/dnstap.so
|
1
distro/pkg/deb-nolibxdp/knot-module-geoip.install
Normal file
1
distro/pkg/deb-nolibxdp/knot-module-geoip.install
Normal file
|
@ -0,0 +1 @@
|
|||
usr/lib/*/knot/modules-*/geoip.so
|
1
distro/pkg/deb-nolibxdp/knot.dirs
Normal file
1
distro/pkg/deb-nolibxdp/knot.dirs
Normal file
|
@ -0,0 +1 @@
|
|||
var/lib/knot
|
149
distro/pkg/deb-nolibxdp/knot.init
Normal file
149
distro/pkg/deb-nolibxdp/knot.init
Normal file
|
@ -0,0 +1,149 @@
|
|||
#!/bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: knot
|
||||
# Required-Start: $network $local_fs $remote_fs $syslog
|
||||
# Required-Stop: $remote_fs $syslog
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: authoritative domain name server
|
||||
# Description: Knot DNS is a authoritative-only domain name server
|
||||
### END INIT INFO
|
||||
|
||||
# Author: Ondřej Surý <ondrej@debian.org>
|
||||
|
||||
# PATH should only include /usr/* if it runs after the mountnfs.sh script
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||
DESC="Knot DNS server" # Introduce a short description here
|
||||
NAME=knotd # Introduce the short server's name here
|
||||
DAEMON=/usr/sbin/$NAME # Introduce the server's location here
|
||||
PIDFILE=/run/knot/knot.pid
|
||||
SCRIPTNAME=/etc/init.d/knot
|
||||
KNOTC=/usr/sbin/knotc
|
||||
RUNDIR=/run/knot
|
||||
|
||||
# Exit if the package is not installed
|
||||
[ -x $DAEMON ] || exit 0
|
||||
|
||||
KNOTD_ARGS=""
|
||||
|
||||
# Read configuration variable file if it is present
|
||||
[ -r /etc/default/knot ] && . /etc/default/knot
|
||||
|
||||
DAEMON_ARGS="-d $KNOTD_ARGS"
|
||||
|
||||
# Define LSB log_* functions.
|
||||
# Depend on sysvinit-utils (>= 2.96) to ensure that this file is present.
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
#
|
||||
# Function that starts the daemon/service
|
||||
#
|
||||
do_start()
|
||||
{
|
||||
# Return
|
||||
# 0 if daemon has been started
|
||||
# 1 if daemon was already running
|
||||
# 2 if daemon could not be started
|
||||
|
||||
$KNOTC status >/dev/null 2>/dev/null \
|
||||
&& return 1
|
||||
|
||||
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|
||||
|| return 1
|
||||
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
|
||||
$DAEMON_ARGS \
|
||||
|| return 2
|
||||
}
|
||||
|
||||
#
|
||||
# Function that stops the daemon/service
|
||||
#
|
||||
do_stop()
|
||||
{
|
||||
# Return
|
||||
# 0 if daemon has been stopped
|
||||
# 1 if daemon was already stopped
|
||||
# 2 if daemon could not be stopped
|
||||
# other if a failure occurred
|
||||
|
||||
$KNOTC status >/dev/null 2>/dev/null \
|
||||
|| return 1
|
||||
|
||||
$KNOTC stop >/dev/null
|
||||
RETVAL="$?"
|
||||
[ $? = 1 ] && return 2
|
||||
|
||||
# Many daemons don't delete their pidfiles when they exit.
|
||||
rm -f $PIDFILE
|
||||
return 0
|
||||
}
|
||||
|
||||
do_reload() {
|
||||
$KNOTC reload >/dev/null
|
||||
return $?
|
||||
}
|
||||
|
||||
do_mkrundir() {
|
||||
mkdir -p $RUNDIR
|
||||
chmod 0755 $RUNDIR
|
||||
chown knot:knot $RUNDIR
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
do_mkrundir
|
||||
log_daemon_msg "Starting $DESC " "$NAME"
|
||||
do_start
|
||||
case "$?" in
|
||||
0|1) log_end_msg 0 ;;
|
||||
2) log_end_msg 1 ;;
|
||||
esac
|
||||
;;
|
||||
stop)
|
||||
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||
do_stop
|
||||
case "$?" in
|
||||
0|1) log_end_msg 0 ;;
|
||||
2) log_end_msg 1 ;;
|
||||
esac
|
||||
;;
|
||||
status)
|
||||
STATUS=$($KNOTC status 2>&1 >/dev/null)
|
||||
RETVAL=$?
|
||||
if [ $RETVAL = 0 ]; then
|
||||
log_success_msg "$NAME is running"
|
||||
else
|
||||
log_failure_msg "$NAME is not running ($STATUS)"
|
||||
fi
|
||||
exit $RETVAL
|
||||
;;
|
||||
reload|force-reload)
|
||||
log_daemon_msg "Reloading $DESC" "$NAME"
|
||||
do_reload
|
||||
log_end_msg $?
|
||||
;;
|
||||
restart)
|
||||
log_daemon_msg "Restarting $DESC" "$NAME"
|
||||
do_stop
|
||||
case "$?" in
|
||||
0|1)
|
||||
do_start
|
||||
case "$?" in
|
||||
0) log_end_msg 0 ;;
|
||||
1) log_end_msg 1 ;; # Old process is still running
|
||||
*) log_end_msg 1 ;; # Failed to start
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
# Failed to stop
|
||||
log_end_msg 1
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $SCRIPTNAME {start|stop|status|restart|reload|force-reload}" >&2
|
||||
exit 3
|
||||
;;
|
||||
esac
|
||||
|
||||
:
|
7
distro/pkg/deb-nolibxdp/knot.install
Normal file
7
distro/pkg/deb-nolibxdp/knot.install
Normal file
|
@ -0,0 +1,7 @@
|
|||
debian/cz.nic.knotd.conf usr/share/dbus-1/system.d/
|
||||
etc/knot/knot.conf
|
||||
usr/sbin/kcatalogprint
|
||||
usr/sbin/keymgr
|
||||
usr/sbin/kjournalprint
|
||||
usr/sbin/knotc
|
||||
usr/sbin/knotd
|
6
distro/pkg/deb-nolibxdp/knot.manpages
Normal file
6
distro/pkg/deb-nolibxdp/knot.manpages
Normal file
|
@ -0,0 +1,6 @@
|
|||
usr/share/man/man5/knot.conf.5
|
||||
usr/share/man/man8/kcatalogprint.8
|
||||
usr/share/man/man8/keymgr.8
|
||||
usr/share/man/man8/kjournalprint.8
|
||||
usr/share/man/man8/knotc.8
|
||||
usr/share/man/man8/knotd.8
|
16
distro/pkg/deb-nolibxdp/knot.postinst
Normal file
16
distro/pkg/deb-nolibxdp/knot.postinst
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "$1" = "configure" ]; then
|
||||
if ! getent passwd knot > /dev/null; then
|
||||
adduser --quiet --system --group --no-create-home --home /var/lib/knot knot
|
||||
fi
|
||||
|
||||
dpkg-statoverride --list /var/lib/knot >/dev/null 2>&1 || dpkg-statoverride --update --add root knot 0770 /var/lib/knot
|
||||
dpkg-statoverride --list /etc/knot/knot.conf >/dev/null 2>&1 || dpkg-statoverride --update --add root knot 0640 /etc/knot/knot.conf
|
||||
dpkg-statoverride --list /etc/knot >/dev/null 2>&1 || dpkg-statoverride --update --add root knot 0750 /etc/knot
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
21
distro/pkg/deb-nolibxdp/knot.postrm
Normal file
21
distro/pkg/deb-nolibxdp/knot.postrm
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if test "$1" = "purge"; then
|
||||
state_dir=/var/lib/knot
|
||||
for db_name in "catalog" "confdb" "journal" "keys" "timers"; do
|
||||
rm -rf $state_dir/$db_name >/dev/null 2>&1 || true
|
||||
done
|
||||
rmdir $state_dir >/dev/null 2>&1 || true
|
||||
[ -e $state_dir/* ] && echo "Notice: there are still data in ${state_dir}, please check."
|
||||
|
||||
dpkg-statoverride --remove /var/lib/knot >/dev/null 2>&1 || true
|
||||
dpkg-statoverride --remove /etc/knot/knot.conf >/dev/null 2>&1 || true
|
||||
dpkg-statoverride --remove /etc/knot >/dev/null 2>&1 || true
|
||||
|
||||
deluser --quiet knot >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
30
distro/pkg/deb-nolibxdp/knot.service
Normal file
30
distro/pkg/deb-nolibxdp/knot.service
Normal file
|
@ -0,0 +1,30 @@
|
|||
[Unit]
|
||||
Description=Knot DNS server
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
Documentation=man:knotd(8) man:knot.conf(5) man:knotc(8)
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
User=knot
|
||||
Group=knot
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETPCAP
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_SETPCAP
|
||||
ExecStartPre=/usr/sbin/knotc conf-check
|
||||
ExecStart=/usr/sbin/knotd -m "$KNOT_CONF_MAX_SIZE"
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=on-abort
|
||||
LimitNOFILE=1048576
|
||||
TimeoutStopSec=300
|
||||
# Extend the systemd startup timeout by this value (seconds) for each zone
|
||||
Environment="KNOT_ZONE_LOAD_TIMEOUT_SEC=180"
|
||||
# Maximum size (MiB) of a configuration database
|
||||
Environment="KNOT_CONF_MAX_SIZE=512"
|
||||
|
||||
# Expected systemd >= v239
|
||||
RuntimeDirectory=knot
|
||||
StateDirectory=knot
|
||||
NoNewPrivileges=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
1
distro/pkg/deb-nolibxdp/libdnssec9.install
Normal file
1
distro/pkg/deb-nolibxdp/libdnssec9.install
Normal file
|
@ -0,0 +1 @@
|
|||
usr/lib/*/libdnssec.so.*
|
96
distro/pkg/deb-nolibxdp/libdnssec9.symbols
Normal file
96
distro/pkg/deb-nolibxdp/libdnssec9.symbols
Normal file
|
@ -0,0 +1,96 @@
|
|||
libdnssec.so.9 libdnssec9 #MINVER#
|
||||
* Build-Depends-Package: libknot-dev
|
||||
dnssec_algorithm_digest_support@Base 3.2.0
|
||||
dnssec_algorithm_key_size_check@Base 3.2.0
|
||||
dnssec_algorithm_key_size_default@Base 3.2.0
|
||||
dnssec_algorithm_key_size_range@Base 3.2.0
|
||||
dnssec_algorithm_key_support@Base 3.2.0
|
||||
dnssec_algorithm_reproducible@Base 3.2.0
|
||||
dnssec_binary_alloc@Base 3.2.0
|
||||
dnssec_binary_cmp@Base 3.2.0
|
||||
dnssec_binary_dup@Base 3.2.0
|
||||
dnssec_binary_free@Base 3.2.0
|
||||
dnssec_binary_from_base64@Base 3.2.0
|
||||
dnssec_binary_resize@Base 3.2.0
|
||||
dnssec_binary_to_base64@Base 3.2.0
|
||||
dnssec_crypto_cleanup@Base 3.2.0
|
||||
dnssec_crypto_init@Base 3.2.0
|
||||
dnssec_crypto_reinit@Base 3.2.0
|
||||
dnssec_digest@Base 3.2.0
|
||||
dnssec_digest_finish@Base 3.2.0
|
||||
dnssec_digest_init@Base 3.2.0
|
||||
dnssec_key_can_sign@Base 3.2.0
|
||||
dnssec_key_can_verify@Base 3.2.0
|
||||
dnssec_key_clear@Base 3.2.0
|
||||
dnssec_key_create_ds@Base 3.2.0
|
||||
dnssec_key_dup@Base 3.2.0
|
||||
dnssec_key_free@Base 3.2.0
|
||||
dnssec_key_get_algorithm@Base 3.2.0
|
||||
dnssec_key_get_dname@Base 3.2.0
|
||||
dnssec_key_get_flags@Base 3.2.0
|
||||
dnssec_key_get_keyid@Base 3.2.0
|
||||
dnssec_key_get_keytag@Base 3.2.0
|
||||
dnssec_key_get_protocol@Base 3.2.0
|
||||
dnssec_key_get_pubkey@Base 3.2.0
|
||||
dnssec_key_get_rdata@Base 3.2.0
|
||||
dnssec_key_get_size@Base 3.2.0
|
||||
dnssec_key_load_pkcs8@Base 3.2.0
|
||||
dnssec_key_new@Base 3.2.0
|
||||
dnssec_key_set_algorithm@Base 3.2.0
|
||||
dnssec_key_set_dname@Base 3.2.0
|
||||
dnssec_key_set_flags@Base 3.2.0
|
||||
dnssec_key_set_protocol@Base 3.2.0
|
||||
dnssec_key_set_pubkey@Base 3.2.0
|
||||
dnssec_key_set_rdata@Base 3.2.0
|
||||
dnssec_keyid_copy@Base 3.2.0
|
||||
dnssec_keyid_equal@Base 3.2.0
|
||||
dnssec_keyid_is_valid@Base 3.2.0
|
||||
dnssec_keyid_normalize@Base 3.2.0
|
||||
dnssec_keystore_close@Base 3.2.0
|
||||
dnssec_keystore_deinit@Base 3.2.0
|
||||
dnssec_keystore_generate@Base 3.2.0
|
||||
dnssec_keystore_get_private@Base 3.2.0
|
||||
dnssec_keystore_import@Base 3.2.0
|
||||
dnssec_keystore_init@Base 3.2.0
|
||||
dnssec_keystore_init_pkcs11@Base 3.2.0
|
||||
dnssec_keystore_init_pkcs8@Base 3.2.0
|
||||
dnssec_keystore_open@Base 3.2.0
|
||||
dnssec_keystore_remove@Base 3.2.0
|
||||
dnssec_keystore_set_private@Base 3.2.0
|
||||
dnssec_keytag@Base 3.2.0
|
||||
dnssec_nsec3_hash@Base 3.2.0
|
||||
dnssec_nsec3_hash_length@Base 3.2.0
|
||||
dnssec_nsec3_params_free@Base 3.2.0
|
||||
dnssec_nsec3_params_from_rdata@Base 3.2.0
|
||||
dnssec_nsec3_params_match@Base 3.2.0
|
||||
dnssec_nsec_bitmap_add@Base 3.2.0
|
||||
dnssec_nsec_bitmap_clear@Base 3.2.0
|
||||
dnssec_nsec_bitmap_contains@Base 3.2.0
|
||||
dnssec_nsec_bitmap_free@Base 3.2.0
|
||||
dnssec_nsec_bitmap_new@Base 3.2.0
|
||||
dnssec_nsec_bitmap_size@Base 3.2.0
|
||||
dnssec_nsec_bitmap_write@Base 3.2.0
|
||||
dnssec_pem_from_privkey@Base 3.2.0
|
||||
dnssec_pem_from_x509@Base 3.2.0
|
||||
dnssec_pem_to_privkey@Base 3.2.0
|
||||
dnssec_pem_to_x509@Base 3.2.0
|
||||
dnssec_random_binary@Base 3.2.0
|
||||
dnssec_random_buffer@Base 3.2.0
|
||||
dnssec_sign_add@Base 3.2.0
|
||||
dnssec_sign_free@Base 3.2.0
|
||||
dnssec_sign_init@Base 3.2.0
|
||||
dnssec_sign_new@Base 3.2.0
|
||||
dnssec_sign_verify@Base 3.2.0
|
||||
dnssec_sign_write@Base 3.2.0
|
||||
dnssec_strerror@Base 3.2.0
|
||||
dnssec_tsig_add@Base 3.2.0
|
||||
dnssec_tsig_algorithm_from_dname@Base 3.2.0
|
||||
dnssec_tsig_algorithm_from_name@Base 3.2.0
|
||||
dnssec_tsig_algorithm_size@Base 3.2.0
|
||||
dnssec_tsig_algorithm_to_dname@Base 3.2.0
|
||||
dnssec_tsig_algorithm_to_name@Base 3.2.0
|
||||
dnssec_tsig_free@Base 3.2.0
|
||||
dnssec_tsig_new@Base 3.2.0
|
||||
dnssec_tsig_optimal_key_size@Base 3.2.0
|
||||
dnssec_tsig_size@Base 3.2.0
|
||||
dnssec_tsig_write@Base 3.2.0
|
3
distro/pkg/deb-nolibxdp/libknot-dev.install
Normal file
3
distro/pkg/deb-nolibxdp/libknot-dev.install
Normal file
|
@ -0,0 +1,3 @@
|
|||
usr/include/
|
||||
usr/lib/*/*.so
|
||||
usr/lib/*/pkgconfig/*
|
1
distro/pkg/deb-nolibxdp/libknot15.install
Normal file
1
distro/pkg/deb-nolibxdp/libknot15.install
Normal file
|
@ -0,0 +1 @@
|
|||
usr/lib/*/libknot.so.*
|
296
distro/pkg/deb-nolibxdp/libknot15.symbols
Normal file
296
distro/pkg/deb-nolibxdp/libknot15.symbols
Normal file
|
@ -0,0 +1,296 @@
|
|||
libknot.so.15 libknot15 #MINVER#
|
||||
* Build-Depends-Package: libknot-dev
|
||||
KNOT_DB_LMDB_DUPSORT@Base 3.4.0
|
||||
KNOT_DB_LMDB_INTEGERKEY@Base 3.4.0
|
||||
KNOT_DB_LMDB_MAPASYNC@Base 3.4.0
|
||||
KNOT_DB_LMDB_NOSYNC@Base 3.4.0
|
||||
KNOT_DB_LMDB_NOTLS@Base 3.4.0
|
||||
KNOT_DB_LMDB_RDONLY@Base 3.4.0
|
||||
KNOT_DB_LMDB_WRITEMAP@Base 3.4.0
|
||||
KNOT_DUMP_STYLE_DEFAULT@Base 3.4.0
|
||||
knot_creds_cert@Base 3.4.0
|
||||
knot_creds_free@Base 3.4.0
|
||||
knot_creds_init@Base 3.4.0
|
||||
knot_creds_init_peer@Base 3.4.0
|
||||
knot_creds_update@Base 3.4.0
|
||||
knot_ctl_accept@Base 3.4.0
|
||||
knot_ctl_alloc@Base 3.4.0
|
||||
knot_ctl_bind@Base 3.4.0
|
||||
knot_ctl_clone@Base 3.4.0
|
||||
knot_ctl_close@Base 3.4.0
|
||||
knot_ctl_connect@Base 3.4.0
|
||||
knot_ctl_free@Base 3.4.0
|
||||
knot_ctl_receive@Base 3.4.0
|
||||
knot_ctl_send@Base 3.4.0
|
||||
knot_ctl_set_timeout@Base 3.4.0
|
||||
knot_ctl_unbind@Base 3.4.0
|
||||
knot_db_lmdb_api@Base 3.4.0
|
||||
knot_db_lmdb_del_exact@Base 3.4.0
|
||||
knot_db_lmdb_get_mapsize@Base 3.4.0
|
||||
knot_db_lmdb_get_path@Base 3.4.0
|
||||
knot_db_lmdb_get_usage@Base 3.4.0
|
||||
knot_db_lmdb_iter_del@Base 3.4.0
|
||||
knot_db_lmdb_txn_begin@Base 3.4.0
|
||||
knot_db_trie_api@Base 3.4.0
|
||||
knot_dname_cmp@Base 3.4.0
|
||||
knot_dname_copy@Base 3.4.0
|
||||
knot_dname_copy_lower@Base 3.4.0
|
||||
knot_dname_free@Base 3.4.0
|
||||
knot_dname_from_str@Base 3.4.0
|
||||
knot_dname_in_bailiwick@Base 3.4.0
|
||||
knot_dname_is_case_equal@Base 3.4.0
|
||||
knot_dname_is_equal@Base 3.4.0
|
||||
knot_dname_labels@Base 3.4.0
|
||||
knot_dname_lf@Base 3.4.0
|
||||
knot_dname_matched_labels@Base 3.4.0
|
||||
knot_dname_prefixlen@Base 3.4.0
|
||||
knot_dname_realsize@Base 3.4.0
|
||||
knot_dname_replace_suffix@Base 3.4.0
|
||||
knot_dname_size@Base 3.4.0
|
||||
knot_dname_store@Base 3.4.0
|
||||
knot_dname_to_lower@Base 3.4.0
|
||||
knot_dname_to_str@Base 3.4.0
|
||||
knot_dname_to_wire@Base 3.4.0
|
||||
knot_dname_unpack@Base 3.4.0
|
||||
knot_dname_wire_check@Base 3.4.0
|
||||
knot_dname_with_null@Base 3.4.3
|
||||
knot_dnssec_alg_names@Base 3.4.0
|
||||
knot_edns_add_option@Base 3.4.0
|
||||
knot_edns_alignment_size@Base 3.4.0
|
||||
knot_edns_chain_parse@Base 3.4.0
|
||||
knot_edns_chain_size@Base 3.4.0
|
||||
knot_edns_chain_write@Base 3.4.0
|
||||
knot_edns_client_subnet_get_addr@Base 3.4.0
|
||||
knot_edns_client_subnet_parse@Base 3.4.0
|
||||
knot_edns_client_subnet_set_addr@Base 3.4.0
|
||||
knot_edns_client_subnet_size@Base 3.4.0
|
||||
knot_edns_client_subnet_write@Base 3.4.0
|
||||
knot_edns_cookie_client_check@Base 3.4.0
|
||||
knot_edns_cookie_client_generate@Base 3.4.0
|
||||
knot_edns_cookie_parse@Base 3.4.0
|
||||
knot_edns_cookie_server_check@Base 3.4.0
|
||||
knot_edns_cookie_server_generate@Base 3.4.0
|
||||
knot_edns_cookie_size@Base 3.4.0
|
||||
knot_edns_cookie_write@Base 3.4.0
|
||||
knot_edns_ede_names@Base 3.4.0
|
||||
knot_edns_get_ext_rcode@Base 3.4.0
|
||||
knot_edns_get_option@Base 3.4.0
|
||||
knot_edns_get_options@Base 3.4.0
|
||||
knot_edns_get_version@Base 3.4.0
|
||||
knot_edns_init@Base 3.4.0
|
||||
knot_edns_keepalive_parse@Base 3.4.0
|
||||
knot_edns_keepalive_size@Base 3.4.0
|
||||
knot_edns_keepalive_write@Base 3.4.0
|
||||
knot_edns_opt_names@Base 3.4.0
|
||||
knot_edns_reserve_option@Base 3.4.0
|
||||
knot_edns_set_ext_rcode@Base 3.4.0
|
||||
knot_edns_set_version@Base 3.4.0
|
||||
knot_edns_zoneversion_parse@Base 3.4.4
|
||||
knot_edns_zoneversion_write@Base 3.4.4
|
||||
knot_error_from_libdnssec@Base 3.4.0
|
||||
knot_eth_mtu@Base 3.4.0
|
||||
knot_eth_name_from_addr@Base 3.4.0
|
||||
knot_eth_queues@Base 3.4.0
|
||||
knot_eth_rss@Base 3.4.0
|
||||
knot_eth_vlans@Base 3.4.0
|
||||
knot_eth_xdp_mode@Base 3.4.0
|
||||
knot_get_obsolete_rdata_descriptor@Base 3.4.0
|
||||
knot_get_rdata_descriptor@Base 3.4.0
|
||||
knot_naptr_header_size@Base 3.4.0
|
||||
knot_opcode_names@Base 3.4.0
|
||||
knot_opt_code_to_string@Base 3.4.0
|
||||
knot_pkt_begin@Base 3.4.0
|
||||
knot_pkt_clear@Base 3.4.0
|
||||
knot_pkt_copy@Base 3.4.0
|
||||
knot_pkt_ext_rcode@Base 3.4.0
|
||||
knot_pkt_ext_rcode_name@Base 3.4.0
|
||||
knot_pkt_free@Base 3.4.0
|
||||
knot_pkt_init_response@Base 3.4.0
|
||||
knot_pkt_new@Base 3.4.0
|
||||
knot_pkt_parse@Base 3.4.0
|
||||
knot_pkt_parse_question@Base 3.4.0
|
||||
knot_pkt_put_question@Base 3.4.0
|
||||
knot_pkt_put_rotate@Base 3.4.0
|
||||
knot_pkt_reclaim@Base 3.4.0
|
||||
knot_pkt_reserve@Base 3.4.0
|
||||
knot_probe_alloc@Base 3.4.0
|
||||
knot_probe_consume@Base 3.4.0
|
||||
knot_probe_data_set@Base 3.4.0
|
||||
knot_probe_fd@Base 3.4.0
|
||||
knot_probe_free@Base 3.4.0
|
||||
knot_probe_produce@Base 3.4.0
|
||||
knot_probe_set_consumer@Base 3.4.0
|
||||
knot_probe_set_producer@Base 3.4.0
|
||||
knot_probe_tcp_rtt@Base 3.4.0
|
||||
knot_quic_cleanup@Base 3.4.0
|
||||
knot_quic_client@Base 3.4.0
|
||||
knot_quic_conn_block@Base 3.4.0
|
||||
knot_quic_conn_get_stream@Base 3.4.0
|
||||
knot_quic_conn_local_port@Base 3.4.0
|
||||
knot_quic_conn_new_stream@Base 3.4.0
|
||||
knot_quic_conn_next_timeout@Base 3.4.0
|
||||
knot_quic_conn_rtt@Base 3.4.0
|
||||
knot_quic_conn_stream_free@Base 3.4.0
|
||||
knot_quic_handle@Base 3.4.0
|
||||
knot_quic_hanle_expiry@Base 3.4.0
|
||||
knot_quic_send@Base 3.4.0
|
||||
knot_quic_session_available@Base 3.4.0
|
||||
knot_quic_session_load@Base 3.4.0
|
||||
knot_quic_session_save@Base 3.4.0
|
||||
knot_quic_stream_add_data@Base 3.4.0
|
||||
knot_quic_stream_get_process@Base 3.4.0
|
||||
knot_quic_table_free@Base 3.4.0
|
||||
knot_quic_table_new@Base 3.4.0
|
||||
knot_quic_table_rem@Base 3.4.0
|
||||
knot_quic_table_sweep@Base 3.4.0
|
||||
knot_rcode_names@Base 3.4.0
|
||||
knot_rdataset_add@Base 3.4.0
|
||||
knot_rdataset_at@Base 3.4.0
|
||||
knot_rdataset_clear@Base 3.4.0
|
||||
knot_rdataset_copy@Base 3.4.0
|
||||
knot_rdataset_eq@Base 3.4.0
|
||||
knot_rdataset_intersect@Base 3.4.0
|
||||
knot_rdataset_intersect2@Base 3.4.0
|
||||
knot_rdataset_member@Base 3.4.0
|
||||
knot_rdataset_merge@Base 3.4.0
|
||||
knot_rdataset_subset@Base 3.4.0
|
||||
knot_rdataset_subtract@Base 3.4.0
|
||||
knot_rrclass_from_string@Base 3.4.0
|
||||
knot_rrclass_to_string@Base 3.4.0
|
||||
knot_rrset_add_rdata@Base 3.4.0
|
||||
knot_rrset_clear@Base 3.4.0
|
||||
knot_rrset_copy@Base 3.4.0
|
||||
knot_rrset_equal@Base 3.4.0
|
||||
knot_rrset_free@Base 3.4.0
|
||||
knot_rrset_is_nsec3rel@Base 3.4.0
|
||||
knot_rrset_new@Base 3.4.0
|
||||
knot_rrset_rr_from_wire@Base 3.4.0
|
||||
knot_rrset_rr_to_canonical@Base 3.4.0
|
||||
knot_rrset_size@Base 3.4.0
|
||||
knot_rrset_to_wire_extra@Base 3.4.0
|
||||
knot_rrset_txt_dump@Base 3.4.0
|
||||
knot_rrset_txt_dump_data@Base 3.4.0
|
||||
knot_rrset_txt_dump_edns@Base 3.4.0
|
||||
knot_rrset_txt_dump_header@Base 3.4.0
|
||||
knot_rrtype_additional_needed@Base 3.4.0
|
||||
knot_rrtype_from_string@Base 3.4.0
|
||||
knot_rrtype_is_dnssec@Base 3.4.0
|
||||
knot_rrtype_is_metatype@Base 3.4.0
|
||||
knot_rrtype_should_be_lowercased@Base 3.4.0
|
||||
knot_rrtype_to_string@Base 3.4.0
|
||||
knot_strerror@Base 3.4.0
|
||||
knot_svcb_param_names@Base 3.4.0
|
||||
knot_tcp_cleanup@Base 3.4.0
|
||||
knot_tcp_inbufs_upd@Base 3.4.0
|
||||
knot_tcp_outbufs_ack@Base 3.4.0
|
||||
knot_tcp_outbufs_add@Base 3.4.0
|
||||
knot_tcp_outbufs_can_send@Base 3.4.0
|
||||
knot_tcp_outbufs_usage@Base 3.4.0
|
||||
knot_tcp_recv@Base 3.4.0
|
||||
knot_tcp_reply_data@Base 3.4.0
|
||||
knot_tcp_send@Base 3.4.0
|
||||
knot_tcp_sweep@Base 3.4.0
|
||||
knot_tcp_table_free@Base 3.4.0
|
||||
knot_tcp_table_new@Base 3.4.0
|
||||
knot_tls_conn_block@Base 3.4.0
|
||||
knot_tls_conn_del@Base 3.4.0
|
||||
knot_tls_conn_new@Base 3.4.0
|
||||
knot_tls_ctx_free@Base 3.4.0
|
||||
knot_tls_ctx_new@Base 3.4.0
|
||||
knot_tls_handshake@Base 3.4.0
|
||||
knot_tls_pin@Base 3.4.0
|
||||
knot_tls_pin_check@Base 3.4.0
|
||||
knot_tls_recv_dns@Base 3.4.0
|
||||
knot_tls_send_dns@Base 3.4.0
|
||||
knot_tls_session@Base 3.4.0
|
||||
knot_tls_session_available@Base 3.4.1
|
||||
knot_tls_session_load@Base 3.4.1
|
||||
knot_tls_session_save@Base 3.4.1
|
||||
knot_tsig_add@Base 3.4.0
|
||||
knot_tsig_append@Base 3.4.0
|
||||
knot_tsig_client_check@Base 3.4.0
|
||||
knot_tsig_client_check_next@Base 3.4.0
|
||||
knot_tsig_create_rdata@Base 3.4.0
|
||||
knot_tsig_key_copy@Base 3.4.0
|
||||
knot_tsig_key_deinit@Base 3.4.0
|
||||
knot_tsig_key_init@Base 3.4.0
|
||||
knot_tsig_key_init_file@Base 3.4.0
|
||||
knot_tsig_key_init_str@Base 3.4.0
|
||||
knot_tsig_rcode_names@Base 3.4.0
|
||||
knot_tsig_rdata_alg@Base 3.4.0
|
||||
knot_tsig_rdata_alg_name@Base 3.4.0
|
||||
knot_tsig_rdata_error@Base 3.4.0
|
||||
knot_tsig_rdata_fudge@Base 3.4.0
|
||||
knot_tsig_rdata_is_ok@Base 3.4.0
|
||||
knot_tsig_rdata_mac@Base 3.4.0
|
||||
knot_tsig_rdata_mac_length@Base 3.4.0
|
||||
knot_tsig_rdata_orig_id@Base 3.4.0
|
||||
knot_tsig_rdata_other_data@Base 3.4.0
|
||||
knot_tsig_rdata_other_data_length@Base 3.4.0
|
||||
knot_tsig_rdata_set_fudge@Base 3.4.0
|
||||
knot_tsig_rdata_set_mac@Base 3.4.0
|
||||
knot_tsig_rdata_set_orig_id@Base 3.4.0
|
||||
knot_tsig_rdata_set_other_data@Base 3.4.0
|
||||
knot_tsig_rdata_set_time_signed@Base 3.4.0
|
||||
knot_tsig_rdata_time_signed@Base 3.4.0
|
||||
knot_tsig_rdata_tsig_timers_length@Base 3.4.0
|
||||
knot_tsig_rdata_tsig_variables_length@Base 3.4.0
|
||||
knot_tsig_server_check@Base 3.4.0
|
||||
knot_tsig_sign@Base 3.4.0
|
||||
knot_tsig_sign_next@Base 3.4.0
|
||||
knot_tsig_wire_maxsize@Base 3.4.0
|
||||
knot_tsig_wire_size@Base 3.4.0
|
||||
knot_xdp_deinit@Base 3.4.0
|
||||
knot_xdp_init@Base 3.4.0
|
||||
knot_xdp_recv@Base 3.4.0
|
||||
knot_xdp_recv_finish@Base 3.4.0
|
||||
knot_xdp_reply_alloc@Base 3.4.0
|
||||
knot_xdp_send@Base 3.4.0
|
||||
knot_xdp_send_alloc@Base 3.4.0
|
||||
knot_xdp_send_finish@Base 3.4.0
|
||||
knot_xdp_send_free@Base 3.4.0
|
||||
knot_xdp_send_prepare@Base 3.4.0
|
||||
knot_xdp_socket_info@Base 3.4.0
|
||||
knot_xdp_socket_stats@Base 3.4.0
|
||||
knot_xdp_socket_fd@Base 3.4.0
|
||||
yp_addr@Base 3.4.0
|
||||
yp_addr_noport@Base 3.4.0
|
||||
yp_addr_noport_to_bin@Base 3.4.0
|
||||
yp_addr_noport_to_txt@Base 3.4.0
|
||||
yp_addr_range_to_bin@Base 3.4.0
|
||||
yp_addr_range_to_txt@Base 3.4.0
|
||||
yp_addr_to_bin@Base 3.4.0
|
||||
yp_addr_to_txt@Base 3.4.0
|
||||
yp_base64_to_bin@Base 3.4.0
|
||||
yp_base64_to_txt@Base 3.4.0
|
||||
yp_bool_to_bin@Base 3.4.0
|
||||
yp_bool_to_txt@Base 3.4.0
|
||||
yp_deinit@Base 3.4.0
|
||||
yp_dname_to_bin@Base 3.4.0
|
||||
yp_dname_to_txt@Base 3.4.0
|
||||
yp_format_id@Base 3.4.0
|
||||
yp_format_key0@Base 3.4.0
|
||||
yp_format_key1@Base 3.4.0
|
||||
yp_hex_to_bin@Base 3.4.0
|
||||
yp_hex_to_txt@Base 3.4.0
|
||||
yp_init@Base 3.4.0
|
||||
yp_int_to_bin@Base 3.4.0
|
||||
yp_int_to_txt@Base 3.4.0
|
||||
yp_item_to_bin@Base 3.4.0
|
||||
yp_item_to_txt@Base 3.4.0
|
||||
yp_option_to_bin@Base 3.4.0
|
||||
yp_option_to_txt@Base 3.4.0
|
||||
yp_parse@Base 3.4.0
|
||||
yp_schema_check_deinit@Base 3.4.0
|
||||
yp_schema_check_init@Base 3.4.0
|
||||
yp_schema_check_parser@Base 3.4.0
|
||||
yp_schema_check_str@Base 3.4.0
|
||||
yp_schema_copy@Base 3.4.0
|
||||
yp_schema_find@Base 3.4.0
|
||||
yp_schema_free@Base 3.4.0
|
||||
yp_schema_merge@Base 3.4.0
|
||||
yp_schema_purge_dynamic@Base 3.4.0
|
||||
yp_set_input_file@Base 3.4.0
|
||||
yp_set_input_string@Base 3.4.0
|
||||
yp_str_to_bin@Base 3.4.0
|
||||
yp_str_to_txt@Base 3.4.0
|
1
distro/pkg/deb-nolibxdp/libzscanner4.install
Normal file
1
distro/pkg/deb-nolibxdp/libzscanner4.install
Normal file
|
@ -0,0 +1 @@
|
|||
usr/lib/*/libzscanner.so.*
|
12
distro/pkg/deb-nolibxdp/libzscanner4.symbols
Normal file
12
distro/pkg/deb-nolibxdp/libzscanner4.symbols
Normal file
|
@ -0,0 +1,12 @@
|
|||
libzscanner.so.4 libzscanner4 #MINVER#
|
||||
* Build-Depends-Package: libknot-dev
|
||||
zs_deinit@Base 3.1.0
|
||||
zs_errorname@Base 3.1.0
|
||||
zs_init@Base 3.1.0
|
||||
zs_parse_all@Base 3.1.0
|
||||
zs_parse_record@Base 3.1.0
|
||||
zs_set_input_file@Base 3.1.0
|
||||
zs_set_input_string@Base 3.1.0
|
||||
zs_set_processing@Base 3.1.0
|
||||
zs_set_processing_comment@Base 3.1.0
|
||||
zs_strerror@Base 3.1.0
|
1
distro/pkg/deb-nolibxdp/not-installed
Normal file
1
distro/pkg/deb-nolibxdp/not-installed
Normal file
|
@ -0,0 +1 @@
|
|||
etc/knot/example.com.zone
|
38
distro/pkg/deb-nolibxdp/prepare-environment
Executable file
38
distro/pkg/deb-nolibxdp/prepare-environment
Executable file
|
@ -0,0 +1,38 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
CONFFILE=${1:-/etc/knot/knot.conf}
|
||||
|
||||
if [ ! -r $CONFFILE ]; then
|
||||
echo "$CONFFILE doesn't exist or has wrong permissions."
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
KNOT_RUNDIR=$(sed -ne "s/#.*$//;s/.*rundir: \"*\([^\";]*\\).*/\\1/p;" $CONFFILE)
|
||||
[ -z "$KNOT_RUNDIR" ] && KNOT_RUNDIR=/run/knot
|
||||
|
||||
mkdir --parents "$KNOT_RUNDIR";
|
||||
|
||||
KNOT_USER=$(sed -ne "s/#.*$//;s/.*user:[ \"]*\\([^\\:\"]*\\)[ \"]*/\\1/p;" $CONFFILE)
|
||||
|
||||
if [ -n "$KNOT_USER" ]; then
|
||||
if ! getent passwd $KNOT_USER >/dev/null; then
|
||||
echo "Configured user '$KNOT_USER' doesn't exist."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
KNOT_GROUP=$(sed -ne "s/#.*$//;s/.*user:[ \"]*[^\\:\"]*\\:\\([^\"]*\\)[ \"]*/\\1/p;" $CONFFILE)
|
||||
if [ -z "$KNOT_GROUP" ]; then
|
||||
KNOT_GROUP=$(getent group $(getent passwd "$KNOT_USER" | cut -f 4 -d :) | cut -f 1 -d :)
|
||||
fi
|
||||
|
||||
if ! getent group $KNOT_GROUP >/dev/null; then
|
||||
echo "Configured group '$KNOT_GROUP' doesn't exist."
|
||||
exit 1
|
||||
fi
|
||||
chown --silent "$KNOT_USER:$KNOT_GROUP" "$KNOT_RUNDIR"
|
||||
chmod 775 "$KNOT_RUNDIR"
|
||||
fi
|
||||
|
||||
:
|
2
distro/pkg/deb-nolibxdp/python3-libknot.install
Normal file
2
distro/pkg/deb-nolibxdp/python3-libknot.install
Normal file
|
@ -0,0 +1,2 @@
|
|||
usr/lib/python3*/dist-packages/libknot-*.egg-info
|
||||
usr/lib/python3*/dist-packages/libknot/*.py
|
89
distro/pkg/deb-nolibxdp/rules
Executable file
89
distro/pkg/deb-nolibxdp/rules
Executable file
|
@ -0,0 +1,89 @@
|
|||
#!/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
|
||||
|
||||
# Disable fastparser if requested
|
||||
ifeq (maint,$(filter $(DEB_BUILD_OPTIONS),maint))
|
||||
FASTPARSER := --disable-fastparser
|
||||
else
|
||||
FASTPARSER := --enable-fastparser
|
||||
endif
|
||||
|
||||
LIBKNOT_SYMBOLS := $(wildcard $(CURDIR)/debian/libknot*.symbols)
|
||||
|
||||
# MAJOR.MINOR version part
|
||||
BASE_VERSION := $(shell echo $(DEB_VERSION) | sed 's/^\([^.]\+\.[^.]\+\).*/\1/')
|
||||
|
||||
# pyproject is supported by knot but fails on second `pybuild --build`
|
||||
# invocation due to bug in dh-python's plugin_pyproject.py wheel unpack
|
||||
export PYBUILD_SYSTEM = distutils
|
||||
|
||||
%:
|
||||
dh $@ \
|
||||
--with python3
|
||||
|
||||
override_dh_auto_configure:
|
||||
@echo 'architecture:' $(DEB_HOST_ARCH)
|
||||
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 \
|
||||
--enable-recvmmsg=yes \
|
||||
--disable-silent-rules \
|
||||
--enable-xdp=yes \
|
||||
--enable-quic=yes \
|
||||
--disable-static \
|
||||
$(FASTPARSER)
|
||||
|
||||
override_dh_auto_configure-indep:
|
||||
pybuild --dir python/libknot --configure
|
||||
pybuild --dir python/knot_exporter --configure
|
||||
|
||||
override_dh_auto_build-indep:
|
||||
dh_auto_build -- html
|
||||
pybuild --dir python/libknot --build
|
||||
pybuild --dir python/knot_exporter --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
|
||||
@if grep -E -q "DoQ support: +no" "$(CURDIR)/debian/tmp/usr/sbin/knotd"; then \
|
||||
echo "Stripping the QUIC symbols"; \
|
||||
sed -i '/knot_quic_/d' $(LIBKNOT_SYMBOLS); \
|
||||
fi
|
||||
|
||||
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 --dir python/libknot --install
|
||||
pybuild --dir python/knot_exporter --install
|
||||
rm -rf $(CURDIR)/debian/tmp/usr/lib/python*/dist-packages/libknot/__pycache__
|
||||
rm -rf $(CURDIR)/debian/tmp/usr/lib/python*/dist-packages/knot_exporter/__pycache__
|
||||
|
||||
override_dh_auto_test-indep:
|
||||
override_dh_auto_test-arch:
|
||||
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
||||
dh_auto_test
|
||||
endif
|
||||
|
||||
override_dh_missing:
|
||||
dh_missing --exclude=.la --fail-missing
|
||||
|
||||
override_dh_installchangelogs:
|
||||
dh_installchangelogs NEWS
|
1
distro/pkg/deb-nolibxdp/source/format
Normal file
1
distro/pkg/deb-nolibxdp/source/format
Normal file
|
@ -0,0 +1 @@
|
|||
3.0 (quilt)
|
150
distro/pkg/deb-nolibxdp/tests/authoritative-server
Executable file
150
distro/pkg/deb-nolibxdp/tests/authoritative-server
Executable file
|
@ -0,0 +1,150 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
|
||||
# 2018-11-02
|
||||
# License: GPLv3+
|
||||
|
||||
# error on exit
|
||||
set -e
|
||||
# for handling jobspecs:
|
||||
set -m
|
||||
|
||||
if [ -z "$AUTOPKGTEST_ARTIFACTS" ]; then
|
||||
d="$(mktemp -d)"
|
||||
remove="$d"
|
||||
else
|
||||
d="$AUTOPKGTEST_ARTIFACTS"
|
||||
fi
|
||||
ip="${TESTIP:-127.$(( $RANDOM % 256 )).$(( $RANDOM % 256 )).$(( $RANDOM % 256 ))}"
|
||||
port="${PORT:-8123}"
|
||||
knotc="${KNOTC:-/usr/sbin/knotc}"
|
||||
knotd="${KNOTD:-/usr/sbin/knotd}"
|
||||
keymgr="${KEYMGR:-/usr/sbin/keymgr}"
|
||||
kdig="${KDIG:-$(command -v kdig)}"
|
||||
kzonecheck="${KZONECHECK:-$(command -v kzonecheck)}"
|
||||
test_address="${TEST_ADDRESS:-192.0.2.199}"
|
||||
|
||||
declare -a knot_conf="--config=$d/knot.conf"
|
||||
declare -a knot_args=("$knot_conf" --verbose)
|
||||
|
||||
printf "%s + %s roundtrip tests\n------------\n workdir: %s\n IP addr: %s\n knot args: %s\n" "$knotd" "$kdig" "$d" "$ip" "${knot_args[*]}"
|
||||
|
||||
section() {
|
||||
printf "\n%s\n" "$1"
|
||||
sed 's/./-/g' <<<"$1"
|
||||
}
|
||||
|
||||
cleanup () {
|
||||
section "cleaning up"
|
||||
find "$d" -ls
|
||||
"${knotc}" "${knot_args[@]}" stop
|
||||
wait %1
|
||||
tail -n +1 -v "$d"/*.err
|
||||
if [ "$remove" ]; then
|
||||
printf "\ncleaning up working directory %s\n" "$remove"
|
||||
rm -rf "$remove"
|
||||
fi
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
section "set up config file and zonefile"
|
||||
|
||||
user=$(id -nu)
|
||||
group=$(id -ng)
|
||||
cat > "$d/knot.conf" <<EOF
|
||||
server:
|
||||
rundir: "$d"
|
||||
listen: $ip@$port
|
||||
user: $user:$group
|
||||
database:
|
||||
storage: "$d"
|
||||
template:
|
||||
- id: default
|
||||
storage: "$d"
|
||||
file: "%s.zone"
|
||||
zone:
|
||||
- domain: example.net
|
||||
dnssec-signing: on
|
||||
EOF
|
||||
|
||||
cat > "$d/example.net.zone" <<EOF
|
||||
@ 1D IN SOA a.ns hostmaster 2018103100 3h 15m 1w 1d
|
||||
@ 1D IN NS a.ns.example.net.
|
||||
@ 1D IN NS b.ns.example.net.
|
||||
a.ns 1D IN A 192.0.2.1
|
||||
b.ns 1D IN A 192.0.2.2
|
||||
test 1D IN A $test_address
|
||||
EOF
|
||||
|
||||
find "$d" -maxdepth 1 -type f -print0 | xargs -0 tail -n +1 -v
|
||||
|
||||
mkdir -p "${d}"
|
||||
|
||||
section "kzonecheck'ing zonefile"
|
||||
"${kzonecheck}" -v "$d/example.net.zone"
|
||||
|
||||
section "launching knot"
|
||||
"${knotd}" "${knot_args[@]}" 2> "$d/knotd.err" &
|
||||
|
||||
# FIXME: this is an annoying poll -- would be better if we could be
|
||||
# alerted when the daemon is done setting up the socket, but i don't
|
||||
# want to "--daemonize" if i can avoid it because i want the shell to
|
||||
# remain in direct supervision of all its processes
|
||||
tried=0
|
||||
while [ $tried -lt 10 ] ; do
|
||||
if "${knotc}" "${knot_args[@]}" status 2>&1; then
|
||||
break;
|
||||
fi
|
||||
sleep 0.5
|
||||
tried=$(( $tried + 1 ))
|
||||
done
|
||||
if [ $tried -ge 10 ]; then
|
||||
printf "failed to use %s\n" "${knotc}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
section "querying knot"
|
||||
"${kdig}" -p "${port}" @"${ip}" -t A test.example.net test2.example.net
|
||||
answer="$("${kdig}" +short -p "${port}" @"${ip}" -t A test.example.net)"
|
||||
if ! [ "$answer" = "$test_address" ]; then
|
||||
printf "test.example.net mismatch!\nexpected: %s\n got: %s\n" "$test_address" "$answer" >&2
|
||||
exit 1
|
||||
fi
|
||||
answer2="$("${kdig}" +short -p "${port}" @"${ip}" -t A test2.example.net)"
|
||||
if ! [ "$answer2" = "" ]; then
|
||||
printf "test2.example.net gave unexpected answer!\n got: %s\n" "$answer2" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
section "modifying zone"
|
||||
printf "test2 1D IN A $test_address\n" >>"$d/example.net.zone"
|
||||
sed -i 's/^@ 1D IN SOA.*/@ 1D IN SOA a.ns hostmaster 2018110100 3h 15m 1w 1d/' "$d/example.net.zone"
|
||||
"${knotc}" "${knot_args[@]}" reload
|
||||
sleep 1
|
||||
|
||||
section "querying again"
|
||||
"${kdig}" -p "${port}" @"${ip}" -t A test.example.net test2.example.net
|
||||
answer="$("${kdig}" +short -p "${port}" @"${ip}" -t A test.example.net)"
|
||||
if ! [ "$answer" = "$test_address" ]; then
|
||||
printf "test.example.net mismatch!\nexpected: %s\n got: %s\n" "$test_address" "$answer" >&2
|
||||
exit 1
|
||||
fi
|
||||
answer2="$("${kdig}" +short -p "${port}" @"${ip}" -t A test2.example.net)"
|
||||
if ! [ "$answer2" = "$test_address" ]; then
|
||||
printf "test2.example.net mismatch!\nexpected: %s\n got: %s\n" "$test_address" "$answer2" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
section "querying DNSSEC"
|
||||
"${kdig}" -p "${port}" @"${ip}" -t DNSKEY example.net. +dnssec
|
||||
if ! "${kdig}" -p "${port}" @"${ip}" -t DNSKEY example.net. +dnssec 2>&1 | grep -q "RRSIG[[:space:]]*DNSKEY"; then
|
||||
printf "DNSSEC query not successful" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
section "listing keys with keymgr"
|
||||
"${keymgr}" "$knot_conf" -e example.net. list
|
||||
if ! "${keymgr}" "$knot_conf" -e example.net. list 2>&1 | grep -q "ksk=yes"; then
|
||||
printf "keymgr did not list KSK as expected" >&2
|
||||
exit 1
|
||||
fi
|
13
distro/pkg/deb-nolibxdp/tests/control
Normal file
13
distro/pkg/deb-nolibxdp/tests/control
Normal file
|
@ -0,0 +1,13 @@
|
|||
Tests: kdig
|
||||
Restrictions: skippable
|
||||
Depends:
|
||||
ca-certificates,
|
||||
iputils-ping,
|
||||
knot-dnsutils,
|
||||
|
||||
Tests: authoritative-server
|
||||
Depends:
|
||||
findutils,
|
||||
knot,
|
||||
knot-dnsutils,
|
||||
knot-dnssecutils,
|
14
distro/pkg/deb-nolibxdp/tests/kdig
Executable file
14
distro/pkg/deb-nolibxdp/tests/kdig
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Skip the test if no internet access
|
||||
ping -c1 1.1.1.1 2>&1 || exit 77
|
||||
|
||||
expected=198.41.0.4
|
||||
answer=$(kdig +short +tls-ca @1.1.1.1 -q a.root-servers.net. -t A 2>&1 || true)
|
||||
|
||||
if [ "$answer" != "$expected" ]; then
|
||||
printf "expected: %s\ngot: %s\n" "$expected" "$answer" >&2
|
||||
kdig -d +tls-ca @1.1.1.1 -q a.root-servers.net. -t A
|
||||
fi
|
4
distro/pkg/deb-nolibxdp/watch
Normal file
4
distro/pkg/deb-nolibxdp/watch
Normal file
|
@ -0,0 +1,4 @@
|
|||
version=4
|
||||
opts=uversionmangle=s/-((alpha|beta|rc)\d*)$/~$1/,pgpsigurlmangle=s/$/.asc/,dversionmangle=s/\+hotfix// \
|
||||
https://secure.nic.cz/files/knot-dns/ \
|
||||
(?:|.*/)knot(?:[_\-]v?|)(\d\S*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz)
|
6
distro/pkg/deb/changelog
Normal file
6
distro/pkg/deb/changelog
Normal file
|
@ -0,0 +1,6 @@
|
|||
knot ({{ version }}-cznic.{{ release }}) unstable; urgency=medium
|
||||
|
||||
* upstream package
|
||||
* see https://www.knot-dns.cz
|
||||
|
||||
-- Knot DNS <knot-dns@labs.nic.cz> {{ now }}
|
2
distro/pkg/deb/clean
Normal file
2
distro/pkg/deb/clean
Normal file
|
@ -0,0 +1,2 @@
|
|||
doc/modules
|
||||
.pybuild/
|
1
distro/pkg/deb/compat
Normal file
1
distro/pkg/deb/compat
Normal file
|
@ -0,0 +1 @@
|
|||
11
|
285
distro/pkg/deb/control
Normal file
285
distro/pkg/deb/control
Normal file
|
@ -0,0 +1,285 @@
|
|||
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,
|
||||
python3-sphinx-panels,
|
||||
Build-Depends:
|
||||
autoconf,
|
||||
automake,
|
||||
debhelper (>= 11),
|
||||
dh-python,
|
||||
libbpf-dev,
|
||||
libcap-ng-dev,
|
||||
libedit-dev,
|
||||
libfstrm-dev,
|
||||
libgnutls28-dev,
|
||||
libidn2-dev,
|
||||
liblmdb-dev,
|
||||
libmaxminddb-dev,
|
||||
libmnl-dev,
|
||||
libnghttp2-dev,
|
||||
libprotobuf-c-dev,
|
||||
libsystemd-dev [linux-any] | libsystemd-daemon-dev [linux-any],
|
||||
libsystemd-dev [linux-any] | libsystemd-journal-dev [linux-any],
|
||||
libtool,
|
||||
liburcu-dev,
|
||||
libxdp-dev,
|
||||
pkgconf,
|
||||
protobuf-c-compiler,
|
||||
python3-all,
|
||||
softhsm2 <!nocheck>,
|
||||
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}),
|
||||
libknot15 (= ${binary:Version}),
|
||||
libzscanner4 (= ${binary:Version}),
|
||||
${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: libknot15
|
||||
Architecture: any
|
||||
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
|
||||
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
|
||||
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,
|
||||
libknot15 (= ${binary:Version}),
|
||||
libzscanner4 (= ${binary:Version}),
|
||||
${misc: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}),
|
||||
libknot15 (= ${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)
|
||||
- kxdpgun - send a DNS query stream over UDP to a DNS server
|
||||
.
|
||||
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}),
|
||||
libknot15 (= ${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}),
|
||||
libknot15 (= ${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
|
||||
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
|
||||
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: knot-exporter
|
||||
Architecture: all
|
||||
Depends:
|
||||
${misc:Depends},
|
||||
${python3:Depends},
|
||||
Section: python
|
||||
Description: Prometheus exporter 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 Python Prometheus exporter for Knot DNS.
|
||||
|
||||
Package: python3-libknot
|
||||
Architecture: all
|
||||
Depends:
|
||||
libknot15 (= ${binary:Version}),
|
||||
${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.
|
200
distro/pkg/deb/copyright
Normal file
200
distro/pkg/deb/copyright
Normal file
|
@ -0,0 +1,200 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: Knot DNS
|
||||
Upstream-Contact: knot-dns@labs.nic.cz
|
||||
Source: https://secure.nic.cz/files/knot-dns/
|
||||
|
||||
Files: *
|
||||
Copyright: 2011-2023 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
License: GPL-3+
|
||||
|
||||
Files: m4/*
|
||||
Copyright: 2011-2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
1996-2001, 2003-2015 Free Software Foundation, Inc.
|
||||
License: GPL-3+
|
||||
|
||||
Files: install-sh
|
||||
Copyright: 1994 X Consortium
|
||||
License: MIT
|
||||
|
||||
Files: debian/* distro/pkg/deb/*
|
||||
Copyright: 2011-2023 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
2011 Ondřej Surý <ondrej@debian.org>
|
||||
License: GPL-3+
|
||||
|
||||
Files: tests/tap/*
|
||||
Copyright: 2000-2001, 2004, 2006-2012 Russ Allbery <rra@stanford.edu>
|
||||
2006, 2007, 2008, 2013 The Board of Trustees of the Leland Stanford Junior University
|
||||
License: MIT
|
||||
|
||||
Files: tests/tap/files.*
|
||||
Copyright: 2011-2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
License: GPL-3+
|
||||
|
||||
Files: src/contrib/dnstap/*
|
||||
Copyright: 2014, Farsight Security, Inc. <software@farsightsecurity.com>
|
||||
2011-2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
License: GPL-3+
|
||||
|
||||
Files: src/contrib/libngtcp2/*
|
||||
Copyright: 2016-2023 ngtcp2 contributors
|
||||
2012-2017 nghttp2 contributors
|
||||
License: MIT
|
||||
|
||||
Files: src/contrib/musl/*
|
||||
Copyright: 2005-2020 Rich Felker, et al.
|
||||
License: MIT
|
||||
|
||||
Files: src/contrib/openbsd/siphash.*
|
||||
Copyright: 2013 Andre Oppermann <andre@FreeBSD.org>
|
||||
License: BSD-3-Clause
|
||||
|
||||
Files: src/contrib/openbsd/strl*
|
||||
Copyright: 1998 Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
License: ISC
|
||||
|
||||
Files: src/contrib/proxyv2/*
|
||||
Copyright: 2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
2021 Fastly, Inc.
|
||||
License: GPL-3+
|
||||
|
||||
Files: src/contrib/qp-trie/*
|
||||
Copyright: 2011-2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
2018 Tony Finch <dot@dotat.at>
|
||||
License: GPL-3+
|
||||
|
||||
Files: src/contrib/ucw/*
|
||||
Copyright: 2011-2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
1997-2017 Martin Mares <mj@ucw.cz>
|
||||
2007 Pavel Charvat <pchar@ucw.cz>
|
||||
2012 Ondrej Filip <feela@network.cz>
|
||||
License: LGPL-2+
|
||||
|
||||
Files: src/contrib/ucw/lists.*
|
||||
Copyright: 2011-2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
1998 Martin Mares <mj@ucw.cz>
|
||||
1998 Pavel Machek <pavel@ucw.cz>
|
||||
1998 Ondrej Zajicek <santiago@crfreenet.org>
|
||||
License: GPL-2+
|
||||
|
||||
Files: src/contrib/url-parser/*
|
||||
Copyright: 2020 Igor Sysoev
|
||||
2020 Nginx, Inc.
|
||||
2020 Joyent, Inc.
|
||||
License: MIT
|
||||
|
||||
Files: src/contrib/vpool/*
|
||||
Copyright: 2006, 2008 Alexey Vatchenko <av@bsdua.org>
|
||||
License: ISC
|
||||
|
||||
Files: tests-fuzz/main.c
|
||||
Copyright: 2011-2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
|
||||
2017 Tim Ruehsen
|
||||
License: MIT
|
||||
|
||||
License: GPL-3+
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the full text of the GNU General Public License
|
||||
version 3 can be found in the file `/usr/share/common-licenses/GPL-3'.
|
||||
|
||||
License: GPL-2+
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian GNU/Linux systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL-2'.
|
||||
|
||||
License: LGPL-2+
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
.
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian GNU/Linux systems, the complete text of the GNU Lesser
|
||||
General Public License can be found in `/usr/share/common-licenses/LGPL-2'.
|
||||
|
||||
License: ISC
|
||||
Permission to use, copy, modify, and distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
License: BSD-3-Clause
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
3. Neither the name of the copyright holder nor the names of its contributors
|
||||
may be used to endorse or promote products derived from this software without
|
||||
specific prior written permission.
|
||||
.
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
License: MIT
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
.
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
||||
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
9
distro/pkg/deb/cz.nic.knotd.conf
Normal file
9
distro/pkg/deb/cz.nic.knotd.conf
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||
<busconfig>
|
||||
<policy user="knot">
|
||||
<allow own="cz.nic.knotd" />
|
||||
</policy>
|
||||
<policy context="default">
|
||||
<allow receive_sender="cz.nic.knotd" />
|
||||
</policy>
|
||||
</busconfig>
|
1
distro/pkg/deb/docs
Normal file
1
distro/pkg/deb/docs
Normal file
|
@ -0,0 +1 @@
|
|||
README.md
|
3
distro/pkg/deb/knot-dnssecutils.install
Normal file
3
distro/pkg/deb/knot-dnssecutils.install
Normal file
|
@ -0,0 +1,3 @@
|
|||
usr/bin/knsec3hash
|
||||
usr/bin/kzonecheck
|
||||
usr/bin/kzonesign
|
3
distro/pkg/deb/knot-dnssecutils.manpages
Normal file
3
distro/pkg/deb/knot-dnssecutils.manpages
Normal file
|
@ -0,0 +1,3 @@
|
|||
usr/share/man/man1/knsec3hash.1
|
||||
usr/share/man/man1/kzonecheck.1
|
||||
usr/share/man/man1/kzonesign.1
|
3
distro/pkg/deb/knot-dnsutils.install
Normal file
3
distro/pkg/deb/knot-dnsutils.install
Normal file
|
@ -0,0 +1,3 @@
|
|||
usr/bin/kdig
|
||||
usr/bin/knsupdate
|
||||
usr/sbin/kxdpgun
|
3
distro/pkg/deb/knot-dnsutils.manpages
Normal file
3
distro/pkg/deb/knot-dnsutils.manpages
Normal file
|
@ -0,0 +1,3 @@
|
|||
usr/share/man/man1/kdig.1
|
||||
usr/share/man/man1/knsupdate.1
|
||||
usr/share/man/man8/kxdpgun.8
|
1
distro/pkg/deb/knot-doc.install
Normal file
1
distro/pkg/deb/knot-doc.install
Normal file
|
@ -0,0 +1 @@
|
|||
usr/share/doc/knot/* /usr/share/doc/knot-doc/
|
5
distro/pkg/deb/knot-doc.links
Normal file
5
distro/pkg/deb/knot-doc.links
Normal file
|
@ -0,0 +1,5 @@
|
|||
usr/share/javascript/jquery/jquery.min.js usr/share/doc/knot-doc/_static/jquery.js
|
||||
usr/share/javascript/sphinxdoc/1.0/doctools.js usr/share/doc/knot-doc/_static/doctools.js
|
||||
usr/share/javascript/sphinxdoc/1.0/language_data.js usr/share/doc/knot-doc/_static/language_data.js
|
||||
usr/share/javascript/sphinxdoc/1.0/searchtools.js usr/share/doc/knot-doc/_static/searchtools.js
|
||||
usr/share/javascript/underscore/underscore.min.js usr/share/doc/knot-doc/_static/underscore.js
|
3
distro/pkg/deb/knot-exporter.install
Normal file
3
distro/pkg/deb/knot-exporter.install
Normal file
|
@ -0,0 +1,3 @@
|
|||
usr/lib/python3*/dist-packages/knot_exporter-*.egg-info
|
||||
usr/lib/python3*/dist-packages/knot_exporter/*.py
|
||||
usr/bin/knot-exporter /usr/sbin/
|
1
distro/pkg/deb/knot-host.install
Normal file
1
distro/pkg/deb/knot-host.install
Normal file
|
@ -0,0 +1 @@
|
|||
usr/bin/khost
|
1
distro/pkg/deb/knot-host.manpages
Normal file
1
distro/pkg/deb/knot-host.manpages
Normal file
|
@ -0,0 +1 @@
|
|||
usr/share/man/man1/khost.1
|
1
distro/pkg/deb/knot-module-dnstap.install
Normal file
1
distro/pkg/deb/knot-module-dnstap.install
Normal file
|
@ -0,0 +1 @@
|
|||
usr/lib/*/knot/modules-*/dnstap.so
|
1
distro/pkg/deb/knot-module-geoip.install
Normal file
1
distro/pkg/deb/knot-module-geoip.install
Normal file
|
@ -0,0 +1 @@
|
|||
usr/lib/*/knot/modules-*/geoip.so
|
1
distro/pkg/deb/knot.dirs
Normal file
1
distro/pkg/deb/knot.dirs
Normal file
|
@ -0,0 +1 @@
|
|||
var/lib/knot
|
149
distro/pkg/deb/knot.init
Normal file
149
distro/pkg/deb/knot.init
Normal file
|
@ -0,0 +1,149 @@
|
|||
#!/bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: knot
|
||||
# Required-Start: $network $local_fs $remote_fs $syslog
|
||||
# Required-Stop: $remote_fs $syslog
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: authoritative domain name server
|
||||
# Description: Knot DNS is a authoritative-only domain name server
|
||||
### END INIT INFO
|
||||
|
||||
# Author: Ondřej Surý <ondrej@debian.org>
|
||||
|
||||
# PATH should only include /usr/* if it runs after the mountnfs.sh script
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||
DESC="Knot DNS server" # Introduce a short description here
|
||||
NAME=knotd # Introduce the short server's name here
|
||||
DAEMON=/usr/sbin/$NAME # Introduce the server's location here
|
||||
PIDFILE=/run/knot/knot.pid
|
||||
SCRIPTNAME=/etc/init.d/knot
|
||||
KNOTC=/usr/sbin/knotc
|
||||
RUNDIR=/run/knot
|
||||
|
||||
# Exit if the package is not installed
|
||||
[ -x $DAEMON ] || exit 0
|
||||
|
||||
KNOTD_ARGS=""
|
||||
|
||||
# Read configuration variable file if it is present
|
||||
[ -r /etc/default/knot ] && . /etc/default/knot
|
||||
|
||||
DAEMON_ARGS="-d $KNOTD_ARGS"
|
||||
|
||||
# Define LSB log_* functions.
|
||||
# Depend on sysvinit-utils (>= 2.96) to ensure that this file is present.
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
#
|
||||
# Function that starts the daemon/service
|
||||
#
|
||||
do_start()
|
||||
{
|
||||
# Return
|
||||
# 0 if daemon has been started
|
||||
# 1 if daemon was already running
|
||||
# 2 if daemon could not be started
|
||||
|
||||
$KNOTC status >/dev/null 2>/dev/null \
|
||||
&& return 1
|
||||
|
||||
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|
||||
|| return 1
|
||||
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
|
||||
$DAEMON_ARGS \
|
||||
|| return 2
|
||||
}
|
||||
|
||||
#
|
||||
# Function that stops the daemon/service
|
||||
#
|
||||
do_stop()
|
||||
{
|
||||
# Return
|
||||
# 0 if daemon has been stopped
|
||||
# 1 if daemon was already stopped
|
||||
# 2 if daemon could not be stopped
|
||||
# other if a failure occurred
|
||||
|
||||
$KNOTC status >/dev/null 2>/dev/null \
|
||||
|| return 1
|
||||
|
||||
$KNOTC stop >/dev/null
|
||||
RETVAL="$?"
|
||||
[ $? = 1 ] && return 2
|
||||
|
||||
# Many daemons don't delete their pidfiles when they exit.
|
||||
rm -f $PIDFILE
|
||||
return 0
|
||||
}
|
||||
|
||||
do_reload() {
|
||||
$KNOTC reload >/dev/null
|
||||
return $?
|
||||
}
|
||||
|
||||
do_mkrundir() {
|
||||
mkdir -p $RUNDIR
|
||||
chmod 0755 $RUNDIR
|
||||
chown knot:knot $RUNDIR
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
do_mkrundir
|
||||
log_daemon_msg "Starting $DESC " "$NAME"
|
||||
do_start
|
||||
case "$?" in
|
||||
0|1) log_end_msg 0 ;;
|
||||
2) log_end_msg 1 ;;
|
||||
esac
|
||||
;;
|
||||
stop)
|
||||
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||
do_stop
|
||||
case "$?" in
|
||||
0|1) log_end_msg 0 ;;
|
||||
2) log_end_msg 1 ;;
|
||||
esac
|
||||
;;
|
||||
status)
|
||||
STATUS=$($KNOTC status 2>&1 >/dev/null)
|
||||
RETVAL=$?
|
||||
if [ $RETVAL = 0 ]; then
|
||||
log_success_msg "$NAME is running"
|
||||
else
|
||||
log_failure_msg "$NAME is not running ($STATUS)"
|
||||
fi
|
||||
exit $RETVAL
|
||||
;;
|
||||
reload|force-reload)
|
||||
log_daemon_msg "Reloading $DESC" "$NAME"
|
||||
do_reload
|
||||
log_end_msg $?
|
||||
;;
|
||||
restart)
|
||||
log_daemon_msg "Restarting $DESC" "$NAME"
|
||||
do_stop
|
||||
case "$?" in
|
||||
0|1)
|
||||
do_start
|
||||
case "$?" in
|
||||
0) log_end_msg 0 ;;
|
||||
1) log_end_msg 1 ;; # Old process is still running
|
||||
*) log_end_msg 1 ;; # Failed to start
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
# Failed to stop
|
||||
log_end_msg 1
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $SCRIPTNAME {start|stop|status|restart|reload|force-reload}" >&2
|
||||
exit 3
|
||||
;;
|
||||
esac
|
||||
|
||||
:
|
7
distro/pkg/deb/knot.install
Normal file
7
distro/pkg/deb/knot.install
Normal file
|
@ -0,0 +1,7 @@
|
|||
debian/cz.nic.knotd.conf usr/share/dbus-1/system.d/
|
||||
etc/knot/knot.conf
|
||||
usr/sbin/kcatalogprint
|
||||
usr/sbin/keymgr
|
||||
usr/sbin/kjournalprint
|
||||
usr/sbin/knotc
|
||||
usr/sbin/knotd
|
6
distro/pkg/deb/knot.manpages
Normal file
6
distro/pkg/deb/knot.manpages
Normal file
|
@ -0,0 +1,6 @@
|
|||
usr/share/man/man5/knot.conf.5
|
||||
usr/share/man/man8/kcatalogprint.8
|
||||
usr/share/man/man8/keymgr.8
|
||||
usr/share/man/man8/kjournalprint.8
|
||||
usr/share/man/man8/knotc.8
|
||||
usr/share/man/man8/knotd.8
|
16
distro/pkg/deb/knot.postinst
Normal file
16
distro/pkg/deb/knot.postinst
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "$1" = "configure" ]; then
|
||||
if ! getent passwd knot > /dev/null; then
|
||||
adduser --quiet --system --group --no-create-home --home /var/lib/knot knot
|
||||
fi
|
||||
|
||||
dpkg-statoverride --list /var/lib/knot >/dev/null 2>&1 || dpkg-statoverride --update --add root knot 0770 /var/lib/knot
|
||||
dpkg-statoverride --list /etc/knot/knot.conf >/dev/null 2>&1 || dpkg-statoverride --update --add root knot 0640 /etc/knot/knot.conf
|
||||
dpkg-statoverride --list /etc/knot >/dev/null 2>&1 || dpkg-statoverride --update --add root knot 0750 /etc/knot
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
21
distro/pkg/deb/knot.postrm
Normal file
21
distro/pkg/deb/knot.postrm
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if test "$1" = "purge"; then
|
||||
state_dir=/var/lib/knot
|
||||
for db_name in "catalog" "confdb" "journal" "keys" "timers"; do
|
||||
rm -rf $state_dir/$db_name >/dev/null 2>&1 || true
|
||||
done
|
||||
rmdir $state_dir >/dev/null 2>&1 || true
|
||||
[ -e $state_dir/* ] && echo "Notice: there are still data in ${state_dir}, please check."
|
||||
|
||||
dpkg-statoverride --remove /var/lib/knot >/dev/null 2>&1 || true
|
||||
dpkg-statoverride --remove /etc/knot/knot.conf >/dev/null 2>&1 || true
|
||||
dpkg-statoverride --remove /etc/knot >/dev/null 2>&1 || true
|
||||
|
||||
deluser --quiet knot >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
30
distro/pkg/deb/knot.service
Normal file
30
distro/pkg/deb/knot.service
Normal file
|
@ -0,0 +1,30 @@
|
|||
[Unit]
|
||||
Description=Knot DNS server
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
Documentation=man:knotd(8) man:knot.conf(5) man:knotc(8)
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
User=knot
|
||||
Group=knot
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETPCAP
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_SETPCAP
|
||||
ExecStartPre=/usr/sbin/knotc conf-check
|
||||
ExecStart=/usr/sbin/knotd -m "$KNOT_CONF_MAX_SIZE"
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=on-abort
|
||||
LimitNOFILE=1048576
|
||||
TimeoutStopSec=300
|
||||
# Extend the systemd startup timeout by this value (seconds) for each zone
|
||||
Environment="KNOT_ZONE_LOAD_TIMEOUT_SEC=180"
|
||||
# Maximum size (MiB) of a configuration database
|
||||
Environment="KNOT_CONF_MAX_SIZE=512"
|
||||
|
||||
# Expected systemd >= v239
|
||||
RuntimeDirectory=knot
|
||||
StateDirectory=knot
|
||||
NoNewPrivileges=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
1
distro/pkg/deb/libdnssec9.install
Normal file
1
distro/pkg/deb/libdnssec9.install
Normal file
|
@ -0,0 +1 @@
|
|||
usr/lib/*/libdnssec.so.*
|
96
distro/pkg/deb/libdnssec9.symbols
Normal file
96
distro/pkg/deb/libdnssec9.symbols
Normal file
|
@ -0,0 +1,96 @@
|
|||
libdnssec.so.9 libdnssec9 #MINVER#
|
||||
* Build-Depends-Package: libknot-dev
|
||||
dnssec_algorithm_digest_support@Base 3.2.0
|
||||
dnssec_algorithm_key_size_check@Base 3.2.0
|
||||
dnssec_algorithm_key_size_default@Base 3.2.0
|
||||
dnssec_algorithm_key_size_range@Base 3.2.0
|
||||
dnssec_algorithm_key_support@Base 3.2.0
|
||||
dnssec_algorithm_reproducible@Base 3.2.0
|
||||
dnssec_binary_alloc@Base 3.2.0
|
||||
dnssec_binary_cmp@Base 3.2.0
|
||||
dnssec_binary_dup@Base 3.2.0
|
||||
dnssec_binary_free@Base 3.2.0
|
||||
dnssec_binary_from_base64@Base 3.2.0
|
||||
dnssec_binary_resize@Base 3.2.0
|
||||
dnssec_binary_to_base64@Base 3.2.0
|
||||
dnssec_crypto_cleanup@Base 3.2.0
|
||||
dnssec_crypto_init@Base 3.2.0
|
||||
dnssec_crypto_reinit@Base 3.2.0
|
||||
dnssec_digest@Base 3.2.0
|
||||
dnssec_digest_finish@Base 3.2.0
|
||||
dnssec_digest_init@Base 3.2.0
|
||||
dnssec_key_can_sign@Base 3.2.0
|
||||
dnssec_key_can_verify@Base 3.2.0
|
||||
dnssec_key_clear@Base 3.2.0
|
||||
dnssec_key_create_ds@Base 3.2.0
|
||||
dnssec_key_dup@Base 3.2.0
|
||||
dnssec_key_free@Base 3.2.0
|
||||
dnssec_key_get_algorithm@Base 3.2.0
|
||||
dnssec_key_get_dname@Base 3.2.0
|
||||
dnssec_key_get_flags@Base 3.2.0
|
||||
dnssec_key_get_keyid@Base 3.2.0
|
||||
dnssec_key_get_keytag@Base 3.2.0
|
||||
dnssec_key_get_protocol@Base 3.2.0
|
||||
dnssec_key_get_pubkey@Base 3.2.0
|
||||
dnssec_key_get_rdata@Base 3.2.0
|
||||
dnssec_key_get_size@Base 3.2.0
|
||||
dnssec_key_load_pkcs8@Base 3.2.0
|
||||
dnssec_key_new@Base 3.2.0
|
||||
dnssec_key_set_algorithm@Base 3.2.0
|
||||
dnssec_key_set_dname@Base 3.2.0
|
||||
dnssec_key_set_flags@Base 3.2.0
|
||||
dnssec_key_set_protocol@Base 3.2.0
|
||||
dnssec_key_set_pubkey@Base 3.2.0
|
||||
dnssec_key_set_rdata@Base 3.2.0
|
||||
dnssec_keyid_copy@Base 3.2.0
|
||||
dnssec_keyid_equal@Base 3.2.0
|
||||
dnssec_keyid_is_valid@Base 3.2.0
|
||||
dnssec_keyid_normalize@Base 3.2.0
|
||||
dnssec_keystore_close@Base 3.2.0
|
||||
dnssec_keystore_deinit@Base 3.2.0
|
||||
dnssec_keystore_generate@Base 3.2.0
|
||||
dnssec_keystore_get_private@Base 3.2.0
|
||||
dnssec_keystore_import@Base 3.2.0
|
||||
dnssec_keystore_init@Base 3.2.0
|
||||
dnssec_keystore_init_pkcs11@Base 3.2.0
|
||||
dnssec_keystore_init_pkcs8@Base 3.2.0
|
||||
dnssec_keystore_open@Base 3.2.0
|
||||
dnssec_keystore_remove@Base 3.2.0
|
||||
dnssec_keystore_set_private@Base 3.2.0
|
||||
dnssec_keytag@Base 3.2.0
|
||||
dnssec_nsec3_hash@Base 3.2.0
|
||||
dnssec_nsec3_hash_length@Base 3.2.0
|
||||
dnssec_nsec3_params_free@Base 3.2.0
|
||||
dnssec_nsec3_params_from_rdata@Base 3.2.0
|
||||
dnssec_nsec3_params_match@Base 3.2.0
|
||||
dnssec_nsec_bitmap_add@Base 3.2.0
|
||||
dnssec_nsec_bitmap_clear@Base 3.2.0
|
||||
dnssec_nsec_bitmap_contains@Base 3.2.0
|
||||
dnssec_nsec_bitmap_free@Base 3.2.0
|
||||
dnssec_nsec_bitmap_new@Base 3.2.0
|
||||
dnssec_nsec_bitmap_size@Base 3.2.0
|
||||
dnssec_nsec_bitmap_write@Base 3.2.0
|
||||
dnssec_pem_from_privkey@Base 3.2.0
|
||||
dnssec_pem_from_x509@Base 3.2.0
|
||||
dnssec_pem_to_privkey@Base 3.2.0
|
||||
dnssec_pem_to_x509@Base 3.2.0
|
||||
dnssec_random_binary@Base 3.2.0
|
||||
dnssec_random_buffer@Base 3.2.0
|
||||
dnssec_sign_add@Base 3.2.0
|
||||
dnssec_sign_free@Base 3.2.0
|
||||
dnssec_sign_init@Base 3.2.0
|
||||
dnssec_sign_new@Base 3.2.0
|
||||
dnssec_sign_verify@Base 3.2.0
|
||||
dnssec_sign_write@Base 3.2.0
|
||||
dnssec_strerror@Base 3.2.0
|
||||
dnssec_tsig_add@Base 3.2.0
|
||||
dnssec_tsig_algorithm_from_dname@Base 3.2.0
|
||||
dnssec_tsig_algorithm_from_name@Base 3.2.0
|
||||
dnssec_tsig_algorithm_size@Base 3.2.0
|
||||
dnssec_tsig_algorithm_to_dname@Base 3.2.0
|
||||
dnssec_tsig_algorithm_to_name@Base 3.2.0
|
||||
dnssec_tsig_free@Base 3.2.0
|
||||
dnssec_tsig_new@Base 3.2.0
|
||||
dnssec_tsig_optimal_key_size@Base 3.2.0
|
||||
dnssec_tsig_size@Base 3.2.0
|
||||
dnssec_tsig_write@Base 3.2.0
|
3
distro/pkg/deb/libknot-dev.install
Normal file
3
distro/pkg/deb/libknot-dev.install
Normal file
|
@ -0,0 +1,3 @@
|
|||
usr/include/
|
||||
usr/lib/*/*.so
|
||||
usr/lib/*/pkgconfig/*
|
1
distro/pkg/deb/libknot15.install
Normal file
1
distro/pkg/deb/libknot15.install
Normal file
|
@ -0,0 +1 @@
|
|||
usr/lib/*/libknot.so.*
|
296
distro/pkg/deb/libknot15.symbols
Normal file
296
distro/pkg/deb/libknot15.symbols
Normal file
|
@ -0,0 +1,296 @@
|
|||
libknot.so.15 libknot15 #MINVER#
|
||||
* Build-Depends-Package: libknot-dev
|
||||
KNOT_DB_LMDB_DUPSORT@Base 3.4.0
|
||||
KNOT_DB_LMDB_INTEGERKEY@Base 3.4.0
|
||||
KNOT_DB_LMDB_MAPASYNC@Base 3.4.0
|
||||
KNOT_DB_LMDB_NOSYNC@Base 3.4.0
|
||||
KNOT_DB_LMDB_NOTLS@Base 3.4.0
|
||||
KNOT_DB_LMDB_RDONLY@Base 3.4.0
|
||||
KNOT_DB_LMDB_WRITEMAP@Base 3.4.0
|
||||
KNOT_DUMP_STYLE_DEFAULT@Base 3.4.0
|
||||
knot_creds_cert@Base 3.4.0
|
||||
knot_creds_free@Base 3.4.0
|
||||
knot_creds_init@Base 3.4.0
|
||||
knot_creds_init_peer@Base 3.4.0
|
||||
knot_creds_update@Base 3.4.0
|
||||
knot_ctl_accept@Base 3.4.0
|
||||
knot_ctl_alloc@Base 3.4.0
|
||||
knot_ctl_bind@Base 3.4.0
|
||||
knot_ctl_clone@Base 3.4.0
|
||||
knot_ctl_close@Base 3.4.0
|
||||
knot_ctl_connect@Base 3.4.0
|
||||
knot_ctl_free@Base 3.4.0
|
||||
knot_ctl_receive@Base 3.4.0
|
||||
knot_ctl_send@Base 3.4.0
|
||||
knot_ctl_set_timeout@Base 3.4.0
|
||||
knot_ctl_unbind@Base 3.4.0
|
||||
knot_db_lmdb_api@Base 3.4.0
|
||||
knot_db_lmdb_del_exact@Base 3.4.0
|
||||
knot_db_lmdb_get_mapsize@Base 3.4.0
|
||||
knot_db_lmdb_get_path@Base 3.4.0
|
||||
knot_db_lmdb_get_usage@Base 3.4.0
|
||||
knot_db_lmdb_iter_del@Base 3.4.0
|
||||
knot_db_lmdb_txn_begin@Base 3.4.0
|
||||
knot_db_trie_api@Base 3.4.0
|
||||
knot_dname_cmp@Base 3.4.0
|
||||
knot_dname_copy@Base 3.4.0
|
||||
knot_dname_copy_lower@Base 3.4.0
|
||||
knot_dname_free@Base 3.4.0
|
||||
knot_dname_from_str@Base 3.4.0
|
||||
knot_dname_in_bailiwick@Base 3.4.0
|
||||
knot_dname_is_case_equal@Base 3.4.0
|
||||
knot_dname_is_equal@Base 3.4.0
|
||||
knot_dname_labels@Base 3.4.0
|
||||
knot_dname_lf@Base 3.4.0
|
||||
knot_dname_matched_labels@Base 3.4.0
|
||||
knot_dname_prefixlen@Base 3.4.0
|
||||
knot_dname_realsize@Base 3.4.0
|
||||
knot_dname_replace_suffix@Base 3.4.0
|
||||
knot_dname_size@Base 3.4.0
|
||||
knot_dname_store@Base 3.4.0
|
||||
knot_dname_to_lower@Base 3.4.0
|
||||
knot_dname_to_str@Base 3.4.0
|
||||
knot_dname_to_wire@Base 3.4.0
|
||||
knot_dname_unpack@Base 3.4.0
|
||||
knot_dname_wire_check@Base 3.4.0
|
||||
knot_dname_with_null@Base 3.4.3
|
||||
knot_dnssec_alg_names@Base 3.4.0
|
||||
knot_edns_add_option@Base 3.4.0
|
||||
knot_edns_alignment_size@Base 3.4.0
|
||||
knot_edns_chain_parse@Base 3.4.0
|
||||
knot_edns_chain_size@Base 3.4.0
|
||||
knot_edns_chain_write@Base 3.4.0
|
||||
knot_edns_client_subnet_get_addr@Base 3.4.0
|
||||
knot_edns_client_subnet_parse@Base 3.4.0
|
||||
knot_edns_client_subnet_set_addr@Base 3.4.0
|
||||
knot_edns_client_subnet_size@Base 3.4.0
|
||||
knot_edns_client_subnet_write@Base 3.4.0
|
||||
knot_edns_cookie_client_check@Base 3.4.0
|
||||
knot_edns_cookie_client_generate@Base 3.4.0
|
||||
knot_edns_cookie_parse@Base 3.4.0
|
||||
knot_edns_cookie_server_check@Base 3.4.0
|
||||
knot_edns_cookie_server_generate@Base 3.4.0
|
||||
knot_edns_cookie_size@Base 3.4.0
|
||||
knot_edns_cookie_write@Base 3.4.0
|
||||
knot_edns_ede_names@Base 3.4.0
|
||||
knot_edns_get_ext_rcode@Base 3.4.0
|
||||
knot_edns_get_option@Base 3.4.0
|
||||
knot_edns_get_options@Base 3.4.0
|
||||
knot_edns_get_version@Base 3.4.0
|
||||
knot_edns_init@Base 3.4.0
|
||||
knot_edns_keepalive_parse@Base 3.4.0
|
||||
knot_edns_keepalive_size@Base 3.4.0
|
||||
knot_edns_keepalive_write@Base 3.4.0
|
||||
knot_edns_opt_names@Base 3.4.0
|
||||
knot_edns_reserve_option@Base 3.4.0
|
||||
knot_edns_set_ext_rcode@Base 3.4.0
|
||||
knot_edns_set_version@Base 3.4.0
|
||||
knot_edns_zoneversion_parse@Base 3.4.4
|
||||
knot_edns_zoneversion_write@Base 3.4.4
|
||||
knot_error_from_libdnssec@Base 3.4.0
|
||||
knot_eth_mtu@Base 3.4.0
|
||||
knot_eth_name_from_addr@Base 3.4.0
|
||||
knot_eth_queues@Base 3.4.0
|
||||
knot_eth_rss@Base 3.4.0
|
||||
knot_eth_vlans@Base 3.4.0
|
||||
knot_eth_xdp_mode@Base 3.4.0
|
||||
knot_get_obsolete_rdata_descriptor@Base 3.4.0
|
||||
knot_get_rdata_descriptor@Base 3.4.0
|
||||
knot_naptr_header_size@Base 3.4.0
|
||||
knot_opcode_names@Base 3.4.0
|
||||
knot_opt_code_to_string@Base 3.4.0
|
||||
knot_pkt_begin@Base 3.4.0
|
||||
knot_pkt_clear@Base 3.4.0
|
||||
knot_pkt_copy@Base 3.4.0
|
||||
knot_pkt_ext_rcode@Base 3.4.0
|
||||
knot_pkt_ext_rcode_name@Base 3.4.0
|
||||
knot_pkt_free@Base 3.4.0
|
||||
knot_pkt_init_response@Base 3.4.0
|
||||
knot_pkt_new@Base 3.4.0
|
||||
knot_pkt_parse@Base 3.4.0
|
||||
knot_pkt_parse_question@Base 3.4.0
|
||||
knot_pkt_put_question@Base 3.4.0
|
||||
knot_pkt_put_rotate@Base 3.4.0
|
||||
knot_pkt_reclaim@Base 3.4.0
|
||||
knot_pkt_reserve@Base 3.4.0
|
||||
knot_probe_alloc@Base 3.4.0
|
||||
knot_probe_consume@Base 3.4.0
|
||||
knot_probe_data_set@Base 3.4.0
|
||||
knot_probe_fd@Base 3.4.0
|
||||
knot_probe_free@Base 3.4.0
|
||||
knot_probe_produce@Base 3.4.0
|
||||
knot_probe_set_consumer@Base 3.4.0
|
||||
knot_probe_set_producer@Base 3.4.0
|
||||
knot_probe_tcp_rtt@Base 3.4.0
|
||||
knot_quic_cleanup@Base 3.4.0
|
||||
knot_quic_client@Base 3.4.0
|
||||
knot_quic_conn_block@Base 3.4.0
|
||||
knot_quic_conn_get_stream@Base 3.4.0
|
||||
knot_quic_conn_local_port@Base 3.4.0
|
||||
knot_quic_conn_new_stream@Base 3.4.0
|
||||
knot_quic_conn_next_timeout@Base 3.4.0
|
||||
knot_quic_conn_rtt@Base 3.4.0
|
||||
knot_quic_conn_stream_free@Base 3.4.0
|
||||
knot_quic_handle@Base 3.4.0
|
||||
knot_quic_hanle_expiry@Base 3.4.0
|
||||
knot_quic_send@Base 3.4.0
|
||||
knot_quic_session_available@Base 3.4.0
|
||||
knot_quic_session_load@Base 3.4.0
|
||||
knot_quic_session_save@Base 3.4.0
|
||||
knot_quic_stream_add_data@Base 3.4.0
|
||||
knot_quic_stream_get_process@Base 3.4.0
|
||||
knot_quic_table_free@Base 3.4.0
|
||||
knot_quic_table_new@Base 3.4.0
|
||||
knot_quic_table_rem@Base 3.4.0
|
||||
knot_quic_table_sweep@Base 3.4.0
|
||||
knot_rcode_names@Base 3.4.0
|
||||
knot_rdataset_add@Base 3.4.0
|
||||
knot_rdataset_at@Base 3.4.0
|
||||
knot_rdataset_clear@Base 3.4.0
|
||||
knot_rdataset_copy@Base 3.4.0
|
||||
knot_rdataset_eq@Base 3.4.0
|
||||
knot_rdataset_intersect@Base 3.4.0
|
||||
knot_rdataset_intersect2@Base 3.4.0
|
||||
knot_rdataset_member@Base 3.4.0
|
||||
knot_rdataset_merge@Base 3.4.0
|
||||
knot_rdataset_subset@Base 3.4.0
|
||||
knot_rdataset_subtract@Base 3.4.0
|
||||
knot_rrclass_from_string@Base 3.4.0
|
||||
knot_rrclass_to_string@Base 3.4.0
|
||||
knot_rrset_add_rdata@Base 3.4.0
|
||||
knot_rrset_clear@Base 3.4.0
|
||||
knot_rrset_copy@Base 3.4.0
|
||||
knot_rrset_equal@Base 3.4.0
|
||||
knot_rrset_free@Base 3.4.0
|
||||
knot_rrset_is_nsec3rel@Base 3.4.0
|
||||
knot_rrset_new@Base 3.4.0
|
||||
knot_rrset_rr_from_wire@Base 3.4.0
|
||||
knot_rrset_rr_to_canonical@Base 3.4.0
|
||||
knot_rrset_size@Base 3.4.0
|
||||
knot_rrset_to_wire_extra@Base 3.4.0
|
||||
knot_rrset_txt_dump@Base 3.4.0
|
||||
knot_rrset_txt_dump_data@Base 3.4.0
|
||||
knot_rrset_txt_dump_edns@Base 3.4.0
|
||||
knot_rrset_txt_dump_header@Base 3.4.0
|
||||
knot_rrtype_additional_needed@Base 3.4.0
|
||||
knot_rrtype_from_string@Base 3.4.0
|
||||
knot_rrtype_is_dnssec@Base 3.4.0
|
||||
knot_rrtype_is_metatype@Base 3.4.0
|
||||
knot_rrtype_should_be_lowercased@Base 3.4.0
|
||||
knot_rrtype_to_string@Base 3.4.0
|
||||
knot_strerror@Base 3.4.0
|
||||
knot_svcb_param_names@Base 3.4.0
|
||||
knot_tcp_cleanup@Base 3.4.0
|
||||
knot_tcp_inbufs_upd@Base 3.4.0
|
||||
knot_tcp_outbufs_ack@Base 3.4.0
|
||||
knot_tcp_outbufs_add@Base 3.4.0
|
||||
knot_tcp_outbufs_can_send@Base 3.4.0
|
||||
knot_tcp_outbufs_usage@Base 3.4.0
|
||||
knot_tcp_recv@Base 3.4.0
|
||||
knot_tcp_reply_data@Base 3.4.0
|
||||
knot_tcp_send@Base 3.4.0
|
||||
knot_tcp_sweep@Base 3.4.0
|
||||
knot_tcp_table_free@Base 3.4.0
|
||||
knot_tcp_table_new@Base 3.4.0
|
||||
knot_tls_conn_block@Base 3.4.0
|
||||
knot_tls_conn_del@Base 3.4.0
|
||||
knot_tls_conn_new@Base 3.4.0
|
||||
knot_tls_ctx_free@Base 3.4.0
|
||||
knot_tls_ctx_new@Base 3.4.0
|
||||
knot_tls_handshake@Base 3.4.0
|
||||
knot_tls_pin@Base 3.4.0
|
||||
knot_tls_pin_check@Base 3.4.0
|
||||
knot_tls_recv_dns@Base 3.4.0
|
||||
knot_tls_send_dns@Base 3.4.0
|
||||
knot_tls_session@Base 3.4.0
|
||||
knot_tls_session_available@Base 3.4.1
|
||||
knot_tls_session_load@Base 3.4.1
|
||||
knot_tls_session_save@Base 3.4.1
|
||||
knot_tsig_add@Base 3.4.0
|
||||
knot_tsig_append@Base 3.4.0
|
||||
knot_tsig_client_check@Base 3.4.0
|
||||
knot_tsig_client_check_next@Base 3.4.0
|
||||
knot_tsig_create_rdata@Base 3.4.0
|
||||
knot_tsig_key_copy@Base 3.4.0
|
||||
knot_tsig_key_deinit@Base 3.4.0
|
||||
knot_tsig_key_init@Base 3.4.0
|
||||
knot_tsig_key_init_file@Base 3.4.0
|
||||
knot_tsig_key_init_str@Base 3.4.0
|
||||
knot_tsig_rcode_names@Base 3.4.0
|
||||
knot_tsig_rdata_alg@Base 3.4.0
|
||||
knot_tsig_rdata_alg_name@Base 3.4.0
|
||||
knot_tsig_rdata_error@Base 3.4.0
|
||||
knot_tsig_rdata_fudge@Base 3.4.0
|
||||
knot_tsig_rdata_is_ok@Base 3.4.0
|
||||
knot_tsig_rdata_mac@Base 3.4.0
|
||||
knot_tsig_rdata_mac_length@Base 3.4.0
|
||||
knot_tsig_rdata_orig_id@Base 3.4.0
|
||||
knot_tsig_rdata_other_data@Base 3.4.0
|
||||
knot_tsig_rdata_other_data_length@Base 3.4.0
|
||||
knot_tsig_rdata_set_fudge@Base 3.4.0
|
||||
knot_tsig_rdata_set_mac@Base 3.4.0
|
||||
knot_tsig_rdata_set_orig_id@Base 3.4.0
|
||||
knot_tsig_rdata_set_other_data@Base 3.4.0
|
||||
knot_tsig_rdata_set_time_signed@Base 3.4.0
|
||||
knot_tsig_rdata_time_signed@Base 3.4.0
|
||||
knot_tsig_rdata_tsig_timers_length@Base 3.4.0
|
||||
knot_tsig_rdata_tsig_variables_length@Base 3.4.0
|
||||
knot_tsig_server_check@Base 3.4.0
|
||||
knot_tsig_sign@Base 3.4.0
|
||||
knot_tsig_sign_next@Base 3.4.0
|
||||
knot_tsig_wire_maxsize@Base 3.4.0
|
||||
knot_tsig_wire_size@Base 3.4.0
|
||||
knot_xdp_deinit@Base 3.4.0
|
||||
knot_xdp_init@Base 3.4.0
|
||||
knot_xdp_recv@Base 3.4.0
|
||||
knot_xdp_recv_finish@Base 3.4.0
|
||||
knot_xdp_reply_alloc@Base 3.4.0
|
||||
knot_xdp_send@Base 3.4.0
|
||||
knot_xdp_send_alloc@Base 3.4.0
|
||||
knot_xdp_send_finish@Base 3.4.0
|
||||
knot_xdp_send_free@Base 3.4.0
|
||||
knot_xdp_send_prepare@Base 3.4.0
|
||||
knot_xdp_socket_info@Base 3.4.0
|
||||
knot_xdp_socket_stats@Base 3.4.0
|
||||
knot_xdp_socket_fd@Base 3.4.0
|
||||
yp_addr@Base 3.4.0
|
||||
yp_addr_noport@Base 3.4.0
|
||||
yp_addr_noport_to_bin@Base 3.4.0
|
||||
yp_addr_noport_to_txt@Base 3.4.0
|
||||
yp_addr_range_to_bin@Base 3.4.0
|
||||
yp_addr_range_to_txt@Base 3.4.0
|
||||
yp_addr_to_bin@Base 3.4.0
|
||||
yp_addr_to_txt@Base 3.4.0
|
||||
yp_base64_to_bin@Base 3.4.0
|
||||
yp_base64_to_txt@Base 3.4.0
|
||||
yp_bool_to_bin@Base 3.4.0
|
||||
yp_bool_to_txt@Base 3.4.0
|
||||
yp_deinit@Base 3.4.0
|
||||
yp_dname_to_bin@Base 3.4.0
|
||||
yp_dname_to_txt@Base 3.4.0
|
||||
yp_format_id@Base 3.4.0
|
||||
yp_format_key0@Base 3.4.0
|
||||
yp_format_key1@Base 3.4.0
|
||||
yp_hex_to_bin@Base 3.4.0
|
||||
yp_hex_to_txt@Base 3.4.0
|
||||
yp_init@Base 3.4.0
|
||||
yp_int_to_bin@Base 3.4.0
|
||||
yp_int_to_txt@Base 3.4.0
|
||||
yp_item_to_bin@Base 3.4.0
|
||||
yp_item_to_txt@Base 3.4.0
|
||||
yp_option_to_bin@Base 3.4.0
|
||||
yp_option_to_txt@Base 3.4.0
|
||||
yp_parse@Base 3.4.0
|
||||
yp_schema_check_deinit@Base 3.4.0
|
||||
yp_schema_check_init@Base 3.4.0
|
||||
yp_schema_check_parser@Base 3.4.0
|
||||
yp_schema_check_str@Base 3.4.0
|
||||
yp_schema_copy@Base 3.4.0
|
||||
yp_schema_find@Base 3.4.0
|
||||
yp_schema_free@Base 3.4.0
|
||||
yp_schema_merge@Base 3.4.0
|
||||
yp_schema_purge_dynamic@Base 3.4.0
|
||||
yp_set_input_file@Base 3.4.0
|
||||
yp_set_input_string@Base 3.4.0
|
||||
yp_str_to_bin@Base 3.4.0
|
||||
yp_str_to_txt@Base 3.4.0
|
1
distro/pkg/deb/libzscanner4.install
Normal file
1
distro/pkg/deb/libzscanner4.install
Normal file
|
@ -0,0 +1 @@
|
|||
usr/lib/*/libzscanner.so.*
|
12
distro/pkg/deb/libzscanner4.symbols
Normal file
12
distro/pkg/deb/libzscanner4.symbols
Normal file
|
@ -0,0 +1,12 @@
|
|||
libzscanner.so.4 libzscanner4 #MINVER#
|
||||
* Build-Depends-Package: libknot-dev
|
||||
zs_deinit@Base 3.1.0
|
||||
zs_errorname@Base 3.1.0
|
||||
zs_init@Base 3.1.0
|
||||
zs_parse_all@Base 3.1.0
|
||||
zs_parse_record@Base 3.1.0
|
||||
zs_set_input_file@Base 3.1.0
|
||||
zs_set_input_string@Base 3.1.0
|
||||
zs_set_processing@Base 3.1.0
|
||||
zs_set_processing_comment@Base 3.1.0
|
||||
zs_strerror@Base 3.1.0
|
1
distro/pkg/deb/not-installed
Normal file
1
distro/pkg/deb/not-installed
Normal file
|
@ -0,0 +1 @@
|
|||
etc/knot/example.com.zone
|
38
distro/pkg/deb/prepare-environment
Executable file
38
distro/pkg/deb/prepare-environment
Executable file
|
@ -0,0 +1,38 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
CONFFILE=${1:-/etc/knot/knot.conf}
|
||||
|
||||
if [ ! -r $CONFFILE ]; then
|
||||
echo "$CONFFILE doesn't exist or has wrong permissions."
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
KNOT_RUNDIR=$(sed -ne "s/#.*$//;s/.*rundir: \"*\([^\";]*\\).*/\\1/p;" $CONFFILE)
|
||||
[ -z "$KNOT_RUNDIR" ] && KNOT_RUNDIR=/run/knot
|
||||
|
||||
mkdir --parents "$KNOT_RUNDIR";
|
||||
|
||||
KNOT_USER=$(sed -ne "s/#.*$//;s/.*user:[ \"]*\\([^\\:\"]*\\)[ \"]*/\\1/p;" $CONFFILE)
|
||||
|
||||
if [ -n "$KNOT_USER" ]; then
|
||||
if ! getent passwd $KNOT_USER >/dev/null; then
|
||||
echo "Configured user '$KNOT_USER' doesn't exist."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
KNOT_GROUP=$(sed -ne "s/#.*$//;s/.*user:[ \"]*[^\\:\"]*\\:\\([^\"]*\\)[ \"]*/\\1/p;" $CONFFILE)
|
||||
if [ -z "$KNOT_GROUP" ]; then
|
||||
KNOT_GROUP=$(getent group $(getent passwd "$KNOT_USER" | cut -f 4 -d :) | cut -f 1 -d :)
|
||||
fi
|
||||
|
||||
if ! getent group $KNOT_GROUP >/dev/null; then
|
||||
echo "Configured group '$KNOT_GROUP' doesn't exist."
|
||||
exit 1
|
||||
fi
|
||||
chown --silent "$KNOT_USER:$KNOT_GROUP" "$KNOT_RUNDIR"
|
||||
chmod 775 "$KNOT_RUNDIR"
|
||||
fi
|
||||
|
||||
:
|
2
distro/pkg/deb/python3-libknot.install
Normal file
2
distro/pkg/deb/python3-libknot.install
Normal file
|
@ -0,0 +1,2 @@
|
|||
usr/lib/python3*/dist-packages/libknot-*.egg-info
|
||||
usr/lib/python3*/dist-packages/libknot/*.py
|
89
distro/pkg/deb/rules
Executable file
89
distro/pkg/deb/rules
Executable file
|
@ -0,0 +1,89 @@
|
|||
#!/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
|
||||
|
||||
# Disable fastparser if requested
|
||||
ifeq (maint,$(filter $(DEB_BUILD_OPTIONS),maint))
|
||||
FASTPARSER := --disable-fastparser
|
||||
else
|
||||
FASTPARSER := --enable-fastparser
|
||||
endif
|
||||
|
||||
LIBKNOT_SYMBOLS := $(wildcard $(CURDIR)/debian/libknot*.symbols)
|
||||
|
||||
# MAJOR.MINOR version part
|
||||
BASE_VERSION := $(shell echo $(DEB_VERSION) | sed 's/^\([^.]\+\.[^.]\+\).*/\1/')
|
||||
|
||||
# pyproject is supported by knot but fails on second `pybuild --build`
|
||||
# invocation due to bug in dh-python's plugin_pyproject.py wheel unpack
|
||||
export PYBUILD_SYSTEM = distutils
|
||||
|
||||
%:
|
||||
dh $@ \
|
||||
--with python3
|
||||
|
||||
override_dh_auto_configure:
|
||||
@echo 'architecture:' $(DEB_HOST_ARCH)
|
||||
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 \
|
||||
--enable-recvmmsg=yes \
|
||||
--disable-silent-rules \
|
||||
--enable-xdp=yes \
|
||||
--enable-quic=yes \
|
||||
--disable-static \
|
||||
$(FASTPARSER)
|
||||
|
||||
override_dh_auto_configure-indep:
|
||||
pybuild --dir python/libknot --configure
|
||||
pybuild --dir python/knot_exporter --configure
|
||||
|
||||
override_dh_auto_build-indep:
|
||||
dh_auto_build -- html
|
||||
pybuild --dir python/libknot --build
|
||||
pybuild --dir python/knot_exporter --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
|
||||
@if grep -E -q "DoQ support: +no" "$(CURDIR)/debian/tmp/usr/sbin/knotd"; then \
|
||||
echo "Stripping the QUIC symbols"; \
|
||||
sed -i '/knot_quic_/d' $(LIBKNOT_SYMBOLS); \
|
||||
fi
|
||||
|
||||
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 --dir python/libknot --install
|
||||
pybuild --dir python/knot_exporter --install
|
||||
rm -rf $(CURDIR)/debian/tmp/usr/lib/python*/dist-packages/libknot/__pycache__
|
||||
rm -rf $(CURDIR)/debian/tmp/usr/lib/python*/dist-packages/knot_exporter/__pycache__
|
||||
|
||||
override_dh_auto_test-indep:
|
||||
override_dh_auto_test-arch:
|
||||
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
||||
dh_auto_test
|
||||
endif
|
||||
|
||||
override_dh_missing:
|
||||
dh_missing --exclude=.la --fail-missing
|
||||
|
||||
override_dh_installchangelogs:
|
||||
dh_installchangelogs NEWS
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue