wok view autoblog/receipt @ rev 25669

Up lapack (3.12.0), less (633), libarchive (3.7.2), liblouis (3.28.0), libmicrohttpd (1.0.1), libpng (1.6.43), libssh (0.10.6), libtasn1 (4.19.0), libtirpc (1.3.4), libvpx (1.14.0), libwebp (1.3.2), logrotate (3.21.0), lua (5.4.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 25 16:11:20 2024 +0000 (12 months ago)
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 }