summaryrefslogtreecommitdiff
path: root/hack
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-01 06:05:22 -0700
committerGitHub <noreply@github.com>2019-10-01 06:05:22 -0700
commit049aafa4c094f604b1985fe3975762573d7f64e7 (patch)
treea5eb3c6caa04f1c63a9c9b6eb765ee69899eebc0 /hack
parent5d344db8d776190568df9c3b73fd22b632c9c135 (diff)
parent80f6af7766a1b47715a0cd8d1fab567750dcdc31 (diff)
downloadpodman-049aafa4c094f604b1985fe3975762573d7f64e7.tar.gz
podman-049aafa4c094f604b1985fe3975762573d7f64e7.tar.bz2
podman-049aafa4c094f604b1985fe3975762573d7f64e7.zip
Merge pull request #4090 from vrothberg/build-catatonit
Build catatonit
Diffstat (limited to 'hack')
-rwxr-xr-xhack/install_catatonit.sh19
1 files changed, 14 insertions, 5 deletions
diff --git a/hack/install_catatonit.sh b/hack/install_catatonit.sh
index e5532a200..7fd7592a9 100755
--- a/hack/install_catatonit.sh
+++ b/hack/install_catatonit.sh
@@ -1,15 +1,24 @@
#!/bin/bash -e
BASE_PATH="/usr/libexec/podman"
CATATONIT_PATH="${BASE_PATH}/catatonit"
-CATATONIT_VERSION="v0.1.3"
+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