wok-current view autoblog/receipt @ rev 15340
ibus: install im-ibus.la
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 29 11:30:44 2013 +0000 (2013-09-29) |
parents | d52e76bdb48f |
children | 2a5cc8208d36 |
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 TARBALL="$PACKAGE-$VERSION.php"
11 EXTRA_SOURCE_FILES="vvb.ini"
12 URLV1="http://sebsauvage.net/streisand.me/download.php"
13 URLV2="http://autoblog.kd2.org/source.txt"
14 URL="$URLV1"
15 WEB_SITE="http://sebsauvage.net/streisand.me/"
17 DEPENDS="php"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 [ -s "$SOURCES_REPOSITORY/$TARBALL" ] ||
23 wget -O "$SOURCES_REPOSITORY/$TARBALL" $URL
24 [ -s "$SOURCES_REPOSITORY/vvb.ini" ] ||
25 wget -O "$SOURCES_REPOSITORY/vvb.ini" \
26 http://sebsauvage.net/streisand.me/sebsauvage/vvb.ini
27 mkdir -p $src 2> /dev/null
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/var/www/$PACKAGE
34 cp $SOURCES_REPOSITORY/$_TARBALL $fs/var/www/$PACKAGE/index.php
35 cp $SOURCES_REPOSITORY/vvb.ini $fs/var/www/$PACKAGE/
36 dos2unix $fs/var/www/$PACKAGE/*
37 }
39 post_install()
40 {
41 mytz="$(cat $1/etc/TZ)"
42 [ -n "$mytz" ] && sed -i "s|Europe/Paris|$mytz|" $1/var/www/$PACKAGE/index.php
43 chown -R www $1/var/www/$PACKAGE
44 echo "You should update /var/www/$PACKAGE/vvb.ini now ..."
45 }