diff options
Diffstat (limited to 'scripts/runit.sh')
| -rw-r--r-- | scripts/runit.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/runit.sh b/scripts/runit.sh new file mode 100644 index 0000000..39bcbaa --- /dev/null +++ b/scripts/runit.sh @@ -0,0 +1,18 @@ +#!/bin/sh +. ./.vars +export DESTDIR=$prefix +VERSION=2.1.2 +BUILD_DIR="${build_dir}/runit-$VERSION" +if ! [ -d "$BUILD_DIR" ] ; then + cd "$build_dir" + tar xfzv ${dist_dir}/runit-$VERSION.tar.gz + mv admin/runit-$VERSION ./ + rmdir admin +fi +cd "$BUILD_DIR/src" +export CC=musl-gcc +export LDFLAGS="-static" +export DESTDIR="$prefix" +echo "musl-gcc -O2 -Wall $CFLAGS" > conf-cc +echo "musl-gcc -s $LDFLAGS" > conf-ld +make |
