wok annotate cherokee/receipt @ rev 16469
Up and add to ARM: libgd fswebcam
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 22 03:43:21 2014 +0200 (2014-04-22) |
parents | 380ffe05937a |
children | d3eb5f4b53ea |
rev | line source |
---|---|
slaxemulator@7226 | 1 # SliTaz package receipt. |
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/" |
gokhlayeh@8862 | 11 WGET_URL="http://www.cherokee-project.com/download/1.2/$VERSION/$TARBALL" |
pascal@15182 | 12 PROVIDE="lighttpd" |
slaxemulator@7226 | 13 |
slaxemulator@11172 | 14 DEPENDS="pcre cyrus-sasl openssl python libmysqlclient libldap ffmpeg" |
slaxemulator@11172 | 15 BUILD_DEPENDS="pcre-dev cyrus-sasl-dev openssl-dev openldap-dev python-dev pam-dev libmysqlclient ffmpeg-dev gettext autoconf automake" |
slaxemulator@11172 | 16 |
slaxemulator@7226 | 17 # Rules to configure and make the package. |
slaxemulator@7226 | 18 compile_rules() |
slaxemulator@7226 | 19 { |
slaxemulator@7226 | 20 cd $src |
pascal@13622 | 21 |
pascal@13622 | 22 # Update deprecated symbols of ffmpeg |
pascal@13622 | 23 sed -i 's|hdl->avformat->file_size|avio_size(hdl->avformat)|' cherokee/handler_streaming.c |
pascal@13622 | 24 |
slaxemulator@7226 | 25 # Use subdirectory for logs |
slaxemulator@7226 | 26 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre |
slaxemulator@7226 | 27 |
slaxemulator@7226 | 28 autoreconf -v |
slaxemulator@7226 | 29 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ |
slaxemulator@7226 | 30 --with-wwwroot=/var/www/cherokee --disable-static \ |
slaxemulator@7226 | 31 --with-wwwuser=www --with-wwwgroup=www \ |
slaxemulator@7226 | 32 --enable-os-string="SliTaz" \ |
slaxemulator@7226 | 33 $CONFIGURE_ARGS && |
pascal@13619 | 34 make && make DESTDIR=$DESTDIR install && { |
slaxemulator@11172 | 35 install -D -m644 pam.d_cherokee $DESTDIR/etc/pam.d/$PACKAGE |
slaxemulator@11172 | 36 chown -R www:www $DESTDIR/var/lib/$PACKAGE/graphs |
slaxemulator@11172 | 37 python -m compileall $DESTDIR |
slaxemulator@11172 | 38 python -O -m compileall $DESTDIR |
slaxemulator@11172 | 39 mkdir -p $DESTDIR/var/log/$PACKAGE $DESTDIR/etc/logrotate.d |
slaxemulator@11172 | 40 chown -R www:www $DESTDIR/var/log/$PACKAGE |
slaxemulator@11172 | 41 cp -a $stuff/$PACKAGE.logrotate $DESTDIR/etc/logrotate.d/$PACKAGE |
pascal@13619 | 42 } |
slaxemulator@7226 | 43 } |
slaxemulator@7226 | 44 |
slaxemulator@7226 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7226 | 46 genpkg_rules() |
slaxemulator@7226 | 47 { |
slaxemulator@7226 | 48 mkdir -p $fs/usr/lib/cherokee $fs/usr/share $fs/etc/init.d |
slaxemulator@11172 | 49 cp -a $install/usr/bin $fs/usr |
slaxemulator@11172 | 50 cp -a $install/usr/sbin $fs/usr |
slaxemulator@11172 | 51 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@11172 | 52 cp -a $install/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee |
slaxemulator@11172 | 53 cp -a $install/usr/share/cherokee $fs/usr/share |
slaxemulator@11172 | 54 cp -a $install/var $fs |
slaxemulator@11172 | 55 cp -a $install/etc $fs |
pankso@9697 | 56 cp -a $stuff/cherokee $fs/etc/init.d |
slaxemulator@7226 | 57 } |
slaxemulator@7226 | 58 |