]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: add alpine support
authorJohn Coyle <dx9err@gmail.com>
Wed, 21 Dec 2016 01:24:31 +0000 (20:24 -0500)
committerJohn Coyle <dx9err@gmail.com>
Wed, 21 Dec 2016 01:24:31 +0000 (20:24 -0500)
Signed-off-by: John Coyle <dx9err@gmail.com>
install-deps.sh

index 0e718111e9e6dc728bb79472c7b27205a7288850..b4df9be366ebbf667c740f46808326d382d67161 100755 (executable)
@@ -128,6 +128,18 @@ else
         sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec
         $SUDO zypper --non-interactive install $(rpmspec -q --buildrequires $DIR/ceph.spec) || exit 1
         ;;
+    alpine)
+        # for now we need the testing repo for leveldb
+        TESTREPO="http://nl.alpinelinux.org/alpine/edge/testing"
+        if ! grep -qF "$TESTREPO" /etc/apk/repositories ; then
+            $SUDO echo "$TESTREPO" | sudo tee -a /etc/apk/repositories > /dev/null
+        fi
+        source alpine/APKBUILD.in
+        $SUDO apk --update add abuild build-base ccache $makedepends
+        if id -u build >/dev/null 2>&1 ; then
+           $SUDO addgroup build abuild
+        fi
+        ;;
     *)
         echo "$ID is unknown, dependencies will have to be installed manually."
        exit 1