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
|
2014-03-31 17:38:27 +02:00
|
|
|
revision=1
|
2014-10-30 09:53:59 +01:00
|
|
|
build_options="systemd"
|
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
|
|
|
|
--sbindir=/usr/sbin --with-mountutildir=/usr/sbin
|
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"
|
2014-10-30 09:53:59 +01:00
|
|
|
makedepends="liblvm2app-devel fuse-devel libxml2-devel libfl-devel libressl-devel readline-devel>=6.3"
|
2014-01-01 16:10:11 +01:00
|
|
|
# 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"
|
2013-11-05 11:02:43 +01:00
|
|
|
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"
|
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
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall ${wrksrc}/extras/systemd/glusterd.service 644 usr/lib/systemd/system
|
|
|
|
fi
|
|
|
|
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
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
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.*"
|
|
|
|
}
|
|
|
|
}
|