summaryrefslogtreecommitdiff
path: root/etc/pkgs/005-tini.sh
blob: 44bb1725ae5cd00ba34514a122abe7150a294e79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set -x

sudo yum install -y cmake glibc-static || exit 1
git clone https://github.com/krallin/tini.git
export CFLAGS="${CFLAGS} -DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37"

pushd tini
    git checkout v0.18.0
    mkdir -p build
    pushd build
        cmake ..
        make
        install -m755 tini ${TOOLCHAIN_BIN}
    popd
popd

rm -rf tini