wok-6.x annotate glusterfs/receipt @ rev 25046

Up glusterfs (10.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 04 12:04:57 2022 +0000 (2022-06-04)
parents 232ba43d30af
children 76aba861a11e
rev   line source
pascal@13230 1 # SliTaz package receipt.
pascal@13230 2
pascal@13230 3 PACKAGE="glusterfs"
pascal@25046 4 VERSION="10.2"
pascal@13230 5 CATEGORY="misc"
pascal@13230 6 SHORT_DESC="Distributed file system."
pascal@13230 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15215 8 LICENSE="GPL2 LGPL3"
pascal@20669 9 WEB_SITE="https://www.gluster.org/"
pascal@13230 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@25045 11 WGET_URL="https://github.com/gluster/glusterfs/archive/refs/tags/v$VERSION.tar.gz"
pascal@13230 12
pascal@13230 13 DEPENDS="python readline mpc-library elfutils openssl"
pascal@25046 14 BUILD_DEPENDS="flex python readline-dev mpc-library elfutils openssl-dev libtirpc-dev liburcu-dev libaio-dev automake"
pascal@13230 15
pascal@24540 16 # What is the latest version available today?
pascal@24540 17 current_version()
pascal@24540 18 {
pascal@24540 19 wget -O - https://github.com/gluster/glusterfs/tags 2>/dev/null | \
pascal@24540 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24540 21 }
pascal@24540 22
pascal@13230 23 # Rules to configure and make the package.
pascal@13230 24 compile_rules()
pascal@13230 25 {
pascal@25046 26 ./autogen.sh
pascal@13230 27 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@13230 28 --libexecdir=/usr/share \
pascal@13230 29 --mandir=/usr/share/man \
pascal@13230 30 --sysconfdir=/etc \
pascal@13230 31 --localstatedir=/var \
pascal@25046 32 --without-tcmalloc \
pascal@25046 33 --disable-linux-io_uring \
pascal@13230 34 $CONFIGURE_ARGS &&
pascal@13230 35 make &&
pascal@22349 36 make -j 1 install
pascal@13230 37 }
pascal@13230 38
pascal@13230 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13230 40 genpkg_rules()
pascal@13230 41 {
pascal@13230 42 mkdir -p $fs/usr/share
erjo@13537 43 cp -a $install/etc $fs
erjo@13537 44 cp -a $install/var $fs
erjo@13537 45 cp -a $install/sbin $fs
erjo@13537 46 cp -a $install/usr/sbin $fs/usr
erjo@13537 47 cp -a $install/usr/lib $fs/usr
erjo@13537 48 cp -a $install/usr/share/glusterfs $fs/usr/share
al@18077 49
erjo@13537 50 # Clean-up
erjo@13537 51 find $fs/usr/lib -name "*.*a" -exec rm -f {} \;
pascal@13230 52 }