wok annotate posixovl/receipt @ rev 25457

Normazile https://sourceforge.net/projects web_sites
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 23 08:28:09 2022 +0000 (2022-09-23)
parents 72f2704d3ae0
children 69e1e705f038
rev   line source
pascal@10913 1 # SliTaz package receipt.
pascal@10913 2
pascal@10913 3 PACKAGE="posixovl"
Hans-G?nter@21695 4 VERSION="1.3"
pascal@10913 5 CATEGORY="system-tools"
Hans-G?nter@21695 6 TAGS="filesystem"
Hans-G?nter@21695 7 SHORT_DESC="FUSE file system that provides POSIX functionality."
pascal@10913 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15375 9 LICENSE="GPL2"
pascal@25457 10 WEB_SITE="https://sourceforge.net/projects/posixovl"
Hans-G?nter@21695 11
pascal@11987 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@10913 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@10913 14
pascal@24766 15 DEPENDS="attr fuse2"
pascal@24766 16 BUILD_DEPENDS="attr-dev autoconf automake fuse2-dev"
pascal@10913 17
pascal@25457 18 # What is the latest version available today?
pascal@24071 19 current_version()
pascal@24071 20 {
pascal@24071 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24071 22 sed '/posixovl-/!d;s|.*posixovl-||;s|.tar.*||;q'
pascal@24071 23 }
pascal@24071 24
pascal@10913 25 # Rules to configure and make the package.
pascal@10913 26 compile_rules()
pascal@10913 27 {
al@17992 28 mv $PACKAGE $src 2>/dev/null
pascal@10913 29 cd $src
pascal@14245 30 grep -q 'else if (!S_ISREG' posixovl.c ||
pascal@14245 31 sed -i 's/if (!S_ISREG/if (S_ISLNK(cb->ll.mode))\n\t\tcb->sb.st_size = strlen(cb->ll.target);\n\telse &/' posixovl.c
pascal@14245 32 sed -i 's/cb->ll.size/0/' posixovl.c
pascal@21489 33 sed -i 's|attr/xattr.h|sys/xattr.h|' posixovl.c configure*
Hans-G?nter@21695 34
pascal@10913 35 sh autogen.sh
Hans-G?nter@21695 36 ./configure \
Hans-G?nter@21695 37 --prefix=/usr \
Hans-G?nter@21695 38 --mandir=/usr/share/man \
Hans-G?nter@21695 39 $CONFIGURE_ARGS &&
pascal@10913 40 make
pascal@10913 41 }
pascal@10913 42
al@17992 43 # Rules to gen a SliTaz package suitable for Tazpkg.
al@17992 44 genpkg_rules()
pascal@10913 45 {
Hans-G?nter@21695 46 mkdir -p $fs/usr/sbin
Hans-G?nter@21695 47 mkdir -p $install/usr/share/man/man1
Hans-G?nter@21695 48
Hans-G?nter@21695 49 cp $src/mount.posixovl $fs/usr/sbin
Hans-G?nter@21695 50 cp $src/posixovl.1 $install/usr/share/man/man1
pascal@10913 51 }