wok-next annotate autoblog/receipt @ rev 18924

glibc: fix build (thanks az_ua)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Feb 25 14:47:17 2016 +0200 (2016-02-25)
parents 9e01bc6321ea
children 42d9d6d83956
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"
llevrel@18837 8 SHORT_DESC="Replicates articles from another blog."
pascal@11545 9 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15379 10 LICENSE="PublicDomain"
pascal@16241 11 TARBALL="$PACKAGE-$VERSION"
pascal@14337 12 EXTRA_SOURCE_FILES="vvb.ini"
pascal@11545 13 URLV1="http://sebsauvage.net/streisand.me/download.php"
pascal@11545 14 URLV2="http://autoblog.kd2.org/source.txt"
pascal@11545 15 URL="$URLV1"
pascal@11545 16 WEB_SITE="http://sebsauvage.net/streisand.me/"
pascal@11545 17
pascal@11545 18 DEPENDS="php"
pascal@11545 19
pascal@11545 20 # Rules to configure and make the package.
pascal@11545 21 compile_rules()
pascal@11545 22 {
pascal@14337 23 [ -s "$SOURCES_REPOSITORY/$TARBALL" ] ||
pascal@14337 24 wget -O "$SOURCES_REPOSITORY/$TARBALL" $URL
pascal@11545 25 [ -s "$SOURCES_REPOSITORY/vvb.ini" ] ||
pascal@11545 26 wget -O "$SOURCES_REPOSITORY/vvb.ini" \
pascal@11545 27 http://sebsauvage.net/streisand.me/sebsauvage/vvb.ini
pascal@11545 28 mkdir -p $src 2> /dev/null
pascal@11545 29 }
pascal@11545 30
al@18667 31 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18667 32 genpkg_rules()
pascal@11545 33 {
pascal@11545 34 mkdir -p $fs/var/www/$PACKAGE
llevrel@18837 35 cp $SOURCES_REPOSITORY/$TARBALL $fs/var/www/$PACKAGE/index.php
pascal@11545 36 cp $SOURCES_REPOSITORY/vvb.ini $fs/var/www/$PACKAGE/
pascal@11545 37 dos2unix $fs/var/www/$PACKAGE/*
pascal@11545 38 }
pascal@11545 39
pascal@11545 40 post_install()
pascal@11545 41 {
pascal@18730 42 mytz="$(cat "$1/etc/TZ")"
pascal@18730 43 [ -n "$mytz" ] && sed -i "s|Europe/Paris|$mytz|" "$1/var/www/$PACKAGE/index.php"
pascal@18730 44 chown -R www "$1/var/www/$PACKAGE"
al@18667 45 [ -z "$quiet" ] && echo "You should update /var/www/$PACKAGE/vvb.ini now..."
pascal@11545 46 }