wok-next annotate autoblog/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 262dccc5e3ed |
children |
rev | line source |
---|---|
al@20461 | 1 # SliTaz package receipt v2. |
pascal@11545 | 2 |
pascal@11545 | 3 PACKAGE="autoblog" |
pascal@11545 | 4 VERSIONV1="0.1.31" |
pascal@11545 | 5 VERSIONV2="2.5.22" # need php 5.3 |
pascal@11545 | 6 VERSION="$VERSIONV1" |
pascal@11545 | 7 CATEGORY="network" |
al@20461 | 8 SHORT_DESC="Replicates articles from another blog" |
pascal@11545 | 9 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15379 | 10 LICENSE="PublicDomain" |
al@21123 | 11 WEB_SITE="https://sebsauvage.net/streisand.me/" |
al@21057 | 12 HOST_ARCH="any" |
al@20461 | 13 |
pascal@16241 | 14 TARBALL="$PACKAGE-$VERSION" |
pascal@14337 | 15 EXTRA_SOURCE_FILES="vvb.ini" |
al@21123 | 16 URLV1="https://sebsauvage.net/streisand.me/download.php" |
pascal@11545 | 17 URLV2="http://autoblog.kd2.org/source.txt" |
pascal@11545 | 18 URL="$URLV1" |
pascal@11545 | 19 |
al@20461 | 20 compile_rules() { |
al@20461 | 21 [ -s "$SRC/$TARBALL" ] || |
al@20461 | 22 wget -O "$SRC/$TARBALL" $URL |
pascal@11545 | 23 |
al@20461 | 24 [ -s "$SRC/vvb.ini" ] || |
pascal@21142 | 25 wget -O "$SRC/vvb.ini" https://sebsauvage.net/streisand.me/sebsauvage/vvb.ini |
al@20461 | 26 mkdir -p $src |
al@20461 | 27 |
al@20461 | 28 mkdir -p $install/var/www/$PACKAGE |
al@20461 | 29 cp $SRC/$TARBALL $install/var/www/$PACKAGE/index.php |
al@20461 | 30 cp $SRC/vvb.ini $install/var/www/$PACKAGE/ |
al@20461 | 31 dos2unix $install/var/www/$PACKAGE/* |
al@20461 | 32 chown -R www $install/var/www/$PACKAGE |
pascal@11545 | 33 } |
pascal@11545 | 34 |
al@20461 | 35 genpkg_rules() { |
al@20461 | 36 copy @std |
al@20461 | 37 DEPENDS="php" |
pascal@11545 | 38 } |
pascal@11545 | 39 |
al@20461 | 40 post_install() { |
pascal@18730 | 41 mytz="$(cat "$1/etc/TZ")" |
pascal@18730 | 42 [ -n "$mytz" ] && sed -i "s|Europe/Paris|$mytz|" "$1/var/www/$PACKAGE/index.php" |
al@20461 | 43 [ -n "$quiet" ] || echo "You should update /var/www/$PACKAGE/vvb.ini now..." |
pascal@11545 | 44 } |