wok view shaarlo/receipt @ rev 25780
Add apultra & lzav
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 23 14:15:08 2024 +0000 (2 months ago) |
parents | 5ea0ce1cecc0 |
children |
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 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/var/www
31 mkdir -p $fs/etc
33 cp -a $src $fs/var/www/$PACKAGE
35 mv $fs/var/www/$PACKAGE/config.php.sample $fs/etc/shaarlo.php
36 ln -s /etc/shaarlo.php $fs/var/www/$PACKAGE/config.php
37 mkdir $fs/var/www/$PACKAGE/data
38 chmod +w $fs/var/www/$PACKAGE/data
39 }
41 post_install()
42 {
43 chown -R www "$1/var/www/$PACKAGE"
44 cat <<EOT
45 Configure /etc/shaarlo.php and put /var/www/$PACKAGE/refresh.php in crontab
46 EOT
47 }