wok-current annotate shaarlo/receipt @ rev 16544

shaarlo: fix config.php path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 29 10:41:52 2014 +0000 (2014-04-29)
parents 9244e32d2348
children 9e01bc6321ea
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"
pascal@16540 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 HOST_ARCH="any"
pascal@16540 14
pascal@16540 15 DEPENDS="php"
pascal@16540 16 BUILD_DEPENDS="wget"
pascal@16540 17
pascal@16540 18 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16540 19 genpkg_rules()
pascal@16540 20 {
pascal@16540 21 mkdir -p $fs/var/www $fs/etc
pascal@16540 22 cp -a $src $fs/var/www/$PACKAGE
pascal@16544 23 mv $fs/var/www/$PACKAGE/config.php $fs/etc/shaarlo.php
pascal@16544 24 ln -s /etc/shaarlo.php $fs/var/www/$PACKAGE/config.php
pascal@16540 25 mkdir $fs/var/www/$PACKAGE/data
pascal@16540 26 chmod +w $fs/var/www/$PACKAGE/data
pascal@16540 27 }
pascal@16540 28
pascal@16540 29 post_install()
pascal@16540 30 {
pascal@16540 31 chown -R www $1/var/www/$PACKAGE
pascal@16540 32 cat <<EOT
pascal@16540 33 Configure /etc/shaarlo.php and put /var/www/$PACKAGE/refresh.php in crontab
pascal@16540 34 EOT
pascal@16540 35 }
pascal@16540 36