wok-6.x view cherokee/receipt @ rev 22961
updated iso-codes (3.45 -> 4.4)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 28 16:47:15 2020 +0100 (2020-02-28) |
parents | 2eb1182f1f15 |
children | 5ea0ce1cecc0 |
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 # Rules to configure and make the package.
21 compile_rules()
22 {
23 # Update deprecated symbols of ffmpeg
24 sed -i 's|hdl->avformat->file_size|avio_size(hdl->avformat)|' \
25 cherokee/handler_streaming.c
27 # Use subdirectory for logs
28 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' \
29 cherokee.conf.sample.pre
31 ./autogen.sh \
32 --prefix=/usr \
33 --sysconfdir=/etc \
34 --localstatedir=/var \
35 --with-wwwroot=/var/www/cherokee \
36 --disable-static \
37 --with-wwwuser=www \
38 --with-wwwgroup=www \
39 --enable-os-string="SliTaz" \
40 $CONFIGURE_ARGS &&
41 make &&
42 make DESTDIR=$DESTDIR install &&
43 {
44 install -D -m644 pam.d_cherokee $DESTDIR/etc/pam.d/$PACKAGE
45 chown -R www:www $DESTDIR/var/lib/$PACKAGE/graphs
46 python -m compileall $DESTDIR
47 python -O -m compileall $DESTDIR
49 mkdir -p $DESTDIR/var/log/$PACKAGE
50 mkdir -p $DESTDIR/etc/logrotate.d
51 chown -R www:www $DESTDIR/var/log/$PACKAGE
52 cp -a $stuff/$PACKAGE.logrotate $DESTDIR/etc/logrotate.d/$PACKAGE
53 }
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/lib/cherokee
60 mkdir -p $fs/usr/share
61 mkdir -p $fs/etc/init.d
63 cp -a $install/usr/bin $fs/usr
64 cp -a $install/usr/sbin $fs/usr
65 cp -a $install/usr/lib/*.so* $fs/usr/lib
66 cp -a $install/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee
67 cp -a $install/usr/share/cherokee $fs/usr/share
68 cp -a $install/var $fs
69 cp -a $install/etc $fs
70 cp -a $stuff/cherokee $fs/etc/init.d
71 }