wok-next view autoblog/receipt @ rev 21153

Small updates.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 31 16:45:41 2019 +0200 (2019-01-31)
parents 262dccc5e3ed
children
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="https://sebsauvage.net/streisand.me/"
12 HOST_ARCH="any"
14 TARBALL="$PACKAGE-$VERSION"
15 EXTRA_SOURCE_FILES="vvb.ini"
16 URLV1="https://sebsauvage.net/streisand.me/download.php"
17 URLV2="http://autoblog.kd2.org/source.txt"
18 URL="$URLV1"
20 compile_rules() {
21 [ -s "$SRC/$TARBALL" ] ||
22 wget -O "$SRC/$TARBALL" $URL
24 [ -s "$SRC/vvb.ini" ] ||
25 wget -O "$SRC/vvb.ini" https://sebsauvage.net/streisand.me/sebsauvage/vvb.ini
26 mkdir -p $src
28 mkdir -p $install/var/www/$PACKAGE
29 cp $SRC/$TARBALL $install/var/www/$PACKAGE/index.php
30 cp $SRC/vvb.ini $install/var/www/$PACKAGE/
31 dos2unix $install/var/www/$PACKAGE/*
32 chown -R www $install/var/www/$PACKAGE
33 }
35 genpkg_rules() {
36 copy @std
37 DEPENDS="php"
38 }
40 post_install() {
41 mytz="$(cat "$1/etc/TZ")"
42 [ -n "$mytz" ] && sed -i "s|Europe/Paris|$mytz|" "$1/var/www/$PACKAGE/index.php"
43 [ -n "$quiet" ] || echo "You should update /var/www/$PACKAGE/vvb.ini now..."
44 }