Update package version to 1.16.1

This commit is contained in:
2025-09-19 10:47:43 +03:00
parent 4bae0c7eb1
commit a6d6730e19
3 changed files with 17 additions and 5 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Github repository
REPO="containers/netavark"
# Get tag name using Github Rest API
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
# Trim 'v' character in TAG_NAME variable
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
echo "$VERSION"
+1 -2
View File
@@ -1,7 +1,6 @@
name: netavark
description: Container network stack
version: 1.13.0
revision: 2
version: 1.16.1
url: https://github.com/containers/netavark
license: Apache-2.0
architecture: any
+4 -3
View File
@@ -10,12 +10,14 @@ FILENAME="${DOWNLOAD##*/}"
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
cd "$BPM_SOURCE"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
sed "s|@@NETAVARK@@|/usr/lib/podman/netavark|" contrib/systemd/system/netavark-dhcp-proxy.service.in > contrib/systemd/system/netavark-dhcp-proxy.service
cargo build --frozen --release --all-features
}
@@ -29,8 +31,7 @@ check() {
# This function is used to move the compiled files into the output directory
package() {
install -Dm755 target/release/netavark "$BPM_OUTPUT"/usr/libexec/podman/netavark
install -Dm644 contrib/systemd/system/*.{service,socket} -t "$BPM_OUTPUT"/usr/lib/systemd/system/
install -Dm644 README.md "$BPM_OUTPUT"/usr/share/doc/netavark/README.md
# Install package license
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/netavark/LICENSE
}