wok view cherokee/receipt @ rev 24384

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 06 16:04:43 2022 +0000 (2022-02-06)
parents 5ea0ce1cecc0
children 640a2eba2511
line source
1 # SliTaz package receipt.
3 PACKAGE="cherokee"
4 VERSION="1.2.104"
5 CATEGORY="network"
6 SHORT_DESC="A very fast, fiexible and easy to configure Web Server."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.cherokee.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/$PACKAGE/webserver/archive/v$VERSION.tar.gz"
14 PROVIDE="lighttpd"
15 DEPENDS="cyrus-sasl ffmpeg libldap libmysqlclient openssl pcre python"
16 BUILD_DEPENDS="autoconf automake cyrus-sasl-dev ffmpeg-dev gettext
17 libmysqlclient libtool openssl-dev openldap-dev pam-dev pcre-dev
18 python-dev"
20 # What is the latest version available today?
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 configure and make the package.
28 compile_rules()
29 {
30 # Update deprecated symbols of ffmpeg
31 sed -i 's|hdl->avformat->file_size|avio_size(hdl->avformat)|' \
32 cherokee/handler_streaming.c
34 # Use subdirectory for logs
35 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' \
36 cherokee.conf.sample.pre
38 ./autogen.sh \
39 --prefix=/usr \
40 --sysconfdir=/etc \
41 --localstatedir=/var \
42 --with-wwwroot=/var/www/cherokee \
43 --disable-static \
44 --with-wwwuser=www \
45 --with-wwwgroup=www \
46 --enable-os-string="SliTaz" \
47 $CONFIGURE_ARGS &&
48 make &&
49 make DESTDIR=$DESTDIR install &&
50 {
51 install -D -m644 pam.d_cherokee $DESTDIR/etc/pam.d/$PACKAGE
52 chown -R www:www $DESTDIR/var/lib/$PACKAGE/graphs
53 python -m compileall $DESTDIR
54 python -O -m compileall $DESTDIR
56 mkdir -p $DESTDIR/var/log/$PACKAGE
57 mkdir -p $DESTDIR/etc/logrotate.d
58 chown -R www:www $DESTDIR/var/log/$PACKAGE
59 cp -a $stuff/$PACKAGE.logrotate $DESTDIR/etc/logrotate.d/$PACKAGE
60 }
61 }
63 # Rules to gen a SliTaz package suitable for Tazpkg.
64 genpkg_rules()
65 {
66 mkdir -p $fs/usr/lib/cherokee
67 mkdir -p $fs/usr/share
68 mkdir -p $fs/etc/init.d
70 cp -a $install/usr/bin $fs/usr
71 cp -a $install/usr/sbin $fs/usr
72 cp -a $install/usr/lib/*.so* $fs/usr/lib
73 cp -a $install/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee
74 cp -a $install/usr/share/cherokee $fs/usr/share
75 cp -a $install/var $fs
76 cp -a $install/etc $fs
77 cp -a $stuff/cherokee $fs/etc/init.d
78 }