community/ceph to 12.2.2-3

This commit is contained in:
Kevin Mihelich 2018-01-06 20:48:58 +00:00
parent 9219bdc92c
commit 96a490c148

View file

@ -1,5 +1,5 @@
# Maintainer: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
# Contributor: Thore Bödecker <foxxx0@archlinux.org>
# Maintainer: Thore Bödecker <foxxx0@archlinux.org>
# Contributor: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to remove neon detection in cmake
@ -10,7 +10,7 @@ highmem=1
pkgbase='ceph'
pkgname=('ceph' 'ceph-libs')
pkgver=12.2.2
pkgrel=1
pkgrel=3
pkgdesc='Distributed, fault-tolerant storage platform delivering object, block, and file system'
arch=('x86_64')
url='https://ceph.com/'
@ -67,6 +67,17 @@ prepare() {
if mount | grep 'type btrfs' &>/dev/null; then
sed -i '/run-tox-ceph-disk/d' src/test/CMakeLists.txt
fi
# fix python interpreter -> python2
for file in \
src/ceph-create-keys \
src/ceph-rest-api \
src/mount.fuse.ceph \
src/brag/client/ceph-brag \
src/ceph-detect-init/ceph_detect_init/main.py
do
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' "${file}"
done
}
build() {
@ -75,6 +86,10 @@ build() {
mkdir -p build
cd build
# experimental in luminous: (and currently broken with boost 1.66)
# RADOSGW_BEAST_FRONTEND
# -> disabled
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
@ -90,7 +105,7 @@ build() {
-DWITH_NSS=ON \
-DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
-DWITH_RADOSGW=ON \
-DWITH_RADOSGW_BEAST_FRONTEND=ON \
-DWITH_RADOSGW_BEAST_FRONTEND=OFF \
-DWITH_RDMA=OFF \
-DWITH_SSL=ON \
-DWITH_SYSTEM_BOOST=ON \
@ -117,7 +132,7 @@ check() {
package_ceph-libs() {
depends=('boost-libs' 'curl' 'glibc' 'keyutils' 'leveldb' 'libaio'
'libutil-linux' 'nss' 'python2' 'xfsprogs')
'libutil-linux' 'lz4' 'nss' 'python2' 'xfsprogs')
cd "${srcdir}/${pkgbase}-${pkgver}/build"