wok-6.x view autoblog/receipt @ rev 25375
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 30 08:30:06 2022 +0000 (2022-07-30) |
parents | 6a937d641b10 |
children |
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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $WGET_URL 2>/dev/null | \
24 sed '/[0-9]/!d;s| *[^ ]* ||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 [ -s "$SOURCES_REPOSITORY/vvb.ini" ] ||
31 wget -O "$SOURCES_REPOSITORY/vvb.ini" \
32 https://sebsauvage.net/streisand.me/sebsauvage/vvb.ini
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/var/www/$PACKAGE
39 cp $SOURCES_REPOSITORY/$TARBALL $fs/var/www/$PACKAGE/index.php
40 cp $SOURCES_REPOSITORY/vvb.ini $fs/var/www/$PACKAGE/
41 dos2unix $fs/var/www/$PACKAGE/*
42 }
44 post_install()
45 {
46 mytz="$(cat "$1/etc/TZ")"
47 [ -n "$mytz" ] && sed -i "s|Europe/Paris|$mytz|" "$1/var/www/$PACKAGE/index.php"
48 chown -R www "$1/var/www/$PACKAGE"
49 [ -z "$quiet" ] && echo -e "\nYou should update /var/www/$PACKAGE/vvb.ini now..."
50 }