wok-6.x view posixovl/receipt @ rev 25519

created recipes for libuv and libuv-dev 1.44.1
author Hans-G?nter Theisgen
date Fri Feb 24 15:35:59 2023 +0100 (20 months ago)
parents ad0bc3efbf37
children
line source
1 # SliTaz package receipt.
3 PACKAGE="posixovl"
4 VERSION="1.3"
5 CATEGORY="system-tools"
6 TAGS="filesystem"
7 SHORT_DESC="FUSE file system that provides POSIX functionality."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://sourceforge.net/projects/posixovl/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="attr fuse2"
16 BUILD_DEPENDS="attr-dev autoconf automake fuse2-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/posixovl-/!d;s|.*posixovl-||;s|.tar.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mv $PACKAGE $src 2>/dev/null
29 cd $src
30 grep -q 'else if (!S_ISREG' posixovl.c ||
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
32 sed -i 's/cb->ll.size/0/' posixovl.c
33 sed -i 's|attr/xattr.h|sys/xattr.h|' posixovl.c configure*
35 sh autogen.sh
36 ./configure \
37 --prefix=/usr \
38 --mandir=/usr/share/man \
39 $CONFIGURE_ARGS &&
40 make
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/sbin
47 mkdir -p $install/usr/share/man/man1
49 cp $src/mount.posixovl $fs/usr/sbin
50 cp $src/posixovl.1 $install/usr/share/man/man1
51 }