wok-next diff shaarlo/receipt @ rev 21449

updated slock (1.1 -> 1.4)
author Hans-G?nter Theisgen
date Thu May 07 07:51:56 2020 +0100 (2020-05-07)
parents d43bf7aae921
children
line diff
     1.1 --- a/shaarlo/receipt	Wed Mar 21 15:58:17 2018 +0200
     1.2 +++ b/shaarlo/receipt	Thu May 07 07:51:56 2020 +0100
     1.3 @@ -4,31 +4,30 @@
     1.4  GITHASH="ac6ef877ce1cbd33e85b3d041715d765a26497b7"
     1.5  VERSION=${GITHASH:0:7}
     1.6  CATEGORY="network"
     1.7 -SHORT_DESC="Unified Shaarlis Rss."
     1.8 +SHORT_DESC="Unified Shaarlis Rss"
     1.9  MAINTAINER="pascal.bellard@slitaz.org"
    1.10  LICENSE="zlib/libpng"
    1.11  TARBALL="$PACKAGE-$VERSION.zip"
    1.12  WEB_SITE="https://github.com/DMeloni/shaarlo"
    1.13  WGET_URL="$WEB_SITE/archive/$GITHASH.zip"
    1.14  
    1.15 -DEPENDS="php"
    1.16 -
    1.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 -genpkg_rules()
    1.19 -{
    1.20 +genpkg_rules() {
    1.21  	mkdir -p $fs/var/www $fs/etc
    1.22  	cp -a $src $fs/var/www/$PACKAGE
    1.23  	mv $fs/var/www/$PACKAGE/config.php $fs/etc/shaarlo.php
    1.24  	ln -s /etc/shaarlo.php $fs/var/www/$PACKAGE/config.php
    1.25  	mkdir $fs/var/www/$PACKAGE/data
    1.26  	chmod +w $fs/var/www/$PACKAGE/data
    1.27 +	DEPENDS="php"
    1.28  }
    1.29  
    1.30 -post_install()
    1.31 -{
    1.32 +post_install() {
    1.33  	chown -R www "$1/var/www/$PACKAGE"
    1.34 -	cat <<EOT
    1.35 -Configure /etc/shaarlo.php and put /var/www/$PACKAGE/refresh.php in crontab
    1.36 +	[ -n "$quiet" ] || cat <<EOT
    1.37 +
    1.38 +	.-----------------------------------------.
    1.39 +	| Configure /etc/shaarlo.php and put      |
    1.40 +	| /var/www/shaarlo/refresh.php to crontab |
    1.41 +	'-----------------------------------------'
    1.42  EOT
    1.43  }
    1.44 -