diff options
Diffstat (limited to 'strata/swift')
-rw-r--r-- | strata/swift/gf-complete.morph | 19 | ||||
-rw-r--r-- | strata/swift/liberasurecode.morph | 5 | ||||
-rw-r--r-- | strata/swift/xattr.morph | 8 |
3 files changed, 32 insertions, 0 deletions
diff --git a/strata/swift/gf-complete.morph b/strata/swift/gf-complete.morph new file mode 100644 index 00000000..adbe5a48 --- /dev/null +++ b/strata/swift/gf-complete.morph @@ -0,0 +1,19 @@ +name: gf-complete +kind: chunk +build-system: autotools +pre-configure-commands: +- ./autogen.sh +configure-commands: +- | + case "$MORPH_ARCH" in + x86_64) + SSE= + ;; + *) + # Disable SSE4 for any architecture which are not x86_64 bits + # see more information about architecture which support SSE in + # https://en.wikipedia.org/wiki/SSE4#Supporting_CPUs. + SSE=--disable-sse + ;; + esac + ./configure --prefix="$PREFIX" "$SSE" diff --git a/strata/swift/liberasurecode.morph b/strata/swift/liberasurecode.morph new file mode 100644 index 00000000..68839403 --- /dev/null +++ b/strata/swift/liberasurecode.morph @@ -0,0 +1,5 @@ +name: liberasurecode +kind: chunk +build-system: autotools +pre-configure-commands: +- autoreconf -ivf diff --git a/strata/swift/xattr.morph b/strata/swift/xattr.morph new file mode 100644 index 00000000..65f47dae --- /dev/null +++ b/strata/swift/xattr.morph @@ -0,0 +1,8 @@ +name: xattr +kind: chunk +configure-commands: +- cp -r /usr/lib/python2.7/site-packages/cffi . +build-commands: +- python setup.py build +install-commands: +- python setup.py install --prefix "$PREFIX" --root "$DESTDIR" |