summaryrefslogtreecommitdiff
path: root/packages/podman/build.sh
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-07-25 17:49:10 +0200
committerGitHub <noreply@github.com>2024-07-25 17:49:10 +0200
commitf146c3b01a55bf22f76847d6d6067dbe81e01db7 (patch)
tree4720048aae2f172778837b1f58dfeb401bcc67df /packages/podman/build.sh
parentedda69d4dc008a93928902b8dc4d32672fadc8b8 (diff)
parent482f6c947bc0182abc08803e89d232bfa1349af9 (diff)
downloadvyos-build-f146c3b01a55bf22f76847d6d6067dbe81e01db7.tar.gz
vyos-build-f146c3b01a55bf22f76847d6d6067dbe81e01db7.zip
Merge pull request #712 from vyos/mergify/bp/circinus/pr-709
podman: T6598: add custom podman build for version 4.9.5 (backport #709)
Diffstat (limited to 'packages/podman/build.sh')
-rwxr-xr-xpackages/podman/build.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/podman/build.sh b/packages/podman/build.sh
new file mode 100755
index 00000000..3b9b2929
--- /dev/null
+++ b/packages/podman/build.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+export PATH=/opt/go/bin:$PATH
+
+SRC=podman
+if [ ! -d $SRC ]; then
+ echo "source directory $SRC does not exist!"
+ exit 1
+fi
+
+sudo apt-get install -y libseccomp-dev libgpgme-dev
+
+cd $SRC
+
+echo "I: installing dependencies"
+make install.tools
+echo "I: building podman"
+make podman-release
+
+tar xf podman-release-$(dpkg --print-architecture).tar.gz
+# retrieve version number from podman archive folder: podman-v4.9.5/
+# remove leading podman string
+VERSION=$(ls -d podman-v* | cut -c9-)
+
+fpm --input-type dir --output-type deb --name podman \
+ --version $VERSION --deb-compression gz \
+ --maintainer "VyOS Package Maintainers <maintainers@vyos.net>" \
+ --description "Engine to run OCI-based containers in Pods" \
+ --depends conmon --depends crun --depends netavark \
+ --license "Apache License 2.0" -C podman-v$VERSION --package ..
+