From 73cc9da9f5aa9b6439d27f0033b8289a6e6b5d04 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 30 Oct 2014 09:53:59 +0100 Subject: [PATCH] glusterfs: update to 3.5.2. --- srcpkgs/glusterfs/files/glusterd.service | 12 ------- srcpkgs/glusterfs/files/glusterd/run | 2 ++ srcpkgs/glusterfs/files/glusterfsd/run | 2 ++ srcpkgs/glusterfs/template | 41 ++++++++++++++++-------- 4 files changed, 32 insertions(+), 25 deletions(-) delete mode 100644 srcpkgs/glusterfs/files/glusterd.service create mode 100644 srcpkgs/glusterfs/files/glusterd/run create mode 100644 srcpkgs/glusterfs/files/glusterfsd/run diff --git a/srcpkgs/glusterfs/files/glusterd.service b/srcpkgs/glusterfs/files/glusterd.service deleted file mode 100644 index c6e6317098..0000000000 --- a/srcpkgs/glusterfs/files/glusterd.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=Distributed filesystem daemon -After=network.target - -[Service] -Type=forking -PIDFile=/run/glusterd.pid -LimitNOFILE=65536 -ExecStart=/usr/bin/glusterd -p /run/glusterd.pid - -[Install] -WantedBy=multi-user.target diff --git a/srcpkgs/glusterfs/files/glusterd/run b/srcpkgs/glusterfs/files/glusterd/run new file mode 100644 index 0000000000..7f0e6820e6 --- /dev/null +++ b/srcpkgs/glusterfs/files/glusterd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec glusterd -N 2>&1 diff --git a/srcpkgs/glusterfs/files/glusterfsd/run b/srcpkgs/glusterfs/files/glusterfsd/run new file mode 100644 index 0000000000..15dd0bed44 --- /dev/null +++ b/srcpkgs/glusterfs/files/glusterfsd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec glusterfsd -N 2>&1 diff --git a/srcpkgs/glusterfs/template b/srcpkgs/glusterfs/template index 095c3e5e59..c7f5c3ff39 100644 --- a/srcpkgs/glusterfs/template +++ b/srcpkgs/glusterfs/template @@ -1,36 +1,52 @@ # Template file for 'glusterfs' pkgname=glusterfs -version=3.5.1 +version=3.5.2 revision=1 +build_options="systemd" build_style=gnu-configure -configure_args="--sbindir=/usr/bin --with-mountutildir=/usr/bin +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="fuse-devel libxml2-devel libfl-devel libressl-devel readline-devel>=6.3 python" +makedepends="liblvm2app-devel fuse-devel libxml2-devel libfl-devel libressl-devel readline-devel>=6.3" # python is required by gsyncd. depends="python" pycompile_dirs="/usr/libexec/glusterfs/python/syncdaemon" -systemd_services="glusterd.service on" -conf_files=" - /etc/glusterfs/glusterfs-logrotate - /etc/glusterfs/glusterd.vol" -short_desc="Distributed file system capable of scaling to several petabytes" +short_desc="A distributed userland file system - client" maintainer="Juan RP " 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=eeff8399a1b83fc57f79bacccee8360845785bc67f1683bdbaff8d0493f5377b +checksum=ef58b467a60fd6bd0685d4167a45f0860895414285b3908167b264aa63d276c3 pre_configure() { - autoreconf -fi + ./autogen.sh } - post_install() { - vinstall ${FILESDIR}/glusterd.service 644 usr/lib/systemd/system 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}" @@ -40,7 +56,6 @@ glusterfs-devel_package() { vmove "usr/lib/*.so" } } - libglusterfs_package() { short_desc+=" - runtime libraries" pkg_install() {