wok-current view 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
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 }