wok-next annotate cherokee/receipt @ rev 20184

Up llvm (5.0.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 02 17:11:17 2017 +0100 (2017-11-02)
parents d3eb5f4b53ea
children d43bf7aae921
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"
slaxemulator@7226 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"
slaxemulator@7226 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@7226 10 WEB_SITE="http://www.cherokee-project.com/"
pascal@17869 11 WGET_URL="http://www.cherokee-project.com/download/${VERSION%.*}/$VERSION/$TARBALL"
slaxemulator@7226 12
slaxemulator@11172 13 BUILD_DEPENDS="pcre-dev cyrus-sasl-dev openssl-dev openldap-dev python-dev pam-dev libmysqlclient ffmpeg-dev gettext autoconf automake"
pascal@20184 14 SPLIT="cherokee cherokee-dev cherokee-doc"
slaxemulator@11172 15
slaxemulator@7226 16 # Rules to configure and make the package.
slaxemulator@7226 17 compile_rules()
slaxemulator@7226 18 {
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
pascal@13622 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
slaxemulator@7226 26 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
slaxemulator@7226 27 --with-wwwroot=/var/www/cherokee --disable-static \
slaxemulator@7226 28 --with-wwwuser=www --with-wwwgroup=www \
slaxemulator@7226 29 --enable-os-string="SliTaz" \
slaxemulator@7226 30 $CONFIGURE_ARGS &&
pascal@13619 31 make && make DESTDIR=$DESTDIR install && {
slaxemulator@11172 32 install -D -m644 pam.d_cherokee $DESTDIR/etc/pam.d/$PACKAGE
slaxemulator@11172 33 chown -R www:www $DESTDIR/var/lib/$PACKAGE/graphs
slaxemulator@11172 34 python -m compileall $DESTDIR
slaxemulator@11172 35 python -O -m compileall $DESTDIR
slaxemulator@11172 36 mkdir -p $DESTDIR/var/log/$PACKAGE $DESTDIR/etc/logrotate.d
slaxemulator@11172 37 chown -R www:www $DESTDIR/var/log/$PACKAGE
slaxemulator@11172 38 cp -a $stuff/$PACKAGE.logrotate $DESTDIR/etc/logrotate.d/$PACKAGE
pascal@13619 39 }
slaxemulator@7226 40 }
slaxemulator@7226 41
slaxemulator@7226 42 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7226 43 genpkg_rules()
slaxemulator@7226 44 {
pascal@20184 45 case $PACKAGE in
pascal@20184 46 cherokee)
pascal@20184 47 PROVIDE="lighttpd"
pascal@20184 48 DEPENDS="pcre cyrus-sasl openssl python libmysqlclient \
pascal@20184 49 libldap ffmpeg"
pascal@20184 50 mkdir -p $fs/usr/lib/cherokee $fs/usr/share $fs/etc/init.d
pascal@20184 51 cp -a $install/usr/bin $fs/usr
pascal@20184 52 cp -a $install/usr/sbin $fs/usr
pascal@20184 53 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@20184 54 cp -a $install/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee
pascal@20184 55 cp -a $install/usr/share/cherokee $fs/usr/share
pascal@20184 56 cp -a $install/var $fs
pascal@20184 57 cp -a $install/etc $fs
pascal@20184 58 cp -a $stuff/cherokee $fs/etc/init.d
pascal@20184 59 ;;
pascal@20184 60 cherokee-dev)
pascal@20184 61 CAT="development|devel files for cherokee"
pascal@20184 62 DEPENDS="cherokee pkg-config"
pascal@20184 63 mkdir -p $fs/usr/lib/cherokee $fs/usr/share
pascal@20184 64 cp -a $install/usr/lib/*.*a $fs/usr/lib
pascal@20184 65 cp -a $install/usr/lib/cherokee/*.*a $fs/usr/lib/cherokee
pascal@20184 66 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
pascal@20184 67 cp -a $install/usr/share/aclocal $fs/usr/share
pascal@20184 68 ;;
pascal@20184 69 cherokee-doc)
pascal@20184 70 CAT="misc|Docs for cherokee"
pascal@20184 71 DEPENDS="cherokee"
pascal@20184 72 mkdir -p $fs/usr/share
pascal@20184 73 cp -a $install/usr/share/doc $fs/usr/share
pascal@20184 74 ;;
pascal@20184 75 esac
slaxemulator@7226 76 }