wok annotate shaarlo/receipt @ rev 22829

nqc obfsproxy shiki-colors* trickle vmware-view-open-client: normalize $VERSION
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 08 11:00:21 2020 +0100 (2020-02-08)
parents 9e01bc6321ea
children 5ea0ce1cecc0
rev   line source
pascal@16540 1 # SliTaz package receipt.
pascal@16540 2
pascal@16540 3 PACKAGE="shaarlo"
Hans-G?nter@21904 4 #GITHASH="ac6ef877ce1cbd33e85b3d041715d765a26497b7"
Hans-G?nter@21904 5 #VERSION=${GITHASH:0:7}
Hans-G?nter@21904 6 VERSION="0.3.1"
pascal@16540 7 CATEGORY="network"
pascal@16540 8 SHORT_DESC="Unified Shaarlis Rss."
pascal@16540 9 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16540 10 LICENSE="zlib/libpng"
pascal@16540 11 WEB_SITE="https://github.com/DMeloni/shaarlo"
Hans-G?nter@21904 12
Hans-G?nter@21904 13 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21904 14 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
pascal@16540 15
pascal@16540 16 DEPENDS="php"
Hans-G?nter@21904 17 BUILD_DEPENDS=""
Hans-G?nter@21904 18
Hans-G?nter@21904 19 HOST_ARCH="any"
pascal@16540 20
pascal@16540 21 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16540 22 genpkg_rules()
pascal@16540 23 {
Hans-G?nter@21904 24 mkdir -p $fs/var/www
Hans-G?nter@21904 25 mkdir -p $fs/etc
Hans-G?nter@21904 26
pascal@16540 27 cp -a $src $fs/var/www/$PACKAGE
Hans-G?nter@21904 28
Hans-G?nter@21904 29 mv $fs/var/www/$PACKAGE/config.php.sample $fs/etc/shaarlo.php
pascal@16544 30 ln -s /etc/shaarlo.php $fs/var/www/$PACKAGE/config.php
pascal@16540 31 mkdir $fs/var/www/$PACKAGE/data
pascal@16540 32 chmod +w $fs/var/www/$PACKAGE/data
pascal@16540 33 }
pascal@16540 34
pascal@16540 35 post_install()
pascal@16540 36 {
pascal@18730 37 chown -R www "$1/var/www/$PACKAGE"
pascal@16540 38 cat <<EOT
pascal@16540 39 Configure /etc/shaarlo.php and put /var/www/$PACKAGE/refresh.php in crontab
pascal@16540 40 EOT
pascal@16540 41 }