void-packages/srcpkgs/glusterfs/template

61 lines
1.7 KiB
Bash
Raw Normal View History

2013-11-05 11:02:43 +01:00
# Template file for 'glusterfs'
pkgname=glusterfs
2014-10-30 09:53:59 +01:00
version=3.5.2
2015-08-07 07:39:27 +02:00
revision=8
2013-11-05 11:02:43 +01:00
build_style=gnu-configure
2014-10-30 09:53:59 +01:00
configure_args="--disable-glupy --enable-crypt-xlator
2015-06-02 11:50:36 +02:00
--sbindir=/usr/bin --with-mountutildir=/usr/bin
2013-11-05 11:02:43 +01:00
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 readline-devel"
# python is required by gsyncd.
depends="python"
pycompile_dirs="/usr/libexec/glusterfs/python/syncdaemon"
2014-10-30 09:53:59 +01:00
short_desc="A distributed userland file system - client"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2013-11-05 11:02:43 +01:00
license="GPL-2, LGPL-3"
homepage="http://www.gluster.org/"
distfiles="http://download.gluster.org/pub/gluster/glusterfs/${version%.*}/${version}/${pkgname}-${version}.tar.gz"
2014-10-30 09:53:59 +01:00
checksum=ef58b467a60fd6bd0685d4167a45f0860895414285b3908167b264aa63d276c3
2013-11-05 11:02:43 +01:00
pre_configure() {
2014-10-30 09:53:59 +01:00
./autogen.sh
2013-11-05 11:02:43 +01:00
}
post_install() {
rm -rf ${DESTDIR}/var
2014-10-30 09:53:59 +01:00
vsv glusterfsd
2013-11-05 11:02:43 +01:00
}
2014-10-30 09:53:59 +01:00
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
2015-06-02 11:50:36 +02:00
vmove usr/bin/glfsheal
vmove usr/bin/gluster
vmove usr/bin/glusterd
2014-10-30 09:53:59 +01:00
vmove usr/share/man/man8/gluster.8
vmove usr/share/man/man8/glusterd.8
vsv glusterd
}
}
2013-11-05 11:02:43 +01:00
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.*"
}
}