wok-tiny view posixovl/receipt @ rev 183

linux: fix bundle.S
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 26 17:09:38 2023 +0000 (7 months ago)
parents a10bae21f602
children
line source
1 # SliTaz package receipt.
3 PACKAGE="posixovl"
4 VERSION="1.2"
5 CATEGORY="system-tools"
6 GROUP="filesystem"
7 SHORT_DESC="FUSE file system that provides POSIX functionality"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WEB_SITE="http://$PACKAGE.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 [ -n "$TARGET" ] || TARGET="i486"
14 TAGS="filesystem"
16 DEPENDS="fuse librt libdl libpthread"
17 BUILD_DEPENDS="uclibc-cross-compiler-$TARGET pkg-config autoconf automake \
18 fuse-dev attr-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
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/;s/strlcpy/x&/' posixovl.c
26 [ -d $WOK/fuse/taz ] || cook fuse
27 ln -s $WOK/fuse/taz/*/fs/usr/lib/* /usr/share/uclibc-cross-compiler-$TARGET/lib/ 2> /dev/null
28 ln -s /usr/include/attr /usr/share/uclibc-cross-compiler-$TARGET/include/ 2> /dev/null
29 sh autogen.sh
30 ./configure --prefix=/usr \
31 --host=$TARGET-pc-linux-gnu \
32 --mandir=/usr/share/man \
33 CC=uclibc-$TARGET-cc &&
34 make
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/sbin
41 cp $src/mount.posixovl $fs/usr/sbin
42 }