wok-tiny view posixovl/receipt @ rev 176

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