wok-next annotate cherokee/receipt @ rev 20569
Fix libtool where applicable (a*-f* packages yet); combine collectd* receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 13 07:14:16 2018 +0300 (2018-04-13) |
parents | 757d032c55c7 |
children | 825e4e6fc2fa |
rev | line source |
---|---|
pascal@20184 | 1 # SliTaz package receipt v2. |
slaxemulator@7226 | 2 |
slaxemulator@7226 | 3 PACKAGE="cherokee" |
slaxemulator@11172 | 4 VERSION="1.2.101" |
slaxemulator@7226 | 5 CATEGORY="network" |
al@20569 | 6 SHORT_DESC="A very fast, fiexible and easy to configure Web Server" |
slaxemulator@7226 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15000 | 8 LICENSE="GPL2" |
al@20534 | 9 WEB_SITE="http://www.cherokee-project.com/" |
al@20534 | 10 |
slaxemulator@7226 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@17869 | 12 WGET_URL="http://www.cherokee-project.com/download/${VERSION%.*}/$VERSION/$TARBALL" |
slaxemulator@7226 | 13 |
al@20534 | 14 BUILD_DEPENDS="pcre-dev cyrus-sasl-dev openssl-dev openldap-dev python-dev \ |
al@20534 | 15 pam-dev libmysqlclient ffmpeg-dev gettext autoconf automake" |
pascal@20184 | 16 SPLIT="cherokee cherokee-dev cherokee-doc" |
slaxemulator@11172 | 17 |
al@20534 | 18 compile_rules() { |
pascal@13622 | 19 # Update deprecated symbols of ffmpeg |
pascal@13622 | 20 sed -i 's|hdl->avformat->file_size|avio_size(hdl->avformat)|' cherokee/handler_streaming.c |
al@20534 | 21 |
slaxemulator@7226 | 22 # Use subdirectory for logs |
slaxemulator@7226 | 23 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre |
slaxemulator@7226 | 24 |
slaxemulator@7226 | 25 autoreconf -v |
al@20534 | 26 ./configure \ |
al@20534 | 27 --prefix=/usr \ |
al@20534 | 28 --sysconfdir=/etc \ |
al@20534 | 29 --localstatedir=/var \ |
al@20534 | 30 --with-wwwroot=/var/www/cherokee \ |
al@20534 | 31 --disable-static \ |
al@20534 | 32 --with-wwwuser=www \ |
al@20534 | 33 --with-wwwgroup=www \ |
slaxemulator@7226 | 34 --enable-os-string="SliTaz" \ |
slaxemulator@7226 | 35 $CONFIGURE_ARGS && |
al@20569 | 36 fix libtool && |
al@20534 | 37 make && |
al@20534 | 38 make DESTDIR=$DESTDIR install || return 1 |
al@20534 | 39 |
al@20534 | 40 install -Dm644 pam.d_cherokee $install/etc/pam.d/cherokee |
al@20534 | 41 chown -R www:www $install/var/lib/cherokee/graphs |
al@20534 | 42 python -m compileall $install |
al@20534 | 43 python -O -m compileall $install |
al@20534 | 44 |
al@20534 | 45 install -d -o80 -u80 $install/var/log/cherokee |
al@20534 | 46 |
al@20534 | 47 install -Dm644 $stuff/cherokee.logrotate $install/etc/logrotate.d/cherokee |
al@20534 | 48 install -Dm755 $stuff/cherokee $install/etc/init.d/cherokee |
slaxemulator@7226 | 49 } |
slaxemulator@7226 | 50 |
al@20534 | 51 genpkg_rules() { |
pascal@20184 | 52 case $PACKAGE in |
al@20534 | 53 cherokee) |
al@20534 | 54 copy @std |
al@20534 | 55 DEPENDS="pcre cyrus-sasl openssl python libmysqlclient \ |
pascal@20184 | 56 libldap ffmpeg" |
al@20534 | 57 PROVIDE="lighttpd" |
al@20534 | 58 ;; |
al@20534 | 59 cherokee-dev) |
al@20534 | 60 copy @dev |
al@20534 | 61 ;; |
al@20534 | 62 cherokee-doc) |
al@20534 | 63 copy doc/ |
al@20534 | 64 CAT="misc|documentation" |
al@20534 | 65 DEPENDS="cherokee" |
al@20534 | 66 ;; |
pascal@20184 | 67 esac |
slaxemulator@7226 | 68 } |