Skip to content

Commit b2f5571

Browse files
committed
kea: T8092: Build kea from source
1 parent 50b08d3 commit b2f5571

8 files changed

Lines changed: 50 additions & 10 deletions

File tree

.github/workflows/trigger_rebuild_packages.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
- 'scripts/package-build/hsflowd/**'
5050
isc-dhcp:
5151
- 'scripts/package-build/isc-dhcp/**'
52+
isc-kea:
53+
- 'scripts/package-build/isc-kea/**'
5254
keepalived:
5355
- 'scripts/package-build/keepalived/**'
5456
libnss-mapuser:
@@ -167,6 +169,10 @@ jobs:
167169
trigger_build "isc-dhcp"
168170
fi
169171
172+
if [ "${{ steps.changes.outputs.isc-kea }}" == "true" ]; then
173+
trigger_build "isc-kea"
174+
fi
175+
170176
if [ "${{ steps.changes.outputs.keepalived }}" == "true" ]; then
171177
trigger_build "keepalived"
172178
fi

data/architectures/amd64.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,3 @@ packages = [
1919

2020
[additional_repositories.zabbix]
2121
url = "https://repo.zabbix.com/zabbix/6.0/debian"
22-
23-
[additional_repositories.kea]
24-
architecture = "amd64"
25-
url = "https://dl.cloudsmith.io/public/isc/kea-3-0/deb/debian"
26-
distribution = "bookworm"

data/architectures/arm64.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,3 @@ squashfs_compression_type = "xz -b 256k -always-use-fragments -no-recovery"
1212

1313
[additional_repositories.zabbix]
1414
url = "https://repo.zabbix.com/zabbix/6.0/debian-arm64"
15-
16-
[additional_repositories.kea]
17-
architecture = "arm64"
18-
url = "https://dl.cloudsmith.io/public/isc/kea-3-0/deb/debian"
19-
distribution = "bookworm"

docker/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,12 @@ RUN git clone -b 4.4.6 https://github.com/perfsonar/i2util.git /tmp/i2util && \
331331
dpkg-buildpackage -uc -us -tc -b && \
332332
dpkg -i /tmp/*i2util*_$(dpkg-architecture -qDEB_HOST_ARCH).deb
333333

334+
# Package needed for building Kea
335+
RUN echo "deb http://deb.debian.org/debian bookworm-backports main" \
336+
> /etc/apt/sources.list.d/bookworm-backports.list \
337+
&& apt-get update \
338+
&& apt install -t bookworm-backports meson
339+
334340
# Creating image for embedded systems needs this utilities to prepare a image file
335341
RUN apt-get update && apt-get install -y \
336342
parted \
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
isc-kea/
2+
kea-packaging/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../build.py
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
SRC="isc-kea"
4+
5+
# Fetch debian packaging repo
6+
git clone https://gitlab.isc.org/isc-projects/kea-packaging.git
7+
rm -rf isc-kea/debian
8+
cp -r kea-packaging/debian isc-kea/
9+
rm -rf kea-packaging
10+
11+
cd $SRC
12+
13+
# Determine version from git tag
14+
TAG=$(git describe --tags --exact-match)
15+
VERSION="${TAG#Kea-}"
16+
17+
# Modify debian files, add version, remove docs/manpages and unnecessary packages
18+
sed -i "s/{VERSION}/$VERSION/g" debian/changelog
19+
sed -i 's/{ISC_VERSION}/vyos/g' debian/changelog
20+
sed -i 's/{ISC_VERSION}/vyos/g' debian/rules
21+
sed -i '/meson compile -C build doc/d' debian/rules
22+
sed -Ei '/^Package: isc-kea-(doc|premium|subscriber)/,/^$/d' debian/control
23+
sed -i '/usr\/share\/man/d' debian/*.install
24+
sed -i '/usr\/share\/doc\/kea/d' debian/*.install
25+
echo "usr/share/doc/kea/*" >> debian/not-installed
26+
echo "usr/share/kea/meson-info/*" >> debian/not-installed
27+
rm -rf debian/isc-kea-doc.install debian/isc-kea-subscriber* debian/isc-kea-premium*
28+
29+
sudo mk-build-deps --install --tool 'apt-get --yes --no-install-recommends'
30+
dpkg-buildpackage -uc -us -tc -b
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[[packages]]
2+
name = "isc-kea"
3+
commit_id = "Kea-3.0.2"
4+
scm_url = "https://gitlab.isc.org/isc-projects/kea.git"
5+
build_cmd = "cd ..; ./build.sh"

0 commit comments

Comments
 (0)