wok annotate autoblog/receipt @ rev 14835

xfce4-session: remove wrong trigger
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 17 15:47:34 2013 +0200 (2013-07-17)
parents d52e76bdb48f
children 2a5cc8208d36
rev   line source
pascal@11545 1 # SliTaz package receipt.
pascal@11545 2
pascal@11545 3 PACKAGE="autoblog"
pascal@11545 4 VERSIONV1="0.1.31"
pascal@11545 5 VERSIONV2="2.5.22" # need php 5.3
pascal@11545 6 VERSION="$VERSIONV1"
pascal@11545 7 CATEGORY="network"
pascal@11545 8 SHORT_DESC="replicates articles from another blog."
pascal@11545 9 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14337 10 TARBALL="$PACKAGE-$VERSION.php"
pascal@14337 11 EXTRA_SOURCE_FILES="vvb.ini"
pascal@11545 12 URLV1="http://sebsauvage.net/streisand.me/download.php"
pascal@11545 13 URLV2="http://autoblog.kd2.org/source.txt"
pascal@11545 14 URL="$URLV1"
pascal@11545 15 WEB_SITE="http://sebsauvage.net/streisand.me/"
pascal@11545 16
pascal@11545 17 DEPENDS="php"
pascal@11545 18
pascal@11545 19 # Rules to configure and make the package.
pascal@11545 20 compile_rules()
pascal@11545 21 {
pascal@14337 22 [ -s "$SOURCES_REPOSITORY/$TARBALL" ] ||
pascal@14337 23 wget -O "$SOURCES_REPOSITORY/$TARBALL" $URL
pascal@11545 24 [ -s "$SOURCES_REPOSITORY/vvb.ini" ] ||
pascal@11545 25 wget -O "$SOURCES_REPOSITORY/vvb.ini" \
pascal@11545 26 http://sebsauvage.net/streisand.me/sebsauvage/vvb.ini
pascal@11545 27 mkdir -p $src 2> /dev/null
pascal@11545 28 }
pascal@11545 29
pascal@11545 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11545 31 genpkg_rules()
pascal@11545 32 {
pascal@11545 33 mkdir -p $fs/var/www/$PACKAGE
pascal@11545 34 cp $SOURCES_REPOSITORY/$_TARBALL $fs/var/www/$PACKAGE/index.php
pascal@11545 35 cp $SOURCES_REPOSITORY/vvb.ini $fs/var/www/$PACKAGE/
pascal@11545 36 dos2unix $fs/var/www/$PACKAGE/*
pascal@11545 37 }
pascal@11545 38
pascal@11545 39 post_install()
pascal@11545 40 {
pascal@11545 41 mytz="$(cat $1/etc/TZ)"
pascal@11545 42 [ -n "$mytz" ] && sed -i "s|Europe/Paris|$mytz|" $1/var/www/$PACKAGE/index.php
pascal@11545 43 chown -R www $1/var/www/$PACKAGE
pascal@11545 44 echo "You should update /var/www/$PACKAGE/vvb.ini now ..."
pascal@11545 45 }