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