wok-next annotate shaarlo/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 d43bf7aae921
children
rev   line source
pascal@16540 1 # SliTaz package receipt.
pascal@16540 2
pascal@16540 3 PACKAGE="shaarlo"
pascal@16540 4 GITHASH="ac6ef877ce1cbd33e85b3d041715d765a26497b7"
pascal@16540 5 VERSION=${GITHASH:0:7}
pascal@16540 6 CATEGORY="network"
al@21020 7 SHORT_DESC="Unified Shaarlis Rss"
pascal@16540 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16540 9 LICENSE="zlib/libpng"
pascal@16540 10 TARBALL="$PACKAGE-$VERSION.zip"
pascal@16540 11 WEB_SITE="https://github.com/DMeloni/shaarlo"
pascal@16540 12 WGET_URL="$WEB_SITE/archive/$GITHASH.zip"
pascal@16540 13
al@21020 14 genpkg_rules() {
pascal@16540 15 mkdir -p $fs/var/www $fs/etc
pascal@16540 16 cp -a $src $fs/var/www/$PACKAGE
pascal@16544 17 mv $fs/var/www/$PACKAGE/config.php $fs/etc/shaarlo.php
pascal@16544 18 ln -s /etc/shaarlo.php $fs/var/www/$PACKAGE/config.php
pascal@16540 19 mkdir $fs/var/www/$PACKAGE/data
pascal@16540 20 chmod +w $fs/var/www/$PACKAGE/data
al@21020 21 DEPENDS="php"
pascal@16540 22 }
pascal@16540 23
al@21020 24 post_install() {
pascal@18730 25 chown -R www "$1/var/www/$PACKAGE"
al@21020 26 [ -n "$quiet" ] || cat <<EOT
al@21020 27
al@21020 28 .-----------------------------------------.
al@21020 29 | Configure /etc/shaarlo.php and put |
al@21020 30 | /var/www/shaarlo/refresh.php to crontab |
al@21020 31 '-----------------------------------------'
pascal@16540 32 EOT
pascal@16540 33 }