wok-tiny diff posixovl/receipt @ rev 127

Update config_form (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 13 00:04:27 2017 +0100 (2017-02-13)
parents
children 1e55ea7da8de
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/posixovl/receipt	Mon Feb 13 00:04:27 2017 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="posixovl"
     1.7 +VERSION="1.2"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="FUSE file system that provides POSIX functionality"
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.13 +WEB_SITE="http://$PACKAGE.sourceforge.net/"
    1.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.15 +[ -n "$TARGET" ] || TARGET="i486"
    1.16 +TAGS="filesystem"
    1.17 +
    1.18 +DEPENDS="fuse librt libdl libpthread"
    1.19 +BUILD_DEPENDS="uclibc-cross-compiler-$TARGET pkg-config autoconf automake \
    1.20 +fuse-dev attr-dev"
    1.21 +
    1.22 +# Rules to configure and make the package.
    1.23 +compile_rules()
    1.24 +{
    1.25 +	grep -q 'else if (!S_ISREG' posixovl.c ||
    1.26 +	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
    1.27 +	sed -i 's/cb->ll.size/0/;s/strlcpy/x&/' posixovl.c
    1.28 +	[ -d $WOK/fuse/taz ] || cook fuse
    1.29 +	ln -s $WOK/fuse/taz/*/fs/usr/lib/* /usr/share/uclibc-cross-compiler-$TARGET/lib/ 2> /dev/null
    1.30 +	ln -s /usr/include/attr /usr/share/uclibc-cross-compiler-$TARGET/include/ 2> /dev/null
    1.31 +	sh autogen.sh
    1.32 +	./configure --prefix=/usr \
    1.33 +		--host=$TARGET-pc-linux-gnu \
    1.34 +		--mandir=/usr/share/man \
    1.35 +		CC=uclibc-$TARGET-cc &&
    1.36 +	make
    1.37 +}
    1.38 +
    1.39 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.40 +genpkg_rules()
    1.41 +{
    1.42 +	mkdir -p $fs/usr/sbin
    1.43 +	cp $src/mount.posixovl $fs/usr/sbin 
    1.44 +}