void-packages/srcpkgs/ceph/template
2016-07-27 08:38:17 +02:00

44 lines
1.6 KiB
Bash

# Template file for 'ceph'
pkgname=ceph
version=10.2.2
revision=1
build_style=gnu-configure
configure_args="--with-man-pages --with-radosgw --without-openldap
--with-nss --without-cython --without-tcmalloc
--without-crytocpp --without-librocksdb --disable-static"
hostmakedepends="automake libtool pkg-config yasm python-devel python-setuptools
python-virtualenv python-pip python-Sphinx"
makedepends="zlib-devel bzip2-devel liblzma-devel xfsprogs-devel leveldb-devel
boost-devel expat-devel libcurl-devel fuse-devel libaio-devel libatomic_ops-devel
libedit-devel ncurses-devel libuuid-devel libblkid-devel eudev-libudev-devel
nss-devel snappy-devel keyutils-devel fcgi-devel"
short_desc="Distributed, fault-tolerant storage platform delivering object, block, and file system"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://ceph.com/"
distfiles="http://download.ceph.com/tarballs/ceph-${version}.tar.gz"
checksum=7adaaeffb5a787108b5e1494df9165b6420069c0ab710e6e4aad185f423b0f6d
# - Needs NEON on ARM (armv7+)
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="execinfo.h, PTHREAD_RWLOCK_NONRECURSIVE_NP, etc";;
armv7*) CFLAGS="-mfpu=neon";;
esac
LDFLAGS="-Wl,--no-as-needed"
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -i '/no resolv library found/s/AC_MSG_FAILURE/AC_MSG_RESULT/' configure.ac
;;
esac
autoreconf -fi
}
post_install() {
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
vmkdir usr/share/bash-completion/completions
mv ${DESTDIR}/etc/bash_completion.d/* ${DESTDIR}/usr/share/bash-completion/completions
rm -rf ${DESTDIR}/usr/include
}