wok-current view autoblog/receipt @ rev 13011

iproute2: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 06 21:20:57 2012 +0200 (2012-06-06)
parents
children b2a632fc9587
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 URLV1="http://sebsauvage.net/streisand.me/download.php"
12 URLV2="http://autoblog.kd2.org/source.txt"
13 URL="$URLV1"
14 WEB_SITE="http://sebsauvage.net/streisand.me/"
16 DEPENDS="php"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 [ -s "$SOURCES_REPOSITORY/$_TARBALL" ] ||
22 wget -O "$SOURCES_REPOSITORY/$_TARBALL" $URL
23 [ -s "$SOURCES_REPOSITORY/vvb.ini" ] ||
24 wget -O "$SOURCES_REPOSITORY/vvb.ini" \
25 http://sebsauvage.net/streisand.me/sebsauvage/vvb.ini
26 mkdir -p $src 2> /dev/null
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/var/www/$PACKAGE
33 cp $SOURCES_REPOSITORY/$_TARBALL $fs/var/www/$PACKAGE/index.php
34 cp $SOURCES_REPOSITORY/vvb.ini $fs/var/www/$PACKAGE/
35 dos2unix $fs/var/www/$PACKAGE/*
36 }
38 post_install()
39 {
40 mytz="$(cat $1/etc/TZ)"
41 [ -n "$mytz" ] && sed -i "s|Europe/Paris|$mytz|" $1/var/www/$PACKAGE/index.php
42 chown -R www $1/var/www/$PACKAGE
43 echo "You should update /var/www/$PACKAGE/vvb.ini now ..."
44 }