# HG changeset patch # User Christopher Rogers # Date 1301494303 0 # Node ID e40d8e48447d3e8cb269f729bcbb9f59ddc410c7 # Parent f018daea012cde71798989cad7996fadaef70a32 Fixed smbwebclient. diff -r f018daea012c -r e40d8e48447d smbwebclient/receipt --- a/smbwebclient/receipt Wed Mar 30 20:42:02 2011 +0200 +++ b/smbwebclient/receipt Wed Mar 30 14:11:43 2011 +0000 @@ -5,28 +5,25 @@ CATEGORY="network" SHORT_DESC="Samba client over the Web." MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.php.gz" WEB_SITE="http://$PACKAGE.sourceforge.net/" DEPENDS="php smbclient" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" CONFIG_FILES="/etc/samba/smbwebclient.conf" - -# Rules to configure and make the package. -compile_rules() -{ - [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.php.gz ] || - wget $SF_MIRROR/$PACKAGE/$PACKAGE-$VERSION.php.gz -P $SOURCES_REPOSITORY - if [ ! -d $src ]; then - mkdir -p $src - cp $SOURCES_REPOSITORY/$PACKAGE-$VERSION.php.gz $src - gunzip $src/$PACKAGE-$VERSION.php.gz - fi -} +COOK_OPT="!unpack !repack_src" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { + if [ ! -d $src ]; then + mkdir -p $src + cp $SOURCES_REPOSITORY/$TARBALL $src + gunzip $src/$TARBALL + fi + mkdir -p $fs/usr/share/samba $fs/etc/samba cp -a $src/. $fs/usr/share/samba - cp -a stuff/* $fs + cp -a $stuff/* $fs } post_install()