wok-next view cherokee/receipt @ rev 20555

Fix "DSO missing..." error: loqui, xfprint, notification-daemon-gtk2, xfmedia, evince, celestia(?)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 06 17:43:57 2018 +0300 (2018-04-06)
parents d43bf7aae921
children 835b3b8ce6ac
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 make &&
37 make DESTDIR=$DESTDIR install || return 1
39 install -Dm644 pam.d_cherokee $install/etc/pam.d/cherokee
40 chown -R www:www $install/var/lib/cherokee/graphs
41 python -m compileall $install
42 python -O -m compileall $install
44 install -d -o80 -u80 $install/var/log/cherokee
46 install -Dm644 $stuff/cherokee.logrotate $install/etc/logrotate.d/cherokee
47 install -Dm755 $stuff/cherokee $install/etc/init.d/cherokee
48 }
50 genpkg_rules() {
51 case $PACKAGE in
52 cherokee)
53 copy @std
54 DEPENDS="pcre cyrus-sasl openssl python libmysqlclient \
55 libldap ffmpeg"
56 PROVIDE="lighttpd"
57 ;;
58 cherokee-dev)
59 copy @dev
60 ;;
61 cherokee-doc)
62 copy doc/
63 CAT="misc|documentation"
64 DEPENDS="cherokee"
65 ;;
66 esac
67 }