wok-current view cherokee/receipt @ rev 25733
Accept licence PyQt-x11-gpl, bump firmware* to 20240610, build imagemagick (merge)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Dec 20 16:13:23 2024 +0000 (12 hours ago) |
parents | 3ad63c8fc2f9 |
children |
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="https://cherokee-project.com/"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="https://github.com/shannara/cherokee-webserver/archive/master.zip"
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 HOST_ARCH="i486 x86_64"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
26 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 # Update deprecated symbols of ffmpeg
33 sed -i 's|hdl->avformat->file_size|avio_size(hdl->avformat)|' \
34 cherokee/handler_streaming.c
36 # Use subdirectory for logs
37 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' \
38 cherokee.conf.sample.pre
40 # Avoid automake 1.16.5 'error: AM_INIT_AUTOMAKE expanded multiple times'
41 sed -i 's|^AM_INIT_AUTOMAKE$|dnl &|' configure.ac
43 ./autogen.sh \
44 --prefix=/usr \
45 --sysconfdir=/etc \
46 --localstatedir=/var \
47 --with-wwwroot=/var/www/cherokee \
48 --disable-static \
49 --with-wwwuser=www \
50 --with-wwwgroup=www \
51 --enable-os-string="SliTaz" \
52 $CONFIGURE_ARGS &&
53 make &&
54 make DESTDIR=$DESTDIR install &&
55 {
56 install -D -m644 pam.d_cherokee $DESTDIR/etc/pam.d/$PACKAGE
57 chown -R www:www $DESTDIR/var/lib/$PACKAGE/graphs
58 python -m compileall $DESTDIR
59 python -O -m compileall $DESTDIR
61 mkdir -p $DESTDIR/var/log/$PACKAGE
62 mkdir -p $DESTDIR/etc/logrotate.d
63 chown -R www:www $DESTDIR/var/log/$PACKAGE
64 cp -a $stuff/$PACKAGE.logrotate $DESTDIR/etc/logrotate.d/$PACKAGE
65 }
66 }
68 # Rules to gen a SliTaz package suitable for Tazpkg.
69 genpkg_rules()
70 {
71 mkdir -p $fs/usr/lib/cherokee
72 mkdir -p $fs/usr/share
73 mkdir -p $fs/etc/init.d
75 cp -a $install/usr/bin $fs/usr
76 cp -a $install/usr/sbin $fs/usr
77 cp -a $install/usr/lib/*.so* $fs/usr/lib
78 cp -a $install/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee
79 cp -a $install/usr/share/cherokee $fs/usr/share
80 cp -a $install/var $fs
81 cp -a $install/etc $fs
82 cp -a $stuff/cherokee $fs/etc/init.d
83 }