void-packages/srcpkgs/ceph/template

50 lines
1.7 KiB
Bash
Raw Normal View History

2016-04-29 10:55:29 +02:00
# Template file for 'ceph'
pkgname=ceph
2016-09-27 16:05:06 +02:00
version=10.2.3
2016-10-20 18:48:00 +02:00
revision=3
2016-04-29 10:55:29 +02:00
build_style=gnu-configure
configure_args="--with-man-pages --with-radosgw --without-openldap
2016-04-29 10:55:29 +02:00
--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"
2016-09-27 16:05:06 +02:00
checksum=dca933aa14db67b404d836ef510bd418091978edc2f0c74dfc530ba0aa5e8994
2016-04-29 10:55:29 +02:00
2016-09-27 17:25:09 +02:00
# - Needs CRC32 extension on ARMv8 (ODROID-C2 has it)
2016-04-29 10:55:29 +02:00
# - Needs NEON on ARM (armv7+)
case "$XBPS_TARGET_MACHINE" in
2016-07-27 08:38:17 +02:00
*-musl) broken="execinfo.h, PTHREAD_RWLOCK_NONRECURSIVE_NP, etc";;
2016-09-27 17:25:09 +02:00
aarch64*) CFLAGS="-march=armv8-a+crc";;
2016-04-29 10:55:29 +02:00
armv7*) CFLAGS="-mfpu=neon";;
esac
2016-09-27 20:11:55 +02:00
broken=yes
2016-09-27 16:38:21 +02:00
CXXFLAGS="-fpermissive"
2016-04-29 10:55:29 +02:00
LDFLAGS="-Wl,--no-as-needed"
2016-09-27 16:38:21 +02:00
2016-04-29 10:55:29 +02:00
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
}