github.com/containers/podman/v5@v5.1.0-rc1/hack/install_catatonit.sh (about)

     1  #!/usr/bin/env bash
     2  BASE_PATH="/usr/libexec/podman"
     3  CATATONIT_PATH="${BASE_PATH}/catatonit"
     4  CATATONIT_VERSION="v0.1.7"
     5  set -e
     6  
     7  if [ -f $CATATONIT_PATH ] && [ -z "$1" ]; then
     8  	echo "skipping ... catatonit is already installed"
     9  	exit 0
    10  fi
    11  
    12  echo "installing catatonit to $CATATONIT_PATH"
    13  buildDir=$(mktemp -d)
    14  git clone https://github.com/openSUSE/catatonit.git $buildDir
    15  
    16  pushd $buildDir
    17  echo `pwd`
    18  git reset --hard ${CATATONIT_VERSION}
    19  autoreconf -fi
    20  ./configure
    21  make
    22  install ${SELINUXOPT} -d -m 755 $BASE_PATH
    23  install ${SELINUXOPT} -m 755 catatonit $CATATONIT_PATH
    24  popd
    25  
    26  rm -rf $buildDir