wok-next view cherokee/receipt @ rev 20839
p11-kit: upgrade 0.23.8 (2017 Aug) -> 0.23.12
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Wed Jun 20 07:32:40 2018 +0000 (2018-06-20) |
parents | 757d032c55c7 |
children | 825e4e6fc2fa |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cherokee"
4 VERSION="1.2.101"
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-project.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://www.cherokee-project.com/download/${VERSION%.*}/$VERSION/$TARBALL"
14 BUILD_DEPENDS="pcre-dev cyrus-sasl-dev openssl-dev openldap-dev python-dev \
15 pam-dev libmysqlclient ffmpeg-dev gettext autoconf automake"
16 SPLIT="cherokee cherokee-dev cherokee-doc"
18 compile_rules() {
19 # Update deprecated symbols of ffmpeg
20 sed -i 's|hdl->avformat->file_size|avio_size(hdl->avformat)|' cherokee/handler_streaming.c
22 # Use subdirectory for logs
23 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre
25 autoreconf -v
26 ./configure \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --localstatedir=/var \
30 --with-wwwroot=/var/www/cherokee \
31 --disable-static \
32 --with-wwwuser=www \
33 --with-wwwgroup=www \
34 --enable-os-string="SliTaz" \
35 $CONFIGURE_ARGS &&
36 fix libtool &&
37 make &&
38 make DESTDIR=$DESTDIR install || return 1
40 install -Dm644 pam.d_cherokee $install/etc/pam.d/cherokee
41 chown -R www:www $install/var/lib/cherokee/graphs
42 python -m compileall $install
43 python -O -m compileall $install
45 install -d -o80 -u80 $install/var/log/cherokee
47 install -Dm644 $stuff/cherokee.logrotate $install/etc/logrotate.d/cherokee
48 install -Dm755 $stuff/cherokee $install/etc/init.d/cherokee
49 }
51 genpkg_rules() {
52 case $PACKAGE in
53 cherokee)
54 copy @std
55 DEPENDS="pcre cyrus-sasl openssl python libmysqlclient \
56 libldap ffmpeg"
57 PROVIDE="lighttpd"
58 ;;
59 cherokee-dev)
60 copy @dev
61 ;;
62 cherokee-doc)
63 copy doc/
64 CAT="misc|documentation"
65 DEPENDS="cherokee"
66 ;;
67 esac
68 }