wok view moosefs/receipt @ rev 24883
created recipes for loudmouth and loudmouth-dev
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 01 07:38:03 2022 +0100 (2022-04-01) |
parents | 5ea0ce1cecc0 |
children | f07afdedc98a |
line source
1 # SliTaz package receipt.
3 PACKAGE="moosefs"
4 VERSION="3.0.111"
5 CATEGORY="system-tools"
6 SHORT_DESC="Fault tolerant, network distributed file system."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.moosefs.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/moosefs/moosefs/archive/v$VERSION.tar.gz"
14 DEPENDS="fuse2 python zlib"
15 BUILD_DEPENDS="fuse2-dev pkg-config python zlib-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --prefix=/usr \
28 --mandir=/usr/share/man \
29 --sysconfdir=/etc \
30 --localstatedir=/var \
31 $CONFIGURE_ARGS &&
32 make -j 1 &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
41 cp -a $install/etc $fs
42 cp -a $install/var $fs
43 cp -a $install/usr/share/mfscgi $fs/usr/share
44 cp -a $install/usr/sbin $fs/usr
45 cp -a $install/usr/bin $fs/usr
47 sed -i 's|/usr/bin/env bash|/bin/sh|' \
48 $fs/usr/sbin/mfsmetarestore
49 }