wok-next annotate 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 |
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@20534 | 18 compile_rules() { |
slaxemulator@7226 | 19 # Use subdirectory for logs |
slaxemulator@7226 | 20 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre |
slaxemulator@7226 | 21 |
al@20875 | 22 # Fix pid file location |
al@20875 | 23 sed -i 's|var/run/|run/|g' admin/PageNewConfig.py |
al@20875 | 24 |
al@20875 | 25 cp po/admin/ca.po po/admin/cherokee.pot |
al@20875 | 26 |
al@20875 | 27 CFLAGS="$CFLAGS -I/usr/include/openssl-1.0" \ |
al@20875 | 28 LDFLAGS="$LDFLAGS -L/usr/lib/openssl-1.0" \ |
al@20875 | 29 ./autogen.sh \ |
al@20534 | 30 --prefix=/usr \ |
al@20534 | 31 --sysconfdir=/etc \ |
al@20534 | 32 --localstatedir=/var \ |
al@20875 | 33 --sbindir=/usr/bin \ |
al@20534 | 34 --with-wwwroot=/var/www/cherokee \ |
al@20875 | 35 --with-cgiroot=/var/www/cherokee/cgi-bin \ |
al@20534 | 36 --disable-static \ |
al@20534 | 37 --with-wwwuser=www \ |
al@20534 | 38 --with-wwwgroup=www \ |
slaxemulator@7226 | 39 --enable-os-string="SliTaz" \ |
slaxemulator@7226 | 40 $CONFIGURE_ARGS && |
al@20569 | 41 fix libtool && |
al@20534 | 42 make && |
al@21020 | 43 make DESTDIR=$install install || return 1 |
al@20534 | 44 |
al@20534 | 45 install -Dm644 pam.d_cherokee $install/etc/pam.d/cherokee |
al@20534 | 46 chown -R www:www $install/var/lib/cherokee/graphs |
al@20534 | 47 python -m compileall $install |
al@20534 | 48 python -O -m compileall $install |
al@20534 | 49 |
al@20534 | 50 install -d -o80 -u80 $install/var/log/cherokee |
al@20534 | 51 |
al@20534 | 52 install -Dm644 $stuff/cherokee.logrotate $install/etc/logrotate.d/cherokee |
al@20534 | 53 install -Dm755 $stuff/cherokee $install/etc/init.d/cherokee |
slaxemulator@7226 | 54 } |
slaxemulator@7226 | 55 |
al@20534 | 56 genpkg_rules() { |
pascal@20184 | 57 case $PACKAGE in |
al@20534 | 58 cherokee) |
al@20534 | 59 copy @std |
al@20534 | 60 DEPENDS="pcre cyrus-sasl openssl python libmysqlclient \ |
pascal@20184 | 61 libldap ffmpeg" |
al@20534 | 62 PROVIDE="lighttpd" |
al@20534 | 63 ;; |
al@20534 | 64 cherokee-dev) |
al@20534 | 65 copy @dev |
al@20534 | 66 ;; |
al@20534 | 67 cherokee-doc) |
al@20534 | 68 copy doc/ |
al@20534 | 69 CAT="misc|documentation" |
al@20534 | 70 DEPENDS="cherokee" |
al@20534 | 71 ;; |
pascal@20184 | 72 esac |
slaxemulator@7226 | 73 } |