aboutsummaryrefslogtreecommitdiff
path: root/hack/install_catatonit.sh
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2019-09-24 12:36:50 +0200
committerValentin Rothberg <rothberg@redhat.com>2019-09-25 11:05:41 +0200
commit80f6af7766a1b47715a0cd8d1fab567750dcdc31 (patch)
treefd29f5731de079d0f4da901138abce3f3362ee48 /hack/install_catatonit.sh
parent6f4e3beedc2a78753f1265c848e5cb6d21ebdcb4 (diff)
downloadpodman-80f6af7766a1b47715a0cd8d1fab567750dcdc31.tar.gz
podman-80f6af7766a1b47715a0cd8d1fab567750dcdc31.tar.bz2
podman-80f6af7766a1b47715a0cd8d1fab567750dcdc31.zip
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>
Diffstat (limited to 'hack/install_catatonit.sh')
-rwxr-xr-xhack/install_catatonit.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/hack/install_catatonit.sh b/hack/install_catatonit.sh
index 1ba399d19..7fd7592a9 100755
--- a/hack/install_catatonit.sh
+++ b/hack/install_catatonit.sh
@@ -6,10 +6,19 @@ CATATONIT_VERSION="v0.1.4"
if [ -f $CATATONIT_PATH ]; then
echo "skipping ... catatonit is already installed"
else
- echo "downloading catatonit to $CATATONIT_PATH"
- curl -o catatonit -L https://github.com/openSUSE/catatonit/releases/download/$CATATONIT_VERSION/catatonit.x86_64
- chmod +x catatonit
+ 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
- rm catatonit
+ popd
+
+ rm -rf $buildDir
fi