summaryrefslogtreecommitdiff
path: root/packages/podman/build.sh
diff options
context:
space:
mode:
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..deb6b261
--- /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 --depends libgpgme11 \
+ --license "Apache License 2.0" -C podman-v$VERSION --package ..
+