wok-current view shaarlo/receipt @ rev 20199
e2fsprogs: fix genpkg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 12 16:48:35 2018 +0100 (2018-02-12) |
parents | 92b71f7ab2a0 |
children | 91ce53ebeb8f |
line source
1 # SliTaz package receipt.
3 PACKAGE="shaarlo"
4 GITHASH="ac6ef877ce1cbd33e85b3d041715d765a26497b7"
5 VERSION=${GITHASH:0:7}
6 CATEGORY="network"
7 SHORT_DESC="Unified Shaarlis Rss."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="zlib/libpng"
10 TARBALL="$PACKAGE-$VERSION.zip"
11 WEB_SITE="https://github.com/DMeloni/shaarlo"
12 WGET_URL="$WEB_SITE/archive/$GITHASH.zip"
13 HOST_ARCH="any"
15 DEPENDS="php"
16 BUILD_DEPENDS="wget"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 genpkg_rules()
20 {
21 mkdir -p $fs/var/www $fs/etc
22 cp -a $src $fs/var/www/$PACKAGE
23 mv $fs/var/www/$PACKAGE/config.php $fs/etc/shaarlo.php
24 ln -s /etc/shaarlo.php $fs/var/www/$PACKAGE/config.php
25 mkdir $fs/var/www/$PACKAGE/data
26 chmod +w $fs/var/www/$PACKAGE/data
27 }
29 post_install()
30 {
31 chown -R www "$1/var/www/$PACKAGE"
32 cat <<EOT
33 Configure /etc/shaarlo.php and put /var/www/$PACKAGE/refresh.php in crontab
34 EOT
35 }