wok view cherokee/receipt @ rev 25203
updated python-mechanize (0.4.5 -> 0.4.7)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 14:23:19 2022 +0100 (2022-07-13) |
parents | 640a2eba2511 |
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.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 # Avoid automake 1.16.5 'error: AM_INIT_AUTOMAKE expanded multiple times'
39 sed -i 's|^AM_INIT_AUTOMAKE$|dnl &|' configure.ac
41 ./autogen.sh \
42 --prefix=/usr \
43 --sysconfdir=/etc \
44 --localstatedir=/var \
45 --with-wwwroot=/var/www/cherokee \
46 --disable-static \
47 --with-wwwuser=www \
48 --with-wwwgroup=www \
49 --enable-os-string="SliTaz" \
50 $CONFIGURE_ARGS &&
51 make &&
52 make DESTDIR=$DESTDIR install &&
53 {
54 install -D -m644 pam.d_cherokee $DESTDIR/etc/pam.d/$PACKAGE
55 chown -R www:www $DESTDIR/var/lib/$PACKAGE/graphs
56 python -m compileall $DESTDIR
57 python -O -m compileall $DESTDIR
59 mkdir -p $DESTDIR/var/log/$PACKAGE
60 mkdir -p $DESTDIR/etc/logrotate.d
61 chown -R www:www $DESTDIR/var/log/$PACKAGE
62 cp -a $stuff/$PACKAGE.logrotate $DESTDIR/etc/logrotate.d/$PACKAGE
63 }
64 }
66 # Rules to gen a SliTaz package suitable for Tazpkg.
67 genpkg_rules()
68 {
69 mkdir -p $fs/usr/lib/cherokee
70 mkdir -p $fs/usr/share
71 mkdir -p $fs/etc/init.d
73 cp -a $install/usr/bin $fs/usr
74 cp -a $install/usr/sbin $fs/usr
75 cp -a $install/usr/lib/*.so* $fs/usr/lib
76 cp -a $install/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee
77 cp -a $install/usr/share/cherokee $fs/usr/share
78 cp -a $install/var $fs
79 cp -a $install/etc $fs
80 cp -a $stuff/cherokee $fs/etc/init.d
81 }