wok-current view cherokee/receipt @ rev 24196
updated perl-datetime-locale (0.45 -> 1.33)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 15:04:43 2021 +0100 (2021-12-31) |
parents | 079887dee9fb |
children | fb22330086d8 |
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 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # Update deprecated symbols of ffmpeg
30 sed -i 's|hdl->avformat->file_size|avio_size(hdl->avformat)|' \
31 cherokee/handler_streaming.c
33 # Use subdirectory for logs
34 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' \
35 cherokee.conf.sample.pre
37 ./autogen.sh \
38 --prefix=/usr \
39 --sysconfdir=/etc \
40 --localstatedir=/var \
41 --with-wwwroot=/var/www/cherokee \
42 --disable-static \
43 --with-wwwuser=www \
44 --with-wwwgroup=www \
45 --enable-os-string="SliTaz" \
46 $CONFIGURE_ARGS &&
47 make &&
48 make DESTDIR=$DESTDIR install &&
49 {
50 install -D -m644 pam.d_cherokee $DESTDIR/etc/pam.d/$PACKAGE
51 chown -R www:www $DESTDIR/var/lib/$PACKAGE/graphs
52 python -m compileall $DESTDIR
53 python -O -m compileall $DESTDIR
55 mkdir -p $DESTDIR/var/log/$PACKAGE
56 mkdir -p $DESTDIR/etc/logrotate.d
57 chown -R www:www $DESTDIR/var/log/$PACKAGE
58 cp -a $stuff/$PACKAGE.logrotate $DESTDIR/etc/logrotate.d/$PACKAGE
59 }
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 mkdir -p $fs/usr/lib/cherokee
66 mkdir -p $fs/usr/share
67 mkdir -p $fs/etc/init.d
69 cp -a $install/usr/bin $fs/usr
70 cp -a $install/usr/sbin $fs/usr
71 cp -a $install/usr/lib/*.so* $fs/usr/lib
72 cp -a $install/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee
73 cp -a $install/usr/share/cherokee $fs/usr/share
74 cp -a $install/var $fs
75 cp -a $install/etc $fs
76 cp -a $stuff/cherokee $fs/etc/init.d
77 }