wok-stable diff autoblog/receipt @ rev 11901

emacs-pkg-vala-mode: remove TARBALL
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 29 18:51:21 2012 +0100 (2012-02-29)
parents
children 8262bf9a3072
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/autoblog/receipt	Wed Feb 29 18:51:21 2012 +0100
     1.3 @@ -0,0 +1,44 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="autoblog"
     1.7 +VERSIONV1="0.1.31"
     1.8 +VERSIONV2="2.5.22"	# need php 5.3
     1.9 +VERSION="$VERSIONV1"
    1.10 +CATEGORY="network"
    1.11 +SHORT_DESC="replicates articles from another blog."
    1.12 +MAINTAINER="pascal.bellard@slitaz.org"
    1.13 +_TARBALL="$PACKAGE-$VERSION.php"
    1.14 +URLV1="http://sebsauvage.net/streisand.me/download.php"
    1.15 +URLV2="http://autoblog.kd2.org/source.txt"
    1.16 +URL="$URLV1"
    1.17 +WEB_SITE="http://sebsauvage.net/streisand.me/"
    1.18 +
    1.19 +DEPENDS="php"
    1.20 +
    1.21 +# Rules to configure and make the package.
    1.22 +compile_rules()
    1.23 +{
    1.24 +	[ -s "$SOURCES_REPOSITORY/$_TARBALL" ] ||
    1.25 +		wget -O "$SOURCES_REPOSITORY/$_TARBALL" $URL
    1.26 +	[ -s "$SOURCES_REPOSITORY/vvb.ini" ] ||
    1.27 +		wget -O "$SOURCES_REPOSITORY/vvb.ini" \
    1.28 +			http://sebsauvage.net/streisand.me/sebsauvage/vvb.ini
    1.29 +	mkdir -p $src 2> /dev/null
    1.30 +}
    1.31 +
    1.32 +# Rules to gen a SliTaz package suitable for Tazpkg.   
    1.33 +genpkg_rules()                                      
    1.34 +{
    1.35 +	mkdir -p $fs/var/www/$PACKAGE
    1.36 +	cp $SOURCES_REPOSITORY/$_TARBALL $fs/var/www/$PACKAGE/index.php
    1.37 +	cp $SOURCES_REPOSITORY/vvb.ini $fs/var/www/$PACKAGE/
    1.38 +	dos2unix $fs/var/www/$PACKAGE/*
    1.39 +}
    1.40 +
    1.41 +post_install()
    1.42 +{
    1.43 +	mytz="$(cat $1/etc/TZ)"
    1.44 +	[ -n "$mytz" ] && sed  -i "s|Europe/Paris|$mytz|" $1/var/www/$PACKAGE/index.php
    1.45 +	chown -R www $1/var/www/$PACKAGE
    1.46 +	echo "You should update /var/www/$PACKAGE/vvb.ini now ..."
    1.47 +}