wok view autoblog/receipt @ rev 24643

updated hg-git (0.8.13 -> 0.10.4)
author Hans-G?nter Theisgen
date Wed Mar 09 17:41:22 2022 +0100 (2022-03-09)
parents 6e8b1bcb30e2
children b01314c762e9
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 WGET_URL="$URLV2"
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/vvb.ini" ] ||
24 wget -O "$SOURCES_REPOSITORY/vvb.ini" \
25 https://sebsauvage.net/streisand.me/sebsauvage/vvb.ini
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/var/www/$PACKAGE
32 cp $SOURCES_REPOSITORY/$TARBALL $fs/var/www/$PACKAGE/index.php
33 cp $SOURCES_REPOSITORY/vvb.ini $fs/var/www/$PACKAGE/
34 dos2unix $fs/var/www/$PACKAGE/*
35 }
37 post_install()
38 {
39 mytz="$(cat "$1/etc/TZ")"
40 [ -n "$mytz" ] && sed -i "s|Europe/Paris|$mytz|" "$1/var/www/$PACKAGE/index.php"
41 chown -R www "$1/var/www/$PACKAGE"
42 [ -z "$quiet" ] && echo -e "\nYou should update /var/www/$PACKAGE/vvb.ini now..."
43 }