wok-current annotate moosefs/receipt @ rev 24110
rdesktop: add debian patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 28 10:48:56 2021 +0000 (2021-09-28) |
parents | 2a0c2f534fd3 |
children | 72f2704d3ae0 |
rev | line source |
---|---|
pascal@11224 | 1 # SliTaz package receipt. |
pascal@11224 | 2 |
pascal@11224 | 3 PACKAGE="moosefs" |
Hans-G?nter@23187 | 4 VERSION="3.0.111" |
pascal@11224 | 5 CATEGORY="system-tools" |
pascal@11224 | 6 SHORT_DESC="Fault tolerant, network distributed file system." |
pascal@11224 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15583 | 8 LICENSE="GPL3" |
Hans-G?nter@21469 | 9 WEB_SITE="https://www.moosefs.com/" |
Hans-G?nter@21469 | 10 |
pascal@20194 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20194 | 12 WGET_URL="https://github.com/moosefs/moosefs/archive/v$VERSION.tar.gz" |
pascal@11224 | 13 |
Hans-G?nter@21469 | 14 DEPENDS="fuse python zlib" |
Hans-G?nter@21469 | 15 BUILD_DEPENDS="fuse-dev pkg-config python zlib-dev" |
pascal@11224 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@11224 | 23 # Rules to configure and make the package. |
pascal@11224 | 24 compile_rules() |
pascal@11224 | 25 { |
Hans-G?nter@21469 | 26 ./configure \ |
Hans-G?nter@21469 | 27 --prefix=/usr \ |
Hans-G?nter@21469 | 28 --mandir=/usr/share/man \ |
Hans-G?nter@21469 | 29 --sysconfdir=/etc \ |
Hans-G?nter@21469 | 30 --localstatedir=/var \ |
Hans-G?nter@21469 | 31 $CONFIGURE_ARGS && |
Hans-G?nter@21469 | 32 make -j 1 && |
pascal@11224 | 33 make DESTDIR=$DESTDIR install |
pascal@11224 | 34 } |
pascal@11224 | 35 |
pascal@11224 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11224 | 37 genpkg_rules() |
pascal@11224 | 38 { |
pascal@11224 | 39 mkdir -p $fs/usr/share |
Hans-G?nter@21469 | 40 |
Hans-G?nter@21469 | 41 cp -a $install/etc $fs |
Hans-G?nter@21469 | 42 cp -a $install/var $fs |
Hans-G?nter@21469 | 43 cp -a $install/usr/share/mfscgi $fs/usr/share |
Hans-G?nter@21469 | 44 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@21469 | 45 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21469 | 46 |
Hans-G?nter@23187 | 47 sed -i 's|/usr/bin/env bash|/bin/sh|' \ |
Hans-G?nter@23187 | 48 $fs/usr/sbin/mfsmetarestore |
pascal@11224 | 49 } |