SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "glusterfs"

# SliTaz package receipt.

PACKAGE="glusterfs"
VERSION="10.2"
CATEGORY="misc"
SHORT_DESC="Distributed file system."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2 LGPL3"
WEB_SITE="https://www.gluster.org/"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/gluster/glusterfs/archive/refs/tags/v$VERSION.tar.gz"

DEPENDS="python readline mpc-library elfutils openssl"
BUILD_DEPENDS="flex python readline-dev mpc-library elfutils openssl-dev \
curl-dev libtirpc-dev liburcu-dev libaio-dev automake"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/gluster/glusterfs/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./autogen.sh
    ./configure --prefix=/usr --infodir=/usr/share/info \
        --libexecdir=/usr/share \
        --mandir=/usr/share/man \
        --sysconfdir=/etc \
        --localstatedir=/var \
        --without-tcmalloc \
        --disable-linux-io_uring \
        $CONFIGURE_ARGS &&
    make &&
    make -j 1 install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share
    cp -a $install/etc $fs
    cp -a $install/var $fs
    cp -a $install/sbin $fs
    cp -a $install/usr/sbin $fs/usr
    cp -a $install/usr/lib $fs/usr
    cp -a $install/usr/share/glusterfs $fs/usr/share

    # Clean-up
    find $fs/usr/lib -name "*.*a" -exec rm -f {} \;
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)