-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4090 from vrothberg/build-catatonit
Build catatonit
- Loading branch information
Showing
5 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,7 @@ $BIGTO $SUDOAPTGET install \ | |
curl \ | ||
e2fslibs-dev \ | ||
emacs-nox \ | ||
file \ | ||
gawk \ | ||
gcc \ | ||
gettext \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |