wok-current view shaarlo/receipt @ rev 24908
updated mjpegtools and mjpegtools-dev (2.1.0 -> 2.2.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 09 15:21:07 2022 +0100 (2022-04-09) |
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 }