wok-next view autoblog/receipt @ rev 20570

More fix libtool; audit: apply patch.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 13 09:28:50 2018 +0300 (2018-04-13)
parents 61b43b7caa89
children 0cbe4b1f2230
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="http://sebsauvage.net/streisand.me/"
13 TARBALL="$PACKAGE-$VERSION"
14 EXTRA_SOURCE_FILES="vvb.ini"
15 URLV1="http://sebsauvage.net/streisand.me/download.php"
16 URLV2="http://autoblog.kd2.org/source.txt"
17 URL="$URLV1"
19 compile_rules() {
20 [ -s "$SRC/$TARBALL" ] ||
21 wget -O "$SRC/$TARBALL" $URL
23 [ -s "$SRC/vvb.ini" ] ||
24 wget -O "$SRC/vvb.ini" http://sebsauvage.net/streisand.me/sebsauvage/vvb.ini
25 mkdir -p $src
27 mkdir -p $install/var/www/$PACKAGE
28 cp $SRC/$TARBALL $install/var/www/$PACKAGE/index.php
29 cp $SRC/vvb.ini $install/var/www/$PACKAGE/
30 dos2unix $install/var/www/$PACKAGE/*
31 chown -R www $install/var/www/$PACKAGE
32 }
34 genpkg_rules() {
35 copy @std
36 DEPENDS="php"
37 }
39 post_install() {
40 mytz="$(cat "$1/etc/TZ")"
41 [ -n "$mytz" ] && sed -i "s|Europe/Paris|$mytz|" "$1/var/www/$PACKAGE/index.php"
42 [ -n "$quiet" ] || echo "You should update /var/www/$PACKAGE/vvb.ini now..."
43 }