summaryrefslogtreecommitdiff
path: root/packages/podman/build.sh
blob: 194a139a3e791e67193dfe1eb61aaf6dc39834f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash

set -x

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 ..