wok-current rev 16540

Add shaarlo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 29 08:27:25 2014 +0000 (2014-04-29)
parents c6f732574896
children 423ed4e50887
files shaarlo/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/shaarlo/receipt	Tue Apr 29 08:27:25 2014 +0000
     1.3 @@ -0,0 +1,36 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="shaarlo"
     1.7 +GITHASH="ac6ef877ce1cbd33e85b3d041715d765a26497b7"
     1.8 +VERSION=${GITHASH:0:7}
     1.9 +CATEGORY="network"
    1.10 +SHORT_DESC="Unified Shaarlis Rss."
    1.11 +MAINTAINER="pascal.bellard@slitaz.org"
    1.12 +LICENSE="zlib/libpng"
    1.13 +TARBALL="$PACKAGE-$VERSION.zip"
    1.14 +WEB_SITE="https://github.com/DMeloni/shaarlo"
    1.15 +WGET_URL="$WEB_SITE/archive/$GITHASH.zip"
    1.16 +HOST_ARCH="any"
    1.17 +
    1.18 +DEPENDS="php"
    1.19 +BUILD_DEPENDS="wget"
    1.20 +
    1.21 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.22 +genpkg_rules()
    1.23 +{
    1.24 +	mkdir -p $fs/var/www $fs/etc
    1.25 +	cp -a $src $fs/var/www/$PACKAGE
    1.26 +	mv $fs/var/www/config.php $fs/etc/shaarlo.php
    1.27 +	ln -s /etc/shaarlo.php $fs/var/www/config.php
    1.28 +	mkdir $fs/var/www/$PACKAGE/data
    1.29 +	chmod +w $fs/var/www/$PACKAGE/data
    1.30 +}
    1.31 +
    1.32 +post_install()
    1.33 +{
    1.34 +	chown -R www $1/var/www/$PACKAGE
    1.35 +	cat <<EOT
    1.36 +Configure /etc/shaarlo.php and put /var/www/$PACKAGE/refresh.php in crontab
    1.37 +EOT
    1.38 +}
    1.39 +