# SliTaz package receipt. PACKAGE="posixovl" VERSION="1.3" CATEGORY="system-tools" TAGS="filesystem" SHORT_DESC="FUSE file system that provides POSIX functionality." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://sourceforge.net/projects/posixovl/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="attr fuse2" BUILD_DEPENDS="attr-dev autoconf automake fuse2-dev" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed '/posixovl-/!d;s|.*posixovl-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { mv $PACKAGE $src 2>/dev/null cd $src grep -q 'else if (!S_ISREG' posixovl.c || 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 sed -i 's/cb->ll.size/0/' posixovl.c sed -i 's|attr/xattr.h|sys/xattr.h|' posixovl.c configure* sh autogen.sh ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/sbin mkdir -p $install/usr/share/man/man1 cp $src/mount.posixovl $fs/usr/sbin cp $src/posixovl.1 $install/usr/share/man/man1 }