wok-next view cherokee/receipt @ rev 21094

Apply "force-arch" for selected dev packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 31 17:23:40 2018 +0200 (2018-12-31)
parents d5aab818505e
children 311ce447df33
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 COOKOPTS="force-arch" # different .h
20 compile_rules() {
21 # Use subdirectory for logs
22 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre
24 # Fix pid file location
25 sed -i 's|var/run/|run/|g' admin/PageNewConfig.py
27 cp po/admin/ca.po po/admin/cherokee.pot
29 CFLAGS="$CFLAGS -I/usr/include/openssl-1.0" \
30 LDFLAGS="$LDFLAGS -L/usr/lib/openssl-1.0" \
31 ./autogen.sh \
32 --prefix=/usr \
33 --sysconfdir=/etc \
34 --localstatedir=/var \
35 --sbindir=/usr/bin \
36 --with-wwwroot=/var/www/cherokee \
37 --with-cgiroot=/var/www/cherokee/cgi-bin \
38 --disable-static \
39 --with-wwwuser=www \
40 --with-wwwgroup=www \
41 --enable-os-string="SliTaz" \
42 $CONFIGURE_ARGS &&
43 fix libtool &&
44 make &&
45 make DESTDIR=$install install || return 1
47 install -Dm644 pam.d_cherokee $install/etc/pam.d/cherokee
48 chown -R www:www $install/var/lib/cherokee/graphs
49 python -m compileall $install
50 python -O -m compileall $install
52 install -d -o80 -u80 $install/var/log/cherokee
54 install -Dm644 $stuff/cherokee.logrotate $install/etc/logrotate.d/cherokee
55 install -Dm755 $stuff/cherokee $install/etc/init.d/cherokee
56 }
58 genpkg_rules() {
59 case $PACKAGE in
60 cherokee)
61 copy @std
62 DEPENDS="pcre cyrus-sasl openssl python libmysqlclient \
63 libldap ffmpeg"
64 PROVIDE="lighttpd"
65 ;;
66 cherokee-dev)
67 copy @dev
68 ;;
69 cherokee-doc)
70 copy doc/
71 CAT="misc|documentation"
72 DEPENDS="cherokee"
73 ;;
74 esac
75 }