wok-current view shaarlo/receipt @ rev 22346
Up sdcc (3.9.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 17 23:42:49 2019 +0100 (2019-11-17) |
parents | 9e01bc6321ea |
children | 5ea0ce1cecc0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="shaarlo"
4 #GITHASH="ac6ef877ce1cbd33e85b3d041715d765a26497b7"
5 #VERSION=${GITHASH:0:7}
6 VERSION="0.3.1"
7 CATEGORY="network"
8 SHORT_DESC="Unified Shaarlis Rss."
9 MAINTAINER="pascal.bellard@slitaz.org"
10 LICENSE="zlib/libpng"
11 WEB_SITE="https://github.com/DMeloni/shaarlo"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
16 DEPENDS="php"
17 BUILD_DEPENDS=""
19 HOST_ARCH="any"
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/var/www
25 mkdir -p $fs/etc
27 cp -a $src $fs/var/www/$PACKAGE
29 mv $fs/var/www/$PACKAGE/config.php.sample $fs/etc/shaarlo.php
30 ln -s /etc/shaarlo.php $fs/var/www/$PACKAGE/config.php
31 mkdir $fs/var/www/$PACKAGE/data
32 chmod +w $fs/var/www/$PACKAGE/data
33 }
35 post_install()
36 {
37 chown -R www "$1/var/www/$PACKAGE"
38 cat <<EOT
39 Configure /etc/shaarlo.php and put /var/www/$PACKAGE/refresh.php in crontab
40 EOT
41 }