64 lines
1.9 KiB
Text
64 lines
1.9 KiB
Text
# Template file for 'glusterfs'
|
|
pkgname=glusterfs
|
|
version=3.5.2
|
|
revision=2
|
|
build_options="systemd"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-glupy --enable-crypt-xlator
|
|
--sbindir=/usr/sbin --with-mountutildir=/usr/sbin
|
|
ac_cv_file__etc_debian_version=no ac_cv_file__etc_SuSE_release=no
|
|
ac_cv_file__etc_redhat_release=no"
|
|
hostmakedepends="pkg-config python flex automake libtool"
|
|
makedepends="liblvm2app-devel fuse-devel libxml2-devel libfl-devel libressl-devel>=2.1.2 readline-devel>=6.3"
|
|
# python is required by gsyncd.
|
|
depends="python"
|
|
pycompile_dirs="/usr/libexec/glusterfs/python/syncdaemon"
|
|
short_desc="A distributed userland file system - client"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="GPL-2, LGPL-3"
|
|
homepage="http://www.gluster.org/"
|
|
distfiles="http://download.gluster.org/pub/gluster/glusterfs/${version%.*}/${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=ef58b467a60fd6bd0685d4167a45f0860895414285b3908167b264aa63d276c3
|
|
|
|
pre_configure() {
|
|
./autogen.sh
|
|
}
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/var
|
|
if [ "$build_option_systemd" ]; then
|
|
vinstall ${wrksrc}/extras/systemd/glusterd.service 644 usr/lib/systemd/system
|
|
fi
|
|
vsv glusterfsd
|
|
}
|
|
|
|
glusterfs-server_package() {
|
|
short_desc="A distributed userland file system - server"
|
|
depends="glusterfs-${version}_${revision}"
|
|
conf_files="
|
|
/etc/glusterfs/glusterfs-logrotate
|
|
/etc/glusterfs/glusterd.vol"
|
|
pkg_install() {
|
|
vmove etc/glusterfs
|
|
vmove usr/sbin/glfsheal
|
|
vmove usr/sbin/gluster
|
|
vmove usr/sbin/glusterd
|
|
vmove usr/share/man/man8/gluster.8
|
|
vmove usr/share/man/man8/glusterd.8
|
|
vsv glusterd
|
|
}
|
|
}
|
|
glusterfs-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libglusterfs>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
libglusterfs_package() {
|
|
short_desc+=" - runtime libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|