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