Sync from SUSE:ALP:Source:Standard:1.0 bind revision 896d2467767030bf5bddfbdd3956a89b
This commit is contained in:
commit
986eb81914
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
bind-9.18.24.tar.xz
(Stored with Git LFS)
Normal file
BIN
bind-9.18.24.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
16
bind-9.18.24.tar.xz.asc
Normal file
16
bind-9.18.24.tar.xz.asc
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEEcGtsKGIOdvkdEfffUQpkKgbFLOwFAmXI5VgACgkQUQpkKgbF
|
||||
LOwcMA/+Ow94NYy2xIcuN2bqLtZLnfM8tWU3NL/mUJed/iYp//Q0CI3Q6pnLmPVY
|
||||
1j5trMDmNGcDHFg1RN4GKtsZmRm4icjANyuqYA7Bcqb2Qr7cezbkbpGrY6AI7ex/
|
||||
wGtt5+OL+1aZgAQWZV35XVmyW7c+HJ1zQc28Ctfh7pRwOU+sit7OGvTSZZVPaY/Q
|
||||
CzyOQnLE2lqpTZzcUT7m/ohHW7mYkf4GN+xRXuvD/TyAE+h3XetYdK03C8+lRY/y
|
||||
r6KbucVG2hm/6L5u00s2mPMH68vTidQiT1YPMMHcWSAXZ51OcVJdLCg5CVCnXDIJ
|
||||
O8PoUIs7cxvUstfdRGie7vyCwqsk9fwgH/9M+81OreizdxX7G/orKyzIfiBRxcMw
|
||||
UHpuc0bMfZ3CWigo79q1FdXaSpC+RA+noBqoDJS6/eMl9M0mFOUwuNIsDbTqHoRK
|
||||
tGJu9xFz4vjgisXIuXCyNEJfvzESRl/w7fAs90sumMiVrjxWw7JXAUsZfaMNQhI5
|
||||
LQedp+SGtrXQLUqLJe/nHeAKSuXKvf6ftgs5/nVBmLS/KPRfnciysDd7Vuu5+lFB
|
||||
FrEQ4b6m80H7W0kwRdqPEiFcGGS3Zsiyi1SAERMudsoR/JiDGVMuSRuulRwJVQw4
|
||||
rpylvX+yCy7VRXQIIo4K65TAWtHLnld3Lp1fnrmHbzL9ZrE2exE=
|
||||
=CnZp
|
||||
-----END PGP SIGNATURE-----
|
54
bind-ldapdump-use-valid-host.patch
Normal file
54
bind-ldapdump-use-valid-host.patch
Normal file
@ -0,0 +1,54 @@
|
||||
---
|
||||
vendor-files/tools/ldapdump | 14 +++++++++-----
|
||||
1 file changed, 9 insertions(+), 5 deletions(-)
|
||||
|
||||
--- a/vendor-files/tools/ldapdump
|
||||
+++ b/vendor-files/tools/ldapdump
|
||||
@@ -343,11 +343,11 @@ sub dropStaticZoneEntries {
|
||||
};
|
||||
print PIPE "server $server\n" or die "can’t write to $nsupdate pipe: $!";
|
||||
}
|
||||
- print STDERR "\t\tupdate add $zone. 1234 NS ldapdump_kill_me\n" if( $DEBUG );
|
||||
+ print STDERR "\t\tupdate add $zone. 1234 NS ldapdump.kill.me\n" if( $DEBUG );
|
||||
if( $DONSUPDATE ) {
|
||||
# create dummy NS record
|
||||
# sadly this one is needed if we want to change the last NS record
|
||||
- print PIPE "update add $zone. 1234 NS ldapdump_kill_me\n" or die "can’t write to $nsupdate pipe: $!";
|
||||
+ print PIPE "update add $zone. 1234 NS ldapdump.kill.me\n" or die "can’t write to $nsupdate pipe: $!";
|
||||
}
|
||||
foreach my $e ( @data ) {
|
||||
next if( $e =~ /^[\s;]/ );
|
||||
@@ -587,6 +587,7 @@ sub updateDynamicZone {
|
||||
my $ref = $zone_entry->get_value($rec.'record', asref => 1);
|
||||
next unless $ref;
|
||||
foreach my $rr ( @$ref ) {
|
||||
+ $rdn =~ s/\.$zone\.$//;
|
||||
my $where = ($rdn eq '@')?("$zone."):("$rdn.$zone");
|
||||
my $command = "update add $where $ttl $rec $rr\n";
|
||||
print STDERR "\t\t$command" if($DEBUG);
|
||||
@@ -596,9 +597,10 @@ sub updateDynamicZone {
|
||||
}
|
||||
}
|
||||
}
|
||||
- print STDERR "\t\tupdate delete $zone. NS ldapdump_kill_me\n" if($DEBUG);
|
||||
+ print STDERR "\t\tupdate delete $zone. NS ldapdump.kill.me\n" if($DEBUG);
|
||||
if( $DONSUPDATE ) {
|
||||
- print PIPE "update delete $zone. NS ldapdump_kill_me\n" or die "can’t write to $nsupdate pipe: $!";
|
||||
+ print PIPE "update delete $zone. NS ldapdump.kill.me\n" or die "can’t write to $nsupdate pipe: $!";
|
||||
+ print PIPE "send\n" or die "can’t write to $nsupdate pipe: $!";
|
||||
print PIPE "\n\n\n" or die "can’t write to $nsupdate pipe: $!";
|
||||
close(PIPE) or die "can’t close $nsupdate pipe: status=$?";
|
||||
}
|
||||
@@ -686,9 +688,11 @@ sub parseDynEntries {
|
||||
my %entries;
|
||||
my $entry = "";
|
||||
foreach( my $i=0; $i<@data; $i++ ) {
|
||||
- if( $data[$i] =~ /^(\S+)\s+(.*)/ ) {
|
||||
+ if( $data[$i] =~ /^(\S+)\s+(.*)/ && $data[$i] !~ /^\$TTL/ ) {
|
||||
$entry = $1;
|
||||
$entries{$1} .= "$2\n";
|
||||
+ } elsif ($data[$i] =~ /^\$TTL/) {
|
||||
+ $entries{$entry} .= $data[$i];
|
||||
} else {
|
||||
$data[$i] =~ /^\s+(.*)/;
|
||||
$entries{$entry} .= "\t$1\n";
|
4487
bind.changes
Normal file
4487
bind.changes
Normal file
File diff suppressed because it is too large
Load Diff
11
bind.conf
Normal file
11
bind.conf
Normal file
@ -0,0 +1,11 @@
|
||||
#Type Path Mode UID GID Age Argument
|
||||
d /run/named 1775 root named - -
|
||||
d /var/lib/named 1775 root named - -
|
||||
d /var/lib/named/dyn 755 named named - -
|
||||
d /var/lib/named/master 755 root root - -
|
||||
d /var/lib/named/slave 755 named named - -
|
||||
C /var/lib/named/127.0.0.zone - - - - -
|
||||
C /var/lib/named/localhost.zone - - - - -
|
||||
C /var/lib/named/named.root.key - - - - -
|
||||
C /var/lib/named/root.hint - - - - -
|
||||
d /var/log/named 750 named named - -
|
151
bind.keyring
Normal file
151
bind.keyring
Normal file
@ -0,0 +1,151 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQINBGNjen4BEADDHiUVNbkFtiKPaMWjKxbKmF1nmv7XKjDhwSww6WFiGPbQyxNM
|
||||
r8EHlEJx5kMT67rx0IYMhTLiXm/9C4dGYyUfFWc35CGetuzstzCNkwJs7vZAhEyk
|
||||
+06CX4GFiHPOmWIupGCxFkNz1Qopz3ZePMlZRslVCHzW4dbg5NKLI0ojXlNaTDU5
|
||||
mgUXpsPi/6l6QE6q3ouvmWPF4u71cZ1+W4UkIRAXOlbVsDzGaMaoHjJd8cOM8DrZ
|
||||
gKHAC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cEBYkBMW5Cnw/Kmyj7lJwVwvEO
|
||||
FFhKaOH/d2LG3rM66gl048aJYLhEJyFSyooBynXs8S/NLDgca94Bvb54FPX8LC3p
|
||||
lqJRLxhdkha5NLcUYiHOq/L7LWdThh5rRAy87Ggog8TVza118K3oiYujlyVEzLhB
|
||||
NVMT8x5kl15YknVgOKJAv9j28bSZihHrS7aga1BtYFD8yA9MuuDaHARV6YmThkdg
|
||||
OEz/PNECjsxCLcT5Bbthzg6Jg1qo3Unyeup0UbyX4zxSphCVmerDmMYddLjJ/ydc
|
||||
1uxyn4IPINBSx2sAPuUIymhVC29MB6N+SnB37/poTvSsIH15Vg264OVdaervIpuC
|
||||
W3eUANr7zrdO85nc1CTWGhugFwccXv9nyxAt8zUF/ci17p1/mLpy9K3LqlStVI9j
|
||||
MwARAQABtDBDYXRoeSBBbG1vbmQgKENvZGUtU2lnbmluZyBLZXkpIDxjYXRoeWFA
|
||||
aXNjLm9yZz6JAk4EEwEKADgWIQT8h0w+P+hncHCscb617/asfhrd+AUCY2Pw/gIb
|
||||
AwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgAAKCRC17/asfhrd+HM6D/9KD/n245Fq
|
||||
jVzew92lJtufAxAFkTA5WO6fXweMlUeqMOub4vpVMLPLoFe5TzWbJMtF0m/P5+aU
|
||||
YbcvZBWFHsrnwTgA55c1VrhggLOxpw4EU0TvBdwrO7PFOYc2WznaMG+mJdqw+uNM
|
||||
yK+G44aIaC6rvi3ILSo5HPnbgQWHs39QIRLLcUjtqvavQQeyYAl0zrvNI9Xrs/Nf
|
||||
eE6PS4hIXg90A9VJRhay18w9hA+STb+xmK+3oSwP1ayLqqQ43OnV/pExSHBsjBQk
|
||||
4p1nIPlRFL30lGp/o2MoBsRvQM1tELpgBTk1LaTHzuKEpOskrWU37xu0QgEtj7YE
|
||||
r0X+GGBxgJuUzqSyLsaDgH1sEDqE+AthFfv2dxDadcXM2cdch9y3OyuSMo89aWGc
|
||||
mEVyesjYoV40tDCG73qLtfehhV/iARDMCfnZGyGYIZdDBL+tZTNeLKVDIUi/R3x9
|
||||
OmpEl8ZuCuYltyEsJnCF/rQBVMgcTOmsMu6CMx+qT3kC8iGtHqkUT2ufpKISahTn
|
||||
e329FQjClEWwBHkr0T4K80Z0REjSo6UBtio73IOCxXe0RqO37L/qgo8xKZbLxy86
|
||||
857PRWJhgbw169FJ2kR5p+M5d/g/MUeYnigvWlORW5LyrFg6RnZ1ZbULZI80QhHN
|
||||
aSFf/w020HBsLCkzWA/XM6MO2ifJTSn8Ng==
|
||||
=C1ed
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
643
bind.spec
Normal file
643
bind.spec
Normal file
@ -0,0 +1,643 @@
|
||||
#
|
||||
# spec file for package bind
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define _buildshell /bin/bash
|
||||
%bcond_with check
|
||||
|
||||
# DLZ modules
|
||||
%bcond_without modules_bdbhpt
|
||||
%bcond_without modules_ldap
|
||||
%bcond_without modules_mysql
|
||||
%bcond_without modules_sqlite3
|
||||
%bcond_without modules_perl
|
||||
%bcond_without modules_generic
|
||||
# end DLZ modules
|
||||
|
||||
%define VENDOR SUSE
|
||||
%if 0%{?suse_version} >= 1500
|
||||
%define with_systemd 1
|
||||
%else
|
||||
%define with_systemd 0
|
||||
# Defines for user and group add
|
||||
%define NAMED_UID 44
|
||||
%define NAMED_UID_NAME named
|
||||
%define NAMED_GID 44
|
||||
%define NAMED_GID_NAME named
|
||||
%define NAMED_COMMENT Name server daemon
|
||||
%define NAMED_HOMEDIR %{_localstatedir}/lib/named
|
||||
%define NAMED_SHELL /bin/false
|
||||
%define GROUPADD_NAMED getent group %{NAMED_GID_NAME} >/dev/null || %{_sbindir}/groupadd -g %{NAMED_GID} -o -r %{NAMED_GID_NAME}
|
||||
%define USERADD_NAMED getent passwd %{NAMED_UID_NAME} >/dev/null || %{_sbindir}/useradd -r -o -g %{NAMED_GID_NAME} -u %{NAMED_UID} -s %{NAMED_SHELL} -c "%{NAMED_COMMENT}" -d %{NAMED_HOMEDIR} %{NAMED_UID_NAME}
|
||||
%define USERMOD_NAMED getent passwd %{NAMED_UID_NAME} >/dev/null || %{_sbindir}/usermod -s %{NAMED_SHELL} -d %{NAMED_HOMEDIR} %{NAMED_UID_NAME}
|
||||
%endif
|
||||
%if 0%{?suse_version} < 1315
|
||||
%define with_sfw2 1
|
||||
%else
|
||||
%define with_sfw2 0
|
||||
%endif
|
||||
|
||||
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||
%if ! %{defined _fillupdir}
|
||||
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
||||
%endif
|
||||
Name: bind
|
||||
Version: 9.18.24
|
||||
Release: 0
|
||||
Summary: Domain Name System (DNS) Server (named)
|
||||
License: MPL-2.0
|
||||
Group: Productivity/Networking/DNS/Servers
|
||||
URL: https://www.isc.org/bind/
|
||||
Source: https://downloads.isc.org/isc/bind9/%{version}/bind-%{version}.tar.xz
|
||||
Source1: https://downloads.isc.org/isc/bind9/%{version}/bind-%{version}.tar.xz.asc
|
||||
Source2: vendor-files.tar.bz2
|
||||
# from http://www.isc.org/about/openpgp/ ... changes yearly apparently.
|
||||
Source3: %{name}.keyring
|
||||
Source9: ftp://ftp.internic.net/domain/named.root
|
||||
Source40: dnszone-schema.txt
|
||||
Source60: dlz-schema.txt
|
||||
# configuration file for systemd-tmpfiles
|
||||
Source70: bind.conf
|
||||
# configuation file for systemd-sysusers
|
||||
Source72: named.conf
|
||||
Patch56: bind-ldapdump-use-valid-host.patch
|
||||
BuildRequires: fstrm-devel
|
||||
BuildRequires: libcap-devel
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: openssl
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: protobuf-c
|
||||
BuildRequires: python3
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildRequires: python3-ply
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: pkgconfig(jemalloc)
|
||||
BuildRequires: pkgconfig(json)
|
||||
BuildRequires: pkgconfig(krb5)
|
||||
BuildRequires: pkgconfig(libidn2)
|
||||
BuildRequires: pkgconfig(libmaxminddb)
|
||||
BuildRequires: pkgconfig(libnghttp2)
|
||||
BuildRequires: pkgconfig(libuv)
|
||||
BuildRequires: pkgconfig(libxml-2.0)
|
||||
Requires: %{name}-utils
|
||||
Requires(post): %fillup_prereq
|
||||
Requires(post): bind-utils
|
||||
Provides: bind8 = %{version}
|
||||
Provides: bind9 = %{version}
|
||||
Provides: dns_daemon
|
||||
Obsoletes: bind8 < %{version}
|
||||
Obsoletes: bind9 < %{version}
|
||||
%if %{with_systemd}
|
||||
BuildRequires: systemd-rpm-macros
|
||||
BuildRequires: sysuser-shadow
|
||||
BuildRequires: sysuser-tools
|
||||
BuildRequires: pkgconfig(libsystemd)
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
%{?systemd_ordering}
|
||||
%sysusers_requires
|
||||
%else
|
||||
Requires(post): %insserv_prereq
|
||||
Requires(pre): shadow
|
||||
%endif
|
||||
|
||||
%description
|
||||
Berkeley Internet Name Domain (BIND) is an implementation of the Domain
|
||||
Name System (DNS) protocols and provides an openly redistributable
|
||||
reference implementation of the major components of the Domain Name
|
||||
System. This package includes the components to operate a DNS server.
|
||||
|
||||
%package doc
|
||||
Summary: BIND documentation
|
||||
Group: Documentation/Other
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Documentation of the Berkeley Internet Name Domain (BIND) Domain Name
|
||||
System implementation of the Domain Name System (DNS) protocols. This
|
||||
includes also the BIND Administrator Reference Manual (ARM).
|
||||
|
||||
%package utils
|
||||
Summary: Libraries for "bind" and utilities to query and test DNS
|
||||
# Needed for dnssec parts
|
||||
Group: Productivity/Networking/DNS/Utilities
|
||||
# Needs a rebuild as libuv will otherwise abort the program with:
|
||||
# fatal error: libuv version too new: running with libuv 1.X+1 when compiled with libuv 1.X will lead to libuv failures
|
||||
%requires_eq libuv1
|
||||
Provides: bind9-utils
|
||||
Provides: bindutil
|
||||
Provides: dns_utils
|
||||
Obsoletes: bind-devel < %{version}
|
||||
Obsoletes: bind9-utils < %{version}
|
||||
Obsoletes: bindutil < %{version}
|
||||
Obsoletes: libirs-devel < %{version}
|
||||
|
||||
%description utils
|
||||
This package includes the utilities "host", "dig", and "nslookup" used to
|
||||
test and query the Domain Name System (DNS) and also the libraries rquired
|
||||
for the base "bind" package. The Berkeley Internet
|
||||
Name Domain (BIND) DNS server is found in the package named bind.
|
||||
|
||||
%if %{with_modules_perl}
|
||||
%package modules-perl
|
||||
Summary: A dynamically loadable zone (DLZ) plugin embedding a Perl interpreter in BIND
|
||||
Group: Productivity/Networking/DNS/Servers
|
||||
BuildRequires: perl
|
||||
|
||||
%description modules-perl
|
||||
This package includes a dynamically loadable zone (DLZ) plugin
|
||||
embedding a Perl interpreter in BIND, allowing Perl scripts
|
||||
to be written to integrate with BIND and serve DNS data.
|
||||
%endif
|
||||
|
||||
%if %{with_modules_mysql}
|
||||
%package modules-mysql
|
||||
Summary: DLZ modules which store zone data in a MySQL database
|
||||
Group: Productivity/Networking/DNS/Servers
|
||||
BuildRequires: libmysqlclient-devel
|
||||
|
||||
%description modules-mysql
|
||||
This package includes dynamically loadable zone (DLZ) plugins
|
||||
which store zone data in a MySQL database
|
||||
The dlz_mysql_dynamic.so plugin does not support dynamic updates
|
||||
the dlz_mysqldyn_mod.so plugin is a dynamically loadable zone (DLZ)
|
||||
plugin that uses a fixed-schema MySQL database for back-end storage.
|
||||
It allows zone data to be updated via dynamic DNS updates, and
|
||||
sends DNS NOTIFY packets to other name servers when appropriate.
|
||||
%endif
|
||||
|
||||
%if %{with_modules_ldap}
|
||||
%package modules-ldap
|
||||
Summary: A DLZ module which stores zone data in an LDAP directory
|
||||
Group: Productivity/Networking/DNS/Servers
|
||||
BuildRequires: openldap2-devel
|
||||
|
||||
%description modules-ldap
|
||||
This package provides the externally loadable ldap DLZ module, without
|
||||
update support
|
||||
%endif
|
||||
|
||||
%if %{with_modules_bdbhpt}
|
||||
%package modules-bdbhpt
|
||||
Summary: A DLZ module which stores zone data in a BerkeleyDB
|
||||
Group: Productivity/Networking/DNS/Servers
|
||||
BuildRequires: libdb-4_8-devel
|
||||
|
||||
%description modules-bdbhpt
|
||||
This package provides the externally loadable bdbhpt DLZ driver, without
|
||||
update support
|
||||
%endif
|
||||
|
||||
%if %{with_modules_sqlite3}
|
||||
%package modules-sqlite3
|
||||
Summary: A DLZ module which stores zone data in an sqlite3 db
|
||||
Group: Productivity/Networking/DNS/Servers
|
||||
BuildRequires: sqlite3-devel
|
||||
|
||||
%description modules-sqlite3
|
||||
This package provides the externally loadable SQLitee DLZ module, without
|
||||
update support.
|
||||
%endif
|
||||
|
||||
%if %{with_modules_generic}
|
||||
%package modules-generic
|
||||
Summary: DLZ module which store zone data in plain files
|
||||
Group: Productivity/Networking/DNS/Servers
|
||||
|
||||
%description modules-generic
|
||||
This package provides the externally loadable filesystem DLZ module, without
|
||||
update support and the externally loadable wildcard DLZ module.
|
||||
The "wildcard" DLZ module provides a "template" zone for domains matching
|
||||
a wildcard name.
|
||||
For any zone name matching the wildcard, it would return the data from
|
||||
the template. "$zone$" is replaced with zone name: i.e., the shortest
|
||||
possible string of labels in the query name that matches the wildcard.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -a2
|
||||
|
||||
# use the year from source gzip header instead of current one to make reproducible rpms
|
||||
year=$(perl -e 'sysread(STDIN, $h, 8); print (1900+(gmtime(unpack("l",substr($h,4))))[5])' < %{SOURCE0})
|
||||
sed -i "s/stdout, copyright, year/stdout, copyright, \"-$year\"/" lib/dns/gen.c
|
||||
|
||||
# modify settings of some files regarding to OS version and vendor
|
||||
function replaceStrings()
|
||||
{
|
||||
file="$1"
|
||||
sed -e "s@__NSD__@/lib@g" \
|
||||
-e "s@__BIND_PACKAGE_NAME__@%{name}@g" \
|
||||
-e "s@__VENDOR__@%{VENDOR}@g" \
|
||||
-e "s@__openssl__@$(pkg-config --variable=enginesdir libcrypto)@g" \
|
||||
-i "${file}"
|
||||
}
|
||||
pushd vendor-files
|
||||
for file in docu/README* config/{README,named.conf} sysconfig/named-named; do
|
||||
replaceStrings ${file}
|
||||
done
|
||||
popd
|
||||
|
||||
%if 0%{?sle_version} >= 150000 && 0%{?sle_version} <= 150400
|
||||
# the Administration Reference Manual doesn't build with Leap/SLES due to an way too old Sphinx package
|
||||
# that is missing sphinx.util.docutils.ReferenceRole.
|
||||
# patch68 disables this extension, and here, we're removing the :gl: tags in the notes
|
||||
sed -i 's|:gl:||g' doc/notes/notes*.rst
|
||||
%endif
|
||||
|
||||
%build
|
||||
autoreconf -fvi
|
||||
export CFLAGS="%{optflags} -fPIE -DNO_VERSION_DATE"
|
||||
export LDFLAGS="-pie"
|
||||
%configure \
|
||||
--with-python=%{_bindir}/python3 \
|
||||
--includedir=%{_includedir}/bind \
|
||||
--disable-static \
|
||||
--with-openssl \
|
||||
--enable-threads \
|
||||
--with-libtool \
|
||||
--with-libxml2 \
|
||||
--with-dlz_filesystem \
|
||||
--with-json-c \
|
||||
--with-libidn2 \
|
||||
--with-randomdev=/dev/urandom \
|
||||
--enable-ipv6 \
|
||||
--with-pic \
|
||||
--disable-openssl-version-check \
|
||||
--with-tuning=large \
|
||||
--with-maxminddb \
|
||||
--with-dlopen=auto \
|
||||
--with-gssapi=yes \
|
||||
--disable-isc-spnego \
|
||||
--enable-fixed-rrset \
|
||||
--enable-filter-aaaa \
|
||||
--enable-dnstap \
|
||||
%if %{with_systemd}
|
||||
--with-systemd \
|
||||
%endif
|
||||
%if %{with check}
|
||||
--enable-querytrace \
|
||||
%endif
|
||||
--enable-full-report
|
||||
# disable rpath
|
||||
sed -i '
|
||||
s|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g
|
||||
s|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g
|
||||
' libtool
|
||||
%make_build
|
||||
# special make for the Administrators Reference Manual
|
||||
for d in arm; do
|
||||
make -C doc/${d} SPHINXBUILD=sphinx-build doc
|
||||
done
|
||||
%if %{with_systemd}
|
||||
%sysusers_generate_pre %{SOURCE72} named named.conf
|
||||
%endif
|
||||
# special build for the plugins
|
||||
for d in contrib/dlz/modules/*; do
|
||||
[ -e $d/Makefile ] && make -C $d
|
||||
done
|
||||
|
||||
%install
|
||||
mkdir -p \
|
||||
%{buildroot}/%{_sysconfdir}/init.d \
|
||||
%{buildroot}/%{_sysconfdir}/named.d \
|
||||
%{buildroot}/%{_sysconfdir}/openldap/schema \
|
||||
%if 0%{?suse_version} <= 1600
|
||||
%{buildroot}/%{_sysconfdir}/slp.reg.d \
|
||||
%endif
|
||||
%{buildroot}/%{_sysconfdir}/crypto-policies/back-ends \
|
||||
%{buildroot}%{_prefix}/{bin,%{_lib},sbin,include} \
|
||||
%{buildroot}/%{_datadir}/bind \
|
||||
%{buildroot}/%{_datadir}/susehelp/meta/Administration/System \
|
||||
%{buildroot}/%{_defaultdocdir}/bind \
|
||||
%{buildroot}%{_localstatedir}/lib/named/{etc/named.d,dev,dyn,master,slave,var/{lib,run/named}} \
|
||||
%{buildroot}%{_mandir}/{man1,man3,man5,man8} \
|
||||
%{buildroot}%{_fillupdir} \
|
||||
%{buildroot}/%{_rundir} \
|
||||
%{buildroot}%{_includedir}/bind/dns \
|
||||
%{buildroot}%{_libexecdir}/bind
|
||||
%if %{with_sfw2}
|
||||
mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services
|
||||
%endif
|
||||
%make_install
|
||||
# remove useless .h files
|
||||
rm -rf %{buildroot}%{_includedir}
|
||||
|
||||
# Install the plugins
|
||||
mkdir -p %{buildroot}/%{_libdir}/bind-plugins
|
||||
%if %{with_modules_perl}
|
||||
install -m 0644 contrib/dlz/modules/perl/*.so %{buildroot}/%{_libdir}/bind-plugins
|
||||
%endif
|
||||
%if %{with_modules_mysql}
|
||||
install -m 0644 contrib/dlz/modules/mysql/*.so %{buildroot}/%{_libdir}/bind-plugins
|
||||
install -m 0644 contrib/dlz/modules/mysqldyn/*.so %{buildroot}/%{_libdir}/bind-plugins
|
||||
%endif
|
||||
%if %{with_modules_ldap}
|
||||
install -m 0644 contrib/dlz/modules/ldap/*.so %{buildroot}/%{_libdir}/bind-plugins
|
||||
%endif
|
||||
%if %{with_modules_bdbhpt}
|
||||
install -m 0644 contrib/dlz/modules/bdbhpt/*.so %{buildroot}/%{_libdir}/bind-plugins
|
||||
%endif
|
||||
%if %{with_modules_sqlite3}
|
||||
install -m 0644 contrib/dlz/modules/sqlite3/*.so %{buildroot}/%{_libdir}/bind-plugins
|
||||
%endif
|
||||
%if %{with_modules_generic}
|
||||
install -m 0644 contrib/dlz/modules/{filesystem,wildcard}/*.so %{buildroot}/%{_libdir}/bind-plugins
|
||||
%endif
|
||||
# remove useless .la files
|
||||
rm -f %{buildroot}/%{_libdir}/lib*.{la,a} %{buildroot}/%{_libdir}/bind/*.la
|
||||
mv vendor-files/config/named.conf %{buildroot}/%{_sysconfdir}
|
||||
%if 0%{?suse_version} <= 1600
|
||||
mv vendor-files/config/bind.reg %{buildroot}/%{_sysconfdir}/slp.reg.d
|
||||
%endif
|
||||
mv vendor-files/config/rndc-access.conf %{buildroot}/%{_sysconfdir}/named.d
|
||||
|
||||
%if %{with_systemd}
|
||||
for file in named; do
|
||||
install -D -m 0644 vendor-files/system/${file}.service %{buildroot}%{_unitdir}/${file}.service
|
||||
sed -e "s,@LIBEXECDIR@,%{_libexecdir},g" -i %{buildroot}%{_unitdir}/${file}.service
|
||||
install -m 0755 vendor-files/system/${file}.prep %{buildroot}%{_libexecdir}/bind/${file}.prep
|
||||
ln -s /sbin/service %{buildroot}%{_sbindir}/rc${file}
|
||||
done
|
||||
install -D -m 0644 %{SOURCE70} %{buildroot}%{_prefix}/lib/tmpfiles.d/bind.conf
|
||||
install -D -m 0644 %{_sourcedir}/named.root %{buildroot}%{_datadir}/factory%{_localstatedir}/lib/named/root.hint
|
||||
install -m 0644 vendor-files/config/{127.0.0,localhost}.zone %{buildroot}%{_datadir}/factory%{_localstatedir}/lib/named
|
||||
install -m 0644 bind.keys %{buildroot}%{_datadir}/factory%{_localstatedir}/lib/named/named.root.key
|
||||
install -d -m 0755 %{buildroot}/%{_unitdir}/named.service.d
|
||||
%else
|
||||
for file in named; do
|
||||
install -m 0754 vendor-files/init/${file} %{buildroot}%{_initddir}/${file}
|
||||
ln -sf %{_initddir}/${file} %{buildroot}%{_sbindir}/rc${file}
|
||||
done
|
||||
%endif
|
||||
install -m 0644 %{_sourcedir}/named.root %{buildroot}%{_localstatedir}/lib/named/root.hint
|
||||
mv vendor-files/config/{127.0.0,localhost}.zone %{buildroot}%{_localstatedir}/lib/named
|
||||
install -m 0755 vendor-files/tools/bind.genDDNSkey %{buildroot}/%{_bindir}/genDDNSkey
|
||||
cp -a vendor-files/docu/BIND.desktop %{buildroot}/%{_datadir}/susehelp/meta/Administration/System
|
||||
cp -p %{_sourcedir}/dnszone-schema.txt %{buildroot}/%{_sysconfdir}/openldap/schema/dnszone.schema
|
||||
cp -p "%{SOURCE60}" "%{buildroot}/%{_sysconfdir}/openldap/schema/dlz.schema"
|
||||
install -m 0754 vendor-files/tools/ldapdump %{buildroot}/%{_datadir}/bind
|
||||
find %{buildroot}/%{_libdir} -type f -name '*.so*' -exec chmod 0755 {} +
|
||||
for file in named-named; do
|
||||
install -m 0644 vendor-files/sysconfig/${file} %{buildroot}%{_fillupdir}/sysconfig.${file}
|
||||
done
|
||||
%if %{with_sfw2}
|
||||
install -m 644 vendor-files/sysconfig/SuSEFirewall.named %{buildroot}/%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/bind
|
||||
%endif
|
||||
%if ! %{with check}
|
||||
# Cleanup doc
|
||||
rm doc/misc/Makefile*
|
||||
find doc/arm -type f ! -name '*.html' -delete
|
||||
%endif
|
||||
# Create doc as we want it in bind and not bind-doc
|
||||
for file in vendor-files/docu/README*; do
|
||||
basename=$( basename ${file})
|
||||
cp -a ${file} %{buildroot}/%{_defaultdocdir}/bind/${basename}.%{VENDOR}
|
||||
done
|
||||
# mkdir -p vendor-files/config/ISC-examples
|
||||
# cp -a bin/tests/*.conf* vendor-files/config/ISC-examples
|
||||
for d in arm; do
|
||||
cp -a doc/${d}/_build %{buildroot}/%{_defaultdocdir}/bind/${d}
|
||||
echo "%doc %{_defaultdocdir}/bind/${d}" >>filelist-bind-doc
|
||||
done
|
||||
for file in CHANGES COPYRIGHT README* version contrib/README* doc/misc vendor-files/config; do
|
||||
[ -r ${file} ] || continue
|
||||
basename=$( basename ${file})
|
||||
cp -a ${file} %{buildroot}/%{_defaultdocdir}/bind/${basename}
|
||||
echo "%doc %{_defaultdocdir}/bind/${basename}" >>filelist-bind-doc
|
||||
done
|
||||
# ---------------------------------------------------------------------------
|
||||
# remove useless Makefiles and Makefile skeletons
|
||||
find %{buildroot}/%{_defaultdocdir}/bind \( -name Makefile -o -name Makefile.in \) -exec rm {} +
|
||||
install -m 0644 bind.keys %{buildroot}%{_localstatedir}/lib/named/named.root.key
|
||||
%if %{with_systemd}
|
||||
mkdir -p %{buildroot}%{_sysusersdir}
|
||||
install -m 644 %{SOURCE72} %{buildroot}%{_sysusersdir}/
|
||||
%endif
|
||||
find %{buildroot}/usr/share/doc/packages/bind -name cfg_test* -exec rm {} \;
|
||||
rm -rf %{buildroot}/usr/share/doc/packages/bind/misc/.libs
|
||||
|
||||
%if %{with_systemd}
|
||||
%pre -f named.pre
|
||||
%service_add_pre named.service
|
||||
%else
|
||||
|
||||
%pre
|
||||
%{GROUPADD_NAMED}
|
||||
%{USERADD_NAMED}
|
||||
# Might be an update.
|
||||
%{USERMOD_NAMED}
|
||||
%endif
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
sudo bin/tests/system/ifconfig.sh up
|
||||
make test
|
||||
%endif
|
||||
|
||||
%preun
|
||||
%if %{with_systemd}
|
||||
%service_del_preun named.service
|
||||
%else
|
||||
%stop_on_removal named
|
||||
%endif
|
||||
|
||||
%post
|
||||
%if %{with_systemd}
|
||||
%{fillup_only -nsa named named}
|
||||
%service_add_post named.service
|
||||
%tmpfiles_create bind.conf
|
||||
%else
|
||||
%{fillup_and_insserv -nf named}
|
||||
if [ -x %{_bindir}/systemctl ]; then
|
||||
# make sure systemctl knows about the service
|
||||
# Without this, systemctl status named would return
|
||||
# Unit named.service could not be found.
|
||||
# until systemctl daemon-reload has been executed
|
||||
%{_bindir}/systemctl daemon-reload || :
|
||||
fi
|
||||
%endif
|
||||
|
||||
%postun
|
||||
%if %{with_systemd}
|
||||
%service_del_postun named.service
|
||||
%else
|
||||
%restart_on_update named
|
||||
%insserv_cleanup
|
||||
%endif
|
||||
|
||||
%post -n bind-utils -p /sbin/ldconfig
|
||||
%postun -n bind-utils -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%attr(0644,root,named) %config(noreplace) /%{_sysconfdir}/named.conf
|
||||
%if 0%{?suse_version} <= 1600
|
||||
%dir %{_sysconfdir}/slp.reg.d
|
||||
%attr(0644,root,root) %config /%{_sysconfdir}/slp.reg.d/bind.reg
|
||||
%endif
|
||||
%if %{with_systemd}
|
||||
%{_unitdir}/named.service
|
||||
%dir %{_unitdir}/named.service.d
|
||||
%{_prefix}/lib/tmpfiles.d/bind.conf
|
||||
%{_sysusersdir}/named.conf
|
||||
%{_datadir}/factory
|
||||
%else
|
||||
%config /%{_sysconfdir}/init.d/named
|
||||
%endif
|
||||
%if %{with_sfw2}
|
||||
%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/bind
|
||||
%endif
|
||||
%dir %{_sysconfdir}/crypto-policies
|
||||
%dir %{_sysconfdir}/crypto-policies/back-ends
|
||||
%{_bindir}/named-rrchecker
|
||||
%{_sbindir}/rcnamed
|
||||
%{_sbindir}/named
|
||||
%{_bindir}/named-checkconf
|
||||
%{_bindir}/named-checkzone
|
||||
%{_bindir}/named-compilezone
|
||||
%{_bindir}/named-journalprint
|
||||
%{_bindir}/nsec3hash
|
||||
%dir %{_libdir}/bind
|
||||
%{_libdir}/bind/filter-aaaa.so
|
||||
%{_libdir}/bind/filter-a.so
|
||||
%{_mandir}/man1/named-rrchecker.1%{ext_man}
|
||||
%{_mandir}/man5/named.conf.5%{ext_man}
|
||||
%{_mandir}/man1/named-checkconf.1%{ext_man}
|
||||
%{_mandir}/man1/named-checkzone.1%{ext_man}
|
||||
%{_mandir}/man8/named.8%{ext_man}
|
||||
%{_mandir}/man8/filter-aaaa.8%{ext_man}
|
||||
%{_mandir}/man8/filter-a.8%{ext_man}
|
||||
%dir %{_datadir}/bind
|
||||
%{_datadir}/bind/ldapdump
|
||||
%ghost %{_rundir}/named
|
||||
%{_fillupdir}/sysconfig.named-named
|
||||
%attr(1775,root,named) %dir %{_var}/lib/named
|
||||
%dir %{_var}/lib/named/master
|
||||
%attr(-,named,named) %dir %{_var}/lib/named/dyn
|
||||
%attr(-,named,named) %dir %{_var}/lib/named/slave
|
||||
%config %{_var}/lib/named/root.hint
|
||||
%config %{_var}/lib/named/127.0.0.zone
|
||||
%config %{_var}/lib/named/localhost.zone
|
||||
%config %{_var}/lib/named/named.root.key
|
||||
%dir %{_libexecdir}/bind
|
||||
%{_libexecdir}/bind/named.prep
|
||||
%dir %{_libdir}/bind-plugins
|
||||
|
||||
%if %{with_modules_perl}
|
||||
%files modules-perl
|
||||
%{_libdir}/bind-plugins/dlz_perl_driver.so
|
||||
%endif
|
||||
%if %{with_modules_mysql}
|
||||
%files modules-mysql
|
||||
%{_libdir}/bind-plugins/dlz_mysql_dynamic.so
|
||||
%{_libdir}/bind-plugins/dlz_mysqldyn_mod.so
|
||||
%endif
|
||||
%if %{with_modules_ldap}
|
||||
%files modules-ldap
|
||||
%{_libdir}/bind-plugins/dlz_ldap_dynamic.so
|
||||
%endif
|
||||
%if %{with_modules_bdbhpt}
|
||||
%files modules-bdbhpt
|
||||
%{_libdir}/bind-plugins/dlz_bdbhpt_dynamic.so
|
||||
%endif
|
||||
%if %{with_modules_sqlite3}
|
||||
%files modules-sqlite3
|
||||
%{_libdir}/bind-plugins/dlz_sqlite3_dynamic.so
|
||||
%endif
|
||||
%if %{with_modules_generic}
|
||||
%files modules-generic
|
||||
%{_libdir}/bind-plugins/dlz_filesystem_dynamic.so
|
||||
%{_libdir}/bind-plugins/dlz_wildcard_dynamic.so
|
||||
%endif
|
||||
|
||||
%files doc -f filelist-bind-doc
|
||||
%dir %doc %{_defaultdocdir}/bind
|
||||
%doc %{_datadir}/susehelp
|
||||
|
||||
%files utils
|
||||
%dir %{_sysconfdir}/named.d
|
||||
%config(noreplace) %{_sysconfdir}/named.d/rndc-access.conf
|
||||
%config(noreplace) %{_sysconfdir}/bind.keys
|
||||
%dir %{_sysconfdir}/openldap
|
||||
%dir %{_sysconfdir}/openldap/schema
|
||||
%attr(0444,root,root) %config %{_sysconfdir}/openldap/schema/dnszone.schema
|
||||
%attr(0444,root,root) %config %{_sysconfdir}/openldap/schema/dlz.schema
|
||||
%{_bindir}/delv
|
||||
%{_bindir}/dig
|
||||
%{_bindir}/host
|
||||
%{_bindir}/mdig
|
||||
%{_bindir}/nslookup
|
||||
%{_bindir}/nsupdate
|
||||
%{_bindir}/genDDNSkey
|
||||
%{_bindir}/arpaname
|
||||
%{_bindir}/dnssec-dsfromkey
|
||||
%{_bindir}/dnssec-importkey
|
||||
%{_bindir}/dnssec-keyfromlabel
|
||||
%{_bindir}/dnssec-keygen
|
||||
%{_bindir}/dnssec-revoke
|
||||
%{_bindir}/dnssec-settime
|
||||
%{_bindir}/dnssec-signzone
|
||||
%{_bindir}/dnssec-verify
|
||||
%{_bindir}/dnssec-cds
|
||||
%{_bindir}/dnstap-read
|
||||
%{_sbindir}/ddns-confgen
|
||||
%{_sbindir}/rndc
|
||||
%{_sbindir}/rndc-confgen
|
||||
%{_sbindir}/tsig-keygen
|
||||
%{_libdir}/libbind9-%{version}.so
|
||||
%{_libdir}/libdns-%{version}.so
|
||||
%{_libdir}/libirs-%{version}.so
|
||||
%{_libdir}/libisc-%{version}.so
|
||||
%{_libdir}/libisccc-%{version}.so
|
||||
%{_libdir}/libisccfg-%{version}.so
|
||||
%{_libdir}/libns-%{version}.so
|
||||
%{_libdir}/libbind9.so
|
||||
%{_libdir}/libdns.so
|
||||
%{_libdir}/libirs.so
|
||||
%{_libdir}/libisc.so
|
||||
%{_libdir}/libisccc.so
|
||||
%{_libdir}/libisccfg.so
|
||||
%{_libdir}/libns.so
|
||||
%dir %doc %{_defaultdocdir}/bind
|
||||
%{_defaultdocdir}/bind/README*.%{VENDOR}
|
||||
%{_mandir}/man1/arpaname.1%{ext_man}
|
||||
%{_mandir}/man1/delv.1%{ext_man}
|
||||
%{_mandir}/man1/dig.1%{ext_man}
|
||||
%{_mandir}/man1/host.1%{ext_man}
|
||||
%{_mandir}/man1/mdig.1%{ext_man}
|
||||
%{_mandir}/man1/nslookup.1%{ext_man}
|
||||
%{_mandir}/man1/nsupdate.1%{ext_man}
|
||||
%{_mandir}/man1/dnssec-dsfromkey.1%{ext_man}
|
||||
%{_mandir}/man1/dnssec-importkey.1%{ext_man}
|
||||
%{_mandir}/man1/dnssec-keyfromlabel.1%{ext_man}
|
||||
%{_mandir}/man1/dnssec-keygen.1%{ext_man}
|
||||
%{_mandir}/man1/dnssec-revoke.1%{ext_man}
|
||||
%{_mandir}/man1/dnssec-settime.1%{ext_man}
|
||||
%{_mandir}/man1/dnssec-signzone.1%{ext_man}
|
||||
%{_mandir}/man1/dnssec-verify.1%{ext_man}
|
||||
%{_mandir}/man1/dnssec-cds.1%{ext_man}
|
||||
%{_mandir}/man1/named-compilezone.1%{ext_man}
|
||||
%{_mandir}/man1/named-journalprint.1%{ext_man}
|
||||
%{_mandir}/man1/nsec3hash.1%{ext_man}
|
||||
%{_mandir}/man1/dnstap-read.1%{ext_man}
|
||||
%{_mandir}/man5/rndc.conf.5%{ext_man}
|
||||
%{_mandir}/man8/ddns-confgen.8%{ext_man}
|
||||
%{_mandir}/man8/rndc.8%{ext_man}
|
||||
%{_mandir}/man8/rndc-confgen.8%{ext_man}
|
||||
%{_mandir}/man8/tsig-keygen.8%{ext_man}
|
||||
|
||||
%changelog
|
187
dlz-schema.txt
Normal file
187
dlz-schema.txt
Normal file
@ -0,0 +1,187 @@
|
||||
#
|
||||
#
|
||||
# 1.3.6.1.4.1.18420.1.1.X is reserved for attribute types declared by the DLZ project.
|
||||
# 1.3.6.1.4.1.18420.1.2.X is reserved for object classes declared by the DLZ project.
|
||||
# 1.3.6.1.4.1.18420.1.3.X is reserved for PRIVATE extensions to the DLZ attribute
|
||||
# types and object classes that may be needed by end users
|
||||
# to add security, etc. Attributes and object classes using
|
||||
# this OID MUST NOT be published outside of an organization
|
||||
# except to offer them for consideration to become part of the
|
||||
# standard attributes and object classes published by the DLZ project.
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.10
|
||||
NAME 'dlzZoneName'
|
||||
DESC 'DNS zone name - domain name not including host name'
|
||||
SUP name
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.20
|
||||
NAME 'dlzHostName'
|
||||
DESC 'Host portion of a domain name'
|
||||
SUP name
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.30
|
||||
NAME 'dlzData'
|
||||
DESC 'Data for the resource record'
|
||||
SUP name
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.40
|
||||
NAME 'dlzType'
|
||||
DESC 'DNS record type - A, SOA, NS, MX, etc...'
|
||||
SUP name
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.50
|
||||
NAME 'dlzSerial'
|
||||
DESC 'SOA record serial number'
|
||||
EQUALITY integerMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.60
|
||||
NAME 'dlzRefresh'
|
||||
DESC 'SOA record refresh time in seconds'
|
||||
EQUALITY integerMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.70
|
||||
NAME 'dlzRetry'
|
||||
DESC 'SOA retry time in seconds'
|
||||
EQUALITY integerMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.80
|
||||
NAME 'dlzExpire'
|
||||
DESC 'SOA expire time in seconds'
|
||||
EQUALITY integerMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.90
|
||||
NAME 'dlzMinimum'
|
||||
DESC 'SOA minimum time in seconds'
|
||||
EQUALITY integerMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.100
|
||||
NAME 'dlzAdminEmail'
|
||||
DESC 'E-mail address of person responsible for this zone - @ should be replaced with . (period)'
|
||||
SUP name
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.110
|
||||
NAME 'dlzPrimaryNS'
|
||||
DESC 'Primary name server for this zone - should be host name not IP address'
|
||||
SUP name
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.120
|
||||
NAME 'dlzIPAddr'
|
||||
DESC 'IP address - IPV4 should be in dot notation xxx.xxx.xxx.xxx IPV6 should be in colon notation xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx'
|
||||
EQUALITY caseExactIA5Match
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{40}
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.130
|
||||
NAME 'dlzCName'
|
||||
DESC 'DNS cname'
|
||||
SUP name
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.140
|
||||
NAME 'dlzPreference'
|
||||
DESC 'DNS MX record preference. Lower numbers have higher preference'
|
||||
EQUALITY integerMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.150
|
||||
NAME 'dlzTTL'
|
||||
DESC 'DNS time to live - how long this record can be cached by caching DNS servers'
|
||||
EQUALITY integerMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
|
||||
SINGLE-VALUE )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.18420.1.1.160
|
||||
NAME 'dlzRecordID'
|
||||
DESC 'Unique ID for each DLZ resource record'
|
||||
SUP name
|
||||
SINGLE-VALUE )
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Object class definitions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.18420.1.2.10
|
||||
NAME 'dlzZone'
|
||||
DESC 'Zone name portion of a domain name'
|
||||
SUP top STRUCTURAL
|
||||
MUST ( objectclass $ dlzZoneName ) )
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.18420.1.2.20
|
||||
NAME 'dlzHost'
|
||||
DESC 'Host name portion of a domain name'
|
||||
SUP top STRUCTURAL
|
||||
MUST ( objectclass $ dlzHostName ) )
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.18420.1.2.30
|
||||
NAME 'dlzAbstractRecord'
|
||||
DESC 'Data common to all DNS record types'
|
||||
SUP top ABSTRACT
|
||||
MUST ( objectclass $ dlzRecordID $ dlzHostName $ dlzType $ dlzTTL ) )
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.18420.1.2.40
|
||||
NAME 'dlzGenericRecord'
|
||||
DESC 'Generic DNS record - useful when a specific object class has not been defined for a DNS record'
|
||||
SUP dlzAbstractRecord STRUCTURAL
|
||||
MUST ( dlzData ) )
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.18420.1.2.50
|
||||
NAME 'dlzARecord'
|
||||
DESC 'DNS A record'
|
||||
SUP dlzAbstractrecord STRUCTURAL
|
||||
MUST ( dlzIPAddr ) )
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.18420.1.2.60
|
||||
NAME 'dlzNSRecord'
|
||||
DESC 'DNS NS record'
|
||||
SUP dlzGenericRecord STRUCTURAL )
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.18420.1.2.70
|
||||
NAME 'dlzMXRecord'
|
||||
DESC 'DNS MX record'
|
||||
SUP dlzGenericRecord STRUCTURAL
|
||||
MUST ( dlzPreference ) )
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.18420.1.2.80
|
||||
NAME 'dlzSOARecord'
|
||||
DESC 'DNS SOA record'
|
||||
SUP dlzAbstractRecord STRUCTURAL
|
||||
MUST ( dlzSerial $ dlzRefresh $ dlzRetry
|
||||
$ dlzExpire $ dlzMinimum $ dlzAdminEmail $ dlzPrimaryNS ) )
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.18420.1.2.90
|
||||
NAME 'dlzTextRecord'
|
||||
DESC 'Text data with spaces should be wrapped in double quotes'
|
||||
SUP dlzGenericRecord STRUCTURAL )
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.18420.1.2.100
|
||||
NAME 'dlzPTRRecord'
|
||||
DESC 'DNS PTR record'
|
||||
SUP dlzGenericRecord STRUCTURAL )
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.18420.1.2.110
|
||||
NAME 'dlzCNameRecord'
|
||||
DESC 'DNS CName record'
|
||||
SUP dlzGenericRecord STRUCTURAL )
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.18420.1.2.120
|
||||
NAME 'dlzXFR'
|
||||
DESC 'Host allowed to perform zone transfer'
|
||||
SUP top STRUCTURAL
|
||||
MUST ( objectclass $ dlzRecordID $ dlzIPAddr ) )
|
161
dnszone-schema.txt
Normal file
161
dnszone-schema.txt
Normal file
@ -0,0 +1,161 @@
|
||||
# A schema for storing DNS zones in LDAP
|
||||
#
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.0.0 NAME 'dNSTTL'
|
||||
DESC 'An integer denoting time to live'
|
||||
EQUALITY integerMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.0.1 NAME 'dNSClass'
|
||||
DESC 'The class of a resource record'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.0.2 NAME 'zoneName'
|
||||
DESC 'The name of a zone, i.e. the name of the highest node in the zone'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.0.3 NAME 'relativeDomainName'
|
||||
DESC 'The starting labels of a domain name'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.12 NAME 'pTRRecord'
|
||||
DESC 'domain name pointer, RFC 1035'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.13 NAME 'hInfoRecord'
|
||||
DESC 'host information, RFC 1035'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.14 NAME 'mInfoRecord'
|
||||
DESC 'mailbox or mail list information, RFC 1035'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.16 NAME 'tXTRecord'
|
||||
DESC 'text string, RFC 1035'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.18 NAME 'aFSDBRecord'
|
||||
DESC 'for AFS Data Base location, RFC 1183'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.24 NAME 'SigRecord'
|
||||
DESC 'Signature, RFC 2535'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.25 NAME 'KeyRecord'
|
||||
DESC 'Key, RFC 2535'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.28 NAME 'aAAARecord'
|
||||
DESC 'IPv6 address, RFC 1886'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.29 NAME 'LocRecord'
|
||||
DESC 'Location, RFC 1876'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.30 NAME 'nXTRecord'
|
||||
DESC 'non-existant, RFC 2535'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.33 NAME 'sRVRecord'
|
||||
DESC 'service location, RFC 2782'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.35 NAME 'nAPTRRecord'
|
||||
DESC 'Naming Authority Pointer, RFC 2915'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.36 NAME 'kXRecord'
|
||||
DESC 'Key Exchange Delegation, RFC 2230'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.37 NAME 'certRecord'
|
||||
DESC 'certificate, RFC 2538'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.38 NAME 'a6Record'
|
||||
DESC 'A6 Record Type, RFC 2874'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.39 NAME 'dNameRecord'
|
||||
DESC 'Non-Terminal DNS Name Redirection, RFC 2672'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.43 NAME 'dSRecord'
|
||||
DESC 'Delegation Signer, RFC 3658'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.44 NAME 'sSHFPRecord'
|
||||
DESC 'SSH Key Fingerprint, draft-ietf-secsh-dns-05.txt'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.46 NAME 'rRSIGRecord'
|
||||
DESC 'RRSIG, RFC 3755'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.47 NAME 'nSECRecord'
|
||||
DESC 'NSEC, RFC 3755'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
attributetype ( 1.3.6.1.4.1.2428.20.1.99 NAME 'sPFRecord'
|
||||
DESC 'Sender Policy Framework, RFC 4408'
|
||||
EQUALITY caseIgnoreIA5Match
|
||||
SUBSTR caseIgnoreIA5SubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
||||
|
||||
objectclass ( 1.3.6.1.4.1.2428.20.3 NAME 'dNSZone'
|
||||
SUP top STRUCTURAL
|
||||
MUST ( zoneName $ relativeDomainName )
|
||||
MAY ( DNSTTL $ DNSClass $
|
||||
ARecord $ MDRecord $ MXRecord $ NSRecord $
|
||||
SOARecord $ CNAMERecord $ PTRRecord $ HINFORecord $
|
||||
MINFORecord $ TXTRecord $ AFSDBRecord $ SIGRecord $
|
||||
KEYRecord $ AAAARecord $ LOCRecord $ NXTRecord $
|
||||
SRVRecord $ NAPTRRecord $ KXRecord $ CERTRecord $
|
||||
A6Record $ DNAMERecord $ DSRecord $ SSHFPRecord $
|
||||
RRSIGRecord $ NSECRecord $ sPFRecord ) )
|
3
named.conf
Normal file
3
named.conf
Normal file
@ -0,0 +1,3 @@
|
||||
# Type Name ID GECOS [HOME]
|
||||
g named 44 - -
|
||||
u named 44 "Name server daemon" /var/lib/named
|
92
named.root
Normal file
92
named.root
Normal file
@ -0,0 +1,92 @@
|
||||
; This file holds the information on root name servers needed to
|
||||
; initialize cache of Internet domain name servers
|
||||
; (e.g. reference this file in the "cache . <file>"
|
||||
; configuration file of BIND domain name servers).
|
||||
;
|
||||
; This file is made available by InterNIC
|
||||
; under anonymous FTP as
|
||||
; file /domain/named.cache
|
||||
; on server FTP.INTERNIC.NET
|
||||
; -OR- RS.INTERNIC.NET
|
||||
;
|
||||
; last update: July 28, 2021
|
||||
; related version of root zone: 2021072802
|
||||
;
|
||||
; FORMERLY NS.INTERNIC.NET
|
||||
;
|
||||
. 3600000 NS A.ROOT-SERVERS.NET.
|
||||
A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
|
||||
A.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:ba3e::2:30
|
||||
;
|
||||
; FORMERLY NS1.ISI.EDU
|
||||
;
|
||||
. 3600000 NS B.ROOT-SERVERS.NET.
|
||||
B.ROOT-SERVERS.NET. 3600000 A 199.9.14.201
|
||||
B.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:200::b
|
||||
;
|
||||
; FORMERLY C.PSI.NET
|
||||
;
|
||||
. 3600000 NS C.ROOT-SERVERS.NET.
|
||||
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
|
||||
C.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2::c
|
||||
;
|
||||
; FORMERLY TERP.UMD.EDU
|
||||
;
|
||||
. 3600000 NS D.ROOT-SERVERS.NET.
|
||||
D.ROOT-SERVERS.NET. 3600000 A 199.7.91.13
|
||||
D.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2d::d
|
||||
;
|
||||
; FORMERLY NS.NASA.GOV
|
||||
;
|
||||
. 3600000 NS E.ROOT-SERVERS.NET.
|
||||
E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
|
||||
E.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:a8::e
|
||||
;
|
||||
; FORMERLY NS.ISC.ORG
|
||||
;
|
||||
. 3600000 NS F.ROOT-SERVERS.NET.
|
||||
F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
|
||||
F.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2f::f
|
||||
;
|
||||
; FORMERLY NS.NIC.DDN.MIL
|
||||
;
|
||||
. 3600000 NS G.ROOT-SERVERS.NET.
|
||||
G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
|
||||
G.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:12::d0d
|
||||
;
|
||||
; FORMERLY AOS.ARL.ARMY.MIL
|
||||
;
|
||||
. 3600000 NS H.ROOT-SERVERS.NET.
|
||||
H.ROOT-SERVERS.NET. 3600000 A 198.97.190.53
|
||||
H.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:1::53
|
||||
;
|
||||
; FORMERLY NIC.NORDU.NET
|
||||
;
|
||||
. 3600000 NS I.ROOT-SERVERS.NET.
|
||||
I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
|
||||
I.ROOT-SERVERS.NET. 3600000 AAAA 2001:7fe::53
|
||||
;
|
||||
; OPERATED BY VERISIGN, INC.
|
||||
;
|
||||
. 3600000 NS J.ROOT-SERVERS.NET.
|
||||
J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30
|
||||
J.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:c27::2:30
|
||||
;
|
||||
; OPERATED BY RIPE NCC
|
||||
;
|
||||
. 3600000 NS K.ROOT-SERVERS.NET.
|
||||
K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
|
||||
K.ROOT-SERVERS.NET. 3600000 AAAA 2001:7fd::1
|
||||
;
|
||||
; OPERATED BY ICANN
|
||||
;
|
||||
. 3600000 NS L.ROOT-SERVERS.NET.
|
||||
L.ROOT-SERVERS.NET. 3600000 A 199.7.83.42
|
||||
L.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:9f::42
|
||||
;
|
||||
; OPERATED BY WIDE
|
||||
;
|
||||
. 3600000 NS M.ROOT-SERVERS.NET.
|
||||
M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
|
||||
M.ROOT-SERVERS.NET. 3600000 AAAA 2001:dc3::35
|
||||
; End of file
|
BIN
vendor-files.tar.bz2
(Stored with Git LFS)
Normal file
BIN
vendor-files.tar.bz2
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user