wok rev 10913

Add posixovl
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 02 08:27:16 2011 +0200 (2011-08-02)
parents ec8e9b8247ba
children c457c027baec
files posixovl/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/posixovl/receipt	Tue Aug 02 08:27:16 2011 +0200
     1.3 @@ -0,0 +1,44 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="posixovl"
     1.7 +VERSION="1.1"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="A modern equivalent of the UMSDOS."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.12 +WEB_SITE="http://$PACKAGE.sourceforge.net/"
    1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.14 +
    1.15 +DEPENDS="fuse attr"
    1.16 +BUILD_DEPENDS="autoconf automake fuse-dev attr-dev"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	mv $PACKAGE $src 2> /dev/null
    1.22 +	cd $src
    1.23 +	sh autogen.sh
    1.24 +	./configure --prefix=/usr --mandir=/usr/share/man \
    1.25 +	$CONFIGURE_ARGS &&
    1.26 +	make
    1.27 +}
    1.28 +
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.   
    1.30 +genpkg_rules()                                      
    1.31 +{
    1.32 +	mkdir -p $fs/usr/sbin
    1.33 +	cp $src/mount.posixovl $fs/usr/sbin 
    1.34 +}
    1.35 +
    1.36 +# Pre remove and post install commands for Tazpkg.
    1.37 +pre_remove()
    1.38 +{
    1.39 +        sed -i '/^$PACKAGE$/d' $1/etc/filesystems
    1.40 +}
    1.41 +
    1.42 +post_install()
    1.43 +{
    1.44 +        grep -qs ^$PACKAGE$ $1/etc/filesystems || \
    1.45 +                echo "$PACKAGE" >> $1/etc/filesystems
    1.46 +}
    1.47 +