2 Commits

Author SHA1 Message Date
Vadim Yanitskiy
9494bd12af contrib/jenkins.sh: use https:// instead of git://
Change-Id: I5f184fd100230e1b9c0076739f49901ab2782b4f
2025-08-22 16:18:39 +07:00
Vadim Yanitskiy
1a98d7c32b contrib/jenkins.sh: specify --with-unitdir for nftables
Since recently (see the related commit), libnftables installs
a systemd unit file that loads a ruleset from a file on boot.

contrib/jenkins.sh currently fails with the following error:

  /usr/bin/install: cannot create regular file
                    '/lib/systemd/system/nftables.service':
                    Permission denied

Let's specify the unit directory like we do for other projects.

Change-Id: I9ab473dd6f734606518a980152fd4b00c2e23690
Related: nftables.git c4b17cf8305108f91d8e63880317a59e8e806c80
2025-08-22 16:18:39 +07:00

View File

@@ -37,6 +37,7 @@ osmo-build-dep.sh libgtpnl
build_from_netfilter() {
### TODO: enable osmo-build-dep.sh to build from git.netfilter.org URL?
project="$1"
cfg="$2"
set +x
echo
echo
@@ -47,19 +48,20 @@ build_from_netfilter() {
if [ -d "./$project" ]; then
rm -rf "./$project"
fi
git clone "git://git.netfilter.org/$project" "$project"
git clone "https://git.netfilter.org/$project" "$project"
cd "$project"
autoreconf --install --force
./configure \
--prefix="$inst/stow/$project" \
--without-cli \
--disable-man-doc \
--enable-python=no
--enable-python=no \
$cfg
$MAKE $PARALLEL_MAKE install
STOW_DIR="$inst/stow" stow --restow $project
}
build_from_netfilter libnftnl
build_from_netfilter nftables
build_from_netfilter nftables "--with-unitdir=$inst/stow/$project/lib/systemd/system"
# Additional configure options and depends
CONFIG=""