wok-next view shaarlo/receipt @ rev 20849
syslinux: prevent shell expansion, specify CONFIG_FILES
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jun 23 17:39:19 2018 +0300 (2018-06-23) |
parents | c4e53a39395a |
children | d5aab818505e |
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"
14 DEPENDS="php"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 mkdir -p $fs/var/www $fs/etc
20 cp -a $src $fs/var/www/$PACKAGE
21 mv $fs/var/www/$PACKAGE/config.php $fs/etc/shaarlo.php
22 ln -s /etc/shaarlo.php $fs/var/www/$PACKAGE/config.php
23 mkdir $fs/var/www/$PACKAGE/data
24 chmod +w $fs/var/www/$PACKAGE/data
25 }
27 post_install()
28 {
29 chown -R www "$1/var/www/$PACKAGE"
30 cat <<EOT
31 Configure /etc/shaarlo.php and put /var/www/$PACKAGE/refresh.php in crontab
32 EOT
33 }