wok-next view cherokee/receipt @ rev 21613
updated eboard (1.1.1 -> 1.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 10:33:28 2020 +0100 (2020-06-25) |
parents | e19ff076dc63 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cherokee"
4 VERSION="1.2.104"
5 CATEGORY="network"
6 TAGS="webserver"
7 SHORT_DESC="Cherokee Web Server"
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://cherokee-project.com/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/cherokee/webserver/archive/v$VERSION.tar.gz"
15 BUILD_DEPENDS="autoconf automake cyrus-sasl-dev ffmpeg-dev gettext-dev
16 libmysqlclient libtool openldap-dev openssl10-dev pam-dev
17 pcre-dev python-dev"
18 SPLIT="$PACKAGE-dev $PACKAGE-doc"
20 COOKOPTS="force-arch" # different .h
22 compile_rules()
23 {
24 # Use subdirectory for logs
25 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' \
26 cherokee.conf.sample.pre
28 # Fix pid file location
29 sed -i 's|var/run/|run/|g' admin/PageNewConfig.py
31 cp po/admin/ca.po po/admin/cherokee.pot
33 CFLAGS="$CFLAGS -I/usr/include/openssl-1.0" \
34 LDFLAGS="$LDFLAGS -L/usr/lib/openssl-1.0" \
35 ./autogen.sh \
36 --prefix=/usr \
37 --sysconfdir=/etc \
38 --localstatedir=/var \
39 --sbindir=/usr/bin \
40 --with-cgiroot=/var/www/cherokee/cgi-bin \
41 --with-wwwgroup=www \
42 --with-wwwroot=/var/www/cherokee \
43 --with-wwwuser=www \
44 --enable-os-string="SliTaz" \
45 --disable-static \
46 $CONFIGURE_ARGS &&
47 fix libtool &&
48 make &&
49 make DESTDIR=$install install || return 1
51 install -Dm644 pam.d_cherokee $install/etc/pam.d/cherokee
52 chown -R www:www $install/var/lib/cherokee/graphs
53 python -m compileall $install
54 python -O -m compileall $install
56 install -d -o80 -g80 $install/var/log/cherokee
58 install -Dm644 $stuff/cherokee.logrotate \
59 $install/etc/logrotate.d/cherokee
60 install -Dm755 $stuff/cherokee $install/etc/init.d/cherokee
61 }
63 genpkg_rules()
64 {
65 case $PACKAGE in
66 cherokee)
67 copy @std
68 DEPENDS="cyrus-sasl ffmpeg libldap openssl
69 libmysqlclient pcre python"
70 PROVIDE="lighttpd"
71 ;;
72 cherokee-dev)
73 copy @dev
74 ;;
75 cherokee-doc)
76 copy doc/
77 CAT="misc|documentation"
78 DEPENDS="cherokee"
79 ;;
80 esac
81 }