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
+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
}