Skip to content

Commit 84eb9b8

Browse files
committed
install-deps.sh: add alpine support
Signed-off-by: John Coyle <[email protected]>
1 parent ce3332f commit 84eb9b8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

install-deps.sh

+12
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,18 @@ else
128128
sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec
129129
$SUDO zypper --non-interactive install $(rpmspec -q --buildrequires $DIR/ceph.spec) || exit 1
130130
;;
131+
alpine)
132+
# for now we need the testing repo for leveldb
133+
TESTREPO="http://nl.alpinelinux.org/alpine/edge/testing"
134+
if ! grep -qF "$TESTREPO" /etc/apk/repositories ; then
135+
$SUDO echo "$TESTREPO" | sudo tee -a /etc/apk/repositories > /dev/null
136+
fi
137+
source alpine/APKBUILD.in
138+
$SUDO apk --update add abuild build-base ccache $makedepends
139+
if id -u build >/dev/null 2>&1 ; then
140+
$SUDO addgroup build abuild
141+
fi
142+
;;
131143
*)
132144
echo "$ID is unknown, dependencies will have to be installed manually."
133145
exit 1

0 commit comments

Comments
 (0)