wok-4.x rev 9422

Fixed smbwebclient.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Mar 30 14:11:43 2011 +0000 (2011-03-30)
parents f018daea012c
children acc4afe2f2e5
files smbwebclient/receipt
line diff
     1.1 --- a/smbwebclient/receipt	Wed Mar 30 20:42:02 2011 +0200
     1.2 +++ b/smbwebclient/receipt	Wed Mar 30 14:11:43 2011 +0000
     1.3 @@ -5,28 +5,25 @@
     1.4  CATEGORY="network"
     1.5  SHORT_DESC="Samba client over the Web."
     1.6  MAINTAINER="pascal.bellard@slitaz.org"
     1.7 +TARBALL="$PACKAGE-$VERSION.php.gz"
     1.8  WEB_SITE="http://$PACKAGE.sourceforge.net/"
     1.9  DEPENDS="php smbclient"
    1.10 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.11  CONFIG_FILES="/etc/samba/smbwebclient.conf"
    1.12 -
    1.13 -# Rules to configure and make the package.
    1.14 -compile_rules()
    1.15 -{
    1.16 -	[ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.php.gz ] ||
    1.17 -		wget $SF_MIRROR/$PACKAGE/$PACKAGE-$VERSION.php.gz -P $SOURCES_REPOSITORY
    1.18 -	if [ ! -d $src ]; then
    1.19 -		mkdir -p $src
    1.20 -		cp $SOURCES_REPOSITORY/$PACKAGE-$VERSION.php.gz $src
    1.21 -		gunzip $src/$PACKAGE-$VERSION.php.gz
    1.22 -	fi
    1.23 -}
    1.24 +COOK_OPT="!unpack !repack_src"
    1.25  
    1.26  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.27  genpkg_rules()
    1.28  {
    1.29 +	if [ ! -d $src ]; then
    1.30 +		mkdir -p $src
    1.31 +		cp $SOURCES_REPOSITORY/$TARBALL $src
    1.32 +		gunzip $src/$TARBALL
    1.33 +	fi
    1.34 +
    1.35  	mkdir -p $fs/usr/share/samba $fs/etc/samba
    1.36  	cp -a $src/. $fs/usr/share/samba
    1.37 -	cp -a stuff/* $fs
    1.38 +	cp -a $stuff/* $fs
    1.39  }
    1.40  
    1.41  post_install()