wok-current view posixovl/receipt @ rev 21781

linld: DOS=UMB,LOADHIGH & co support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 14 19:06:44 2019 +0200 (2019-07-14)
parents aaa3fcf79cf3
children ee53899c6189
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 fuse"
16 BUILD_DEPENDS="attr-dev autoconf automake fuse-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mv $PACKAGE $src 2>/dev/null
22 cd $src
23 grep -q 'else if (!S_ISREG' posixovl.c ||
24 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
25 sed -i 's/cb->ll.size/0/' posixovl.c
26 sed -i 's|attr/xattr.h|sys/xattr.h|' posixovl.c configure*
28 sh autogen.sh
29 ./configure \
30 --prefix=/usr \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS &&
33 make
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/sbin
40 mkdir -p $install/usr/share/man/man1
42 cp $src/mount.posixovl $fs/usr/sbin
43 cp $src/posixovl.1 $install/usr/share/man/man1
44 }