wok view autoblog/receipt @ rev 21376

updated loqui (0.5.2 -> 0.6.4)
author Hans-G?nter Theisgen
date Mon Apr 22 09:48:23 2019 +0100 (2019-04-22)
parents 970c5ec9a60a
children 6a937d641b10
line source
1 # SliTaz package receipt.
3 PACKAGE="autoblog"
4 VERSIONV1="0.1.31"
5 VERSIONV2="2.5.22" # need php 5.3
6 VERSION="$VERSIONV1"
7 CATEGORY="network"
8 SHORT_DESC="Replicates articles from another blog."
9 MAINTAINER="pascal.bellard@slitaz.org"
10 LICENSE="PublicDomain"
11 TARBALL="$PACKAGE-$VERSION"
12 EXTRA_SOURCE_FILES="vvb.ini"
13 URLV1="https://sebsauvage.net/streisand.me/download.php"
14 URLV2="http://autoblog.kd2.org/source.txt"
15 URL="$URLV1"
16 WEB_SITE="https://sebsauvage.net/streisand.me/"
18 DEPENDS="php"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 [ -s "$SOURCES_REPOSITORY/$TARBALL" ] ||
24 wget -O "$SOURCES_REPOSITORY/$TARBALL" $URL
25 [ -s "$SOURCES_REPOSITORY/vvb.ini" ] ||
26 wget -O "$SOURCES_REPOSITORY/vvb.ini" \
27 https://sebsauvage.net/streisand.me/sebsauvage/vvb.ini
28 mkdir -p $src 2> /dev/null
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/var/www/$PACKAGE
35 cp $SOURCES_REPOSITORY/$TARBALL $fs/var/www/$PACKAGE/index.php
36 cp $SOURCES_REPOSITORY/vvb.ini $fs/var/www/$PACKAGE/
37 dos2unix $fs/var/www/$PACKAGE/*
38 }
40 post_install()
41 {
42 mytz="$(cat "$1/etc/TZ")"
43 [ -n "$mytz" ] && sed -i "s|Europe/Paris|$mytz|" "$1/var/www/$PACKAGE/index.php"
44 chown -R www "$1/var/www/$PACKAGE"
45 [ -z "$quiet" ] && echo -e "\nYou should update /var/www/$PACKAGE/vvb.ini now..."
46 }