forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bind.yaml
230 lines (205 loc) · 5.6 KB
/
bind.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
package:
name: bind
version: 9.18.32
epoch: 0
description: The ISC DNS server
copyright:
- license: MPL-2.0
environment:
contents:
packages:
- autoconf
- automake
- bash
- build-base
- busybox
- ca-certificates-bundle
- dns-root-hints
- dnssec-root
- fstrm-dev
- krb5-dev
- libcap-dev
- libprotoc
- libtool
- libuv-dev
- libxml2-dev
- nghttp2-dev
- openldap-dev
- openssf-compiler-options
- openssl-dev
- perl
- pkgconf-dev
- protobuf-c-dev
- protoc
pipeline:
- uses: git-checkout
with:
repository: https://gitlab.isc.org/isc-projects/bind9.git
tag: v${{package.version}}
expected-commit: d1f139270ce2d764d90ad0b8724cf0265792136c
- runs: |
autoreconf -fi
- uses: autoconf/configure
with:
opts: |
--host=${{host.triplet.gnu}} \
--build=${{host.triplet.gnu}} \
--with-gssapi=yes \
--with-libxml2 \
--with-openssl=yes \
--enable-dnstap \
--enable-largefile \
--enable-linux-caps \
--enable-shared \
--disable-static
- uses: autoconf/make
with:
opts: PROTOC_C=protoc
- uses: autoconf/make-install
- runs: |
# removed -g named -o root
install -d -m0770 ${{targets.destdir}}/var/bind \
${{targets.destdir}}/var/bind/sec \
${{targets.destdir}}/var/bind/dyn
# removed -g named -o root
install -d -m0750 ${{targets.destdir}}/etc/bind \
${{targets.destdir}}/var/bind/pri
make -j1 DESTDIR=${{targets.destdir}} install
install -Dm644 named.confd \
${{targets.destdir}}/etc/conf.d/named
install -Dm644 named.conf.authoritative \
${{targets.destdir}}/etc/bind/named.conf.authoritative
install -Dm644 named.conf.recursive \
${{targets.destdir}}/etc/bind/named.conf.recursive
install -Dm644 127.zone \
${{targets.destdir}}/var/bind/pri/127.zone
install -Dm644 localhost.zone \
${{targets.destdir}}/var/bind/pri/localhost.zone
cd ${{targets.destdir}}/var/bind
ln -s ../../usr/share/dns-root-hints/named.root named.ca
ln -s named.ca root.cache
- uses: strip
subpackages:
- name: bind-doc
pipeline:
- uses: split/manpages
- uses: split/infodir
description: bind manpages
- name: bind-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- bind
- bind-plugins
- bind-tools
- dns-root-hints
description: bind dev
- name: bind-libs
dependencies:
runtime:
- keyutils-libs
- krb5-conf
- fstrm
- protobuf-c
- nghttp2-dev
- libnghttp2-14
pipeline:
- runs: |
for dir in lib usr/lib; do
for file in ${{targets.destdir}}/$dir/lib*.so; do
[ -f "$file" ] || continue
mkdir -p ${{targets.subpkgdir}}/$dir
mv "$file" ${{targets.subpkgdir}}/$dir/
done
done
description: bind (libraries)
- name: bind-dnssec-root
pipeline:
- runs: |
_dir="usr/share/dnssec-root"
_file="bind-dnssec-root.keys"
_link="${{targets.destdir}}/etc/bind.keys"
mkdir -p "${{targets.subpkgdir}}/$_dir"
cd "${{targets.subpkgdir}}/$_dir"
mv "$_link" "$_file"
ln -s "$_file" bind.keys
ln -s "../../$_dir/$_file" "$_link"
description: ISC BIND DNSSEC Root Keys
- name: bind-dnssec-tools
dependencies:
runtime:
- bind-tools
- libgcrypt
- libxml2
- curl
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
mv \
${{targets.destdir}}/usr/bin/nsec3hash \
${{targets.destdir}}/usr/bin/dnssec* \
${{targets.subpkgdir}}/usr/bin/
description: Utilities for DNSSEC keys and DNS zone files management
test:
pipeline:
- runs: |
dnssec-verify --version
dnssec-verify --help
- name: bind-plugins
dependencies:
runtime:
- bind
- bind-tools
- bind-libs
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/lib
mv ${{targets.destdir}}/usr/lib/bind ${{targets.subpkgdir}}/usr/lib/
description: The ISC DNS server plugins
- name: bind-tools
dependencies:
runtime:
- bind-libs
- krb5-libs
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
for i in ${{targets.destdir}}/usr/bin/*; do
case "${i##*/}" in
named-checkconf) ;;
*) mv "$i" ${{targets.subpkgdir}}/usr/bin ;;
esac
done
mkdir -p ${{targets.subpkgdir}}/usr/sbin
for i in ${{targets.destdir}}/usr/sbin/*; do
case "${i##*/}" in
named|rndc) ;;
*) mv "$i" ${{targets.subpkgdir}}/usr/sbin ;;
esac
done
description: The ISC DNS tools
test:
pipeline:
- runs: |
delv version
delv help
dig version
dig help
dnstap-read version
dnstap-read help
mdig -v
mdig -h
named-checkzone -v
named-compilezone -v
named-rrchecker --version
named-rrchecker --help
nsupdate -v
ddns-confgen -h
rndc-confgen -h
tsig-keygen version
tsig-keygen help
update:
enabled: true
release-monitor:
identifier: 242117