wok-current annotate autoblog/receipt @ rev 25725
Patch openssh CVE-2024-6387
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Jul 01 15:09:44 2024 +0000 (7 weeks ago) |
parents | 6a937d641b10 |
children |
rev | line source |
---|---|
pascal@11545 | 1 # SliTaz package receipt. |
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" |
llevrel@18837 | 8 SHORT_DESC="Replicates articles from another blog." |
pascal@11545 | 9 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15379 | 10 LICENSE="PublicDomain" |
pascal@16241 | 11 TARBALL="$PACKAGE-$VERSION" |
pascal@14337 | 12 EXTRA_SOURCE_FILES="vvb.ini" |
pascal@20671 | 13 URLV1="https://sebsauvage.net/streisand.me/download.php" |
pascal@11545 | 14 URLV2="http://autoblog.kd2.org/source.txt" |
pascal@22337 | 15 WGET_URL="$URLV2" |
pascal@20671 | 16 WEB_SITE="https://sebsauvage.net/streisand.me/" |
pascal@11545 | 17 |
pascal@11545 | 18 DEPENDS="php" |
pascal@11545 | 19 |
pascal@24759 | 20 # What is the latest version available today? |
pascal@24759 | 21 current_version() |
pascal@24759 | 22 { |
pascal@24759 | 23 wget -O - $WGET_URL 2>/dev/null | \ |
pascal@24759 | 24 sed '/[0-9]/!d;s| *[^ ]* ||;q' |
pascal@24759 | 25 } |
pascal@24759 | 26 |
pascal@11545 | 27 # Rules to configure and make the package. |
pascal@11545 | 28 compile_rules() |
pascal@11545 | 29 { |
pascal@11545 | 30 [ -s "$SOURCES_REPOSITORY/vvb.ini" ] || |
pascal@11545 | 31 wget -O "$SOURCES_REPOSITORY/vvb.ini" \ |
pascal@20671 | 32 https://sebsauvage.net/streisand.me/sebsauvage/vvb.ini |
pascal@11545 | 33 } |
pascal@11545 | 34 |
al@18667 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@18667 | 36 genpkg_rules() |
pascal@11545 | 37 { |
pascal@11545 | 38 mkdir -p $fs/var/www/$PACKAGE |
llevrel@18837 | 39 cp $SOURCES_REPOSITORY/$TARBALL $fs/var/www/$PACKAGE/index.php |
pascal@11545 | 40 cp $SOURCES_REPOSITORY/vvb.ini $fs/var/www/$PACKAGE/ |
pascal@11545 | 41 dos2unix $fs/var/www/$PACKAGE/* |
pascal@11545 | 42 } |
pascal@11545 | 43 |
pascal@11545 | 44 post_install() |
pascal@11545 | 45 { |
pascal@18730 | 46 mytz="$(cat "$1/etc/TZ")" |
pascal@18730 | 47 [ -n "$mytz" ] && sed -i "s|Europe/Paris|$mytz|" "$1/var/www/$PACKAGE/index.php" |
pascal@18730 | 48 chown -R www "$1/var/www/$PACKAGE" |
pascal@20319 | 49 [ -z "$quiet" ] && echo -e "\nYou should update /var/www/$PACKAGE/vvb.ini now..." |
pascal@11545 | 50 } |