podman/hack/install_catatonit.sh
Valentin Rothberg 80f6af7766 catatonit: clone and build
Instead of unconditionally pulling the x86 binary, clone the repository
and build the binary to make it independent of the architecture.

Fixes: #2699
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-09-25 11:05:41 +02:00

25 lines
570 B
Bash
Executable file

#!/bin/bash -e
BASE_PATH="/usr/libexec/podman"
CATATONIT_PATH="${BASE_PATH}/catatonit"
CATATONIT_VERSION="v0.1.4"
if [ -f $CATATONIT_PATH ]; then
echo "skipping ... catatonit is already installed"
else
echo "installing catatonit to $CATATONIT_PATH"
buildDir=$(mktemp -d)
git clone https://github.com/openSUSE/catatonit.git $buildDir
pushd $buildDir
echo `pwd`
git reset --hard ${CATATONIT_VERSION}
autoreconf -fi
./configure
make
install ${SELINUXOPT} -d -m 755 $BASE_PATH
install ${SELINUXOPT} -m 755 catatonit $CATATONIT_PATH
popd
rm -rf $buildDir
fi