-
Notifications
You must be signed in to change notification settings - Fork 1
/
prep.do
27 lines (20 loc) · 788 Bytes
/
prep.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash -x
exec 1>&2
pkgin -y up
# need git to get code
pkgin -y in scmgit bsdtar
# build tools
pkgin -y in gcc47 gmake libtool-base automake pkg-config
# onbld tools from illumos
curl http://www.shalman.org/spice/2012Q4-multiarch-onbld/onbld-0.0.1.tgz | tar xzv -C /opt/local bin lib
# dependencies
pkgin -y in png spice-protocol usbredir
# XXX separate out libspice installation due to need to manually downgrade
pkg_info libspice &>/dev/null || pkgin -y in libspice
# XXX downgrade to spice 0.12.2
pkg_info libspice | grep -q libspice-0.12.2 || \
{ \
pkgin -y rm libspice && \
pkg_add <(curl http://pkgsrc.joyent.com/packages/SmartOS/2013Q1/x86_64/All/libspice-0.12.2.tgz) && \
echo "Manually downgraded to libspice-0.12.2 due to known issue with later versions" ; \
}