wok-next view cherokee/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 825e4e6fc2fa
children e19ff076dc63
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cherokee"
4 VERSION="1.2.103.d021376"
5 CATEGORY="network"
6 SHORT_DESC="Cherokee Web Server"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://cherokee-project.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/cherokee/webserver/archive/v$VERSION.tar.gz"
14 BUILD_DEPENDS="pcre-dev cyrus-sasl-dev openssl10-dev openldap-dev python-dev \
15 pam-dev libmysqlclient ffmpeg-dev gettext-dev autoconf automake libtool"
16 SPLIT="$PACKAGE-dev $PACKAGE-doc"
18 compile_rules() {
19 # Use subdirectory for logs
20 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre
22 # Fix pid file location
23 sed -i 's|var/run/|run/|g' admin/PageNewConfig.py
25 cp po/admin/ca.po po/admin/cherokee.pot
27 CFLAGS="$CFLAGS -I/usr/include/openssl-1.0" \
28 LDFLAGS="$LDFLAGS -L/usr/lib/openssl-1.0" \
29 ./autogen.sh \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --localstatedir=/var \
33 --sbindir=/usr/bin \
34 --with-wwwroot=/var/www/cherokee \
35 --with-cgiroot=/var/www/cherokee/cgi-bin \
36 --disable-static \
37 --with-wwwuser=www \
38 --with-wwwgroup=www \
39 --enable-os-string="SliTaz" \
40 $CONFIGURE_ARGS &&
41 fix libtool &&
42 make &&
43 make DESTDIR=$install install || return 1
45 install -Dm644 pam.d_cherokee $install/etc/pam.d/cherokee
46 chown -R www:www $install/var/lib/cherokee/graphs
47 python -m compileall $install
48 python -O -m compileall $install
50 install -d -o80 -u80 $install/var/log/cherokee
52 install -Dm644 $stuff/cherokee.logrotate $install/etc/logrotate.d/cherokee
53 install -Dm755 $stuff/cherokee $install/etc/init.d/cherokee
54 }
56 genpkg_rules() {
57 case $PACKAGE in
58 cherokee)
59 copy @std
60 DEPENDS="pcre cyrus-sasl openssl python libmysqlclient \
61 libldap ffmpeg"
62 PROVIDE="lighttpd"
63 ;;
64 cherokee-dev)
65 copy @dev
66 ;;
67 cherokee-doc)
68 copy doc/
69 CAT="misc|documentation"
70 DEPENDS="cherokee"
71 ;;
72 esac
73 }