wok annotate httpfs-fuse/receipt @ rev 25512
memtest: 386/1M support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 14 07:20:48 2023 +0000 (21 months ago) |
parents | 72f2704d3ae0 |
children | d3556b8f5c3d |
rev | line source |
---|---|
pascal@1288 | 1 # SliTaz package receipt. |
pascal@1288 | 2 |
pascal@1288 | 3 PACKAGE="httpfs-fuse" |
pascal@1288 | 4 VERSION="2.06.08.26" |
pascal@1288 | 5 CATEGORY="system-tools" |
pascal@1288 | 6 SHORT_DESC="HTTP Filesystem implemented with FUSE." |
pascal@1288 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15600 | 8 LICENSE="GPL2" |
pascal@1288 | 9 SOURCE="httpfs_with_static_binaries" |
pascal@1288 | 10 TARBALL="${SOURCE}_$VERSION.tar.gz" |
pascal@25460 | 11 WEB_SITE="https://httpfs.sourceforge.net/" |
pascal@1288 | 12 WGET_URL="$SF_MIRROR/httpfs/$TARBALL" |
jozee@4937 | 13 TAGS="filesystem" |
pascal@1288 | 14 |
pascal@24766 | 15 DEPENDS="fuse2" |
pascal@24766 | 16 BUILD_DEPENDS="fuse2-dev upx" |
pascal@15600 | 17 |
pascal@24412 | 18 # What is the latest version available today? |
pascal@24412 | 19 current_version() |
pascal@24412 | 20 { |
pascal@24412 | 21 wget -O - https://sourceforge.net/projects/httpfs/files/httpfs/ 2>/dev/null | \ |
pascal@24412 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24412 | 23 sed '/scope="row/!d;s|.*/httpfs/[a-z_]*||;s|/.*||;q' |
pascal@24412 | 24 } |
pascal@24412 | 25 |
pascal@1288 | 26 # Rules to configure and make the package. |
pascal@1288 | 27 compile_rules() |
pascal@1288 | 28 { |
pascal@19232 | 29 patch -p0 < $stuff/httpfs.u |
pascal@19232 | 30 mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/share/boot |
pascal@19237 | 31 # keep uclibc prebuilt. Glibc version is 10x bigger ! |
pascal@19237 | 32 if true; then |
pascal@19238 | 33 install -m 755 static_uclibc/httpfs $DESTDIR/usr/share/boot/httpfs-static |
pascal@19237 | 34 upx -d $DESTDIR/usr/share/boot/httpfs-static |
pascal@19237 | 35 else |
pascal@19237 | 36 sed 's/lpthread/& -ldl -lrt/' static_uclibc/make_httpfs | sh |
pascal@19237 | 37 cp -a httpfs $DESTDIR/usr/share/boot/httpfs-static |
pascal@19237 | 38 fi |
pascal@19235 | 39 . ./make_httpfs && cp -a httpfs $DESTDIR/usr/bin |
pascal@19237 | 40 install -m 755 static_uclibc/fusermount $DESTDIR/usr/share/boot/fusermount-static |
pascal@19236 | 41 upx -d $DESTDIR/usr/share/boot/fusermount-static |
pascal@19237 | 42 chmod 4755 $DESTDIR/usr/share/boot/fusermount-static |
pascal@19238 | 43 chmod 555 $DESTDIR/usr/share/boot/httpfs-static |
pascal@1288 | 44 } |
pascal@1288 | 45 |
pascal@1288 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1288 | 47 genpkg_rules() |
pascal@1288 | 48 { |
slaxemulator@9033 | 49 mkdir -p $fs/usr |
pascal@15600 | 50 cp -a $install/usr/bin $fs/usr |
pascal@1288 | 51 } |