# HG changeset patch # User Pascal Bellard # Date 1312266436 -7200 # Node ID d2589f7a1e5602f8cb3f11bed49efb6e08bcfe53 # Parent ec8e9b8247baee34e79976404dd8b2a210808e49 Add posixovl diff -r ec8e9b8247ba -r d2589f7a1e56 posixovl/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/posixovl/receipt Tue Aug 02 08:27:16 2011 +0200 @@ -0,0 +1,44 @@ +# SliTaz package receipt. + +PACKAGE="posixovl" +VERSION="1.1" +CATEGORY="system-tools" +SHORT_DESC="A modern equivalent of the UMSDOS." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://$PACKAGE.sourceforge.net/" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" + +DEPENDS="fuse attr" +BUILD_DEPENDS="autoconf automake fuse-dev attr-dev" + +# Rules to configure and make the package. +compile_rules() +{ + mv $PACKAGE $src 2> /dev/null + cd $src + 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 + cp $src/mount.posixovl $fs/usr/sbin +} + +# Pre remove and post install commands for Tazpkg. +pre_remove() +{ + sed -i '/^$PACKAGE$/d' $1/etc/filesystems +} + +post_install() +{ + grep -qs ^$PACKAGE$ $1/etc/filesystems || \ + echo "$PACKAGE" >> $1/etc/filesystems +} +