wok-current annotate cherokee/receipt @ rev 23772
updated bastet (0.43.1 -> 0.43.2)
author | Hans-G?nter Theisgen |
---|---|
date | Fri May 15 13:58:37 2020 +0100 (2020-05-15) |
parents | 2eb1182f1f15 |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
slaxemulator@7226 | 1 # SliTaz package receipt. |
slaxemulator@7226 | 2 |
slaxemulator@7226 | 3 PACKAGE="cherokee" |
Hans-G?nter@22592 | 4 VERSION="1.2.104" |
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" |
pascal@22836 | 9 WEB_SITE="http://www.cherokee.org/" |
Hans-G?nter@22592 | 10 |
slaxemulator@7226 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22593 | 12 WGET_URL="https://github.com/$PACKAGE/webserver/archive/v$VERSION.tar.gz" |
Hans-G?nter@22592 | 13 |
pascal@15182 | 14 PROVIDE="lighttpd" |
Hans-G?nter@22592 | 15 DEPENDS="cyrus-sasl ffmpeg libldap libmysqlclient openssl pcre python" |
Hans-G?nter@22592 | 16 BUILD_DEPENDS="autoconf automake cyrus-sasl-dev ffmpeg-dev gettext |
Hans-G?nter@22592 | 17 libmysqlclient libtool openssl-dev openldap-dev pam-dev pcre-dev |
Hans-G?nter@22592 | 18 python-dev" |
slaxemulator@11172 | 19 |
slaxemulator@7226 | 20 # Rules to configure and make the package. |
slaxemulator@7226 | 21 compile_rules() |
slaxemulator@7226 | 22 { |
pascal@13622 | 23 # Update deprecated symbols of ffmpeg |
Hans-G?nter@22592 | 24 sed -i 's|hdl->avformat->file_size|avio_size(hdl->avformat)|' \ |
Hans-G?nter@22592 | 25 cherokee/handler_streaming.c |
Hans-G?nter@22592 | 26 |
slaxemulator@7226 | 27 # Use subdirectory for logs |
Hans-G?nter@22592 | 28 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' \ |
Hans-G?nter@22592 | 29 cherokee.conf.sample.pre |
slaxemulator@7226 | 30 |
Hans-G?nter@22592 | 31 ./autogen.sh \ |
Hans-G?nter@22592 | 32 --prefix=/usr \ |
Hans-G?nter@22592 | 33 --sysconfdir=/etc \ |
Hans-G?nter@22592 | 34 --localstatedir=/var \ |
Hans-G?nter@22592 | 35 --with-wwwroot=/var/www/cherokee \ |
Hans-G?nter@22592 | 36 --disable-static \ |
Hans-G?nter@22592 | 37 --with-wwwuser=www \ |
Hans-G?nter@22592 | 38 --with-wwwgroup=www \ |
Hans-G?nter@22592 | 39 --enable-os-string="SliTaz" \ |
slaxemulator@7226 | 40 $CONFIGURE_ARGS && |
Hans-G?nter@22592 | 41 make && |
Hans-G?nter@22592 | 42 make DESTDIR=$DESTDIR install && |
Hans-G?nter@22592 | 43 { |
Hans-G?nter@22592 | 44 install -D -m644 pam.d_cherokee $DESTDIR/etc/pam.d/$PACKAGE |
Hans-G?nter@22592 | 45 chown -R www:www $DESTDIR/var/lib/$PACKAGE/graphs |
Hans-G?nter@22592 | 46 python -m compileall $DESTDIR |
Hans-G?nter@22592 | 47 python -O -m compileall $DESTDIR |
Hans-G?nter@22592 | 48 |
Hans-G?nter@22592 | 49 mkdir -p $DESTDIR/var/log/$PACKAGE |
Hans-G?nter@22592 | 50 mkdir -p $DESTDIR/etc/logrotate.d |
Hans-G?nter@22592 | 51 chown -R www:www $DESTDIR/var/log/$PACKAGE |
Hans-G?nter@22592 | 52 cp -a $stuff/$PACKAGE.logrotate $DESTDIR/etc/logrotate.d/$PACKAGE |
pascal@13619 | 53 } |
slaxemulator@7226 | 54 } |
slaxemulator@7226 | 55 |
slaxemulator@7226 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7226 | 57 genpkg_rules() |
slaxemulator@7226 | 58 { |
Hans-G?nter@22592 | 59 mkdir -p $fs/usr/lib/cherokee |
Hans-G?nter@22592 | 60 mkdir -p $fs/usr/share |
Hans-G?nter@22592 | 61 mkdir -p $fs/etc/init.d |
Hans-G?nter@22592 | 62 |
Hans-G?nter@22592 | 63 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22592 | 64 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@22592 | 65 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22592 | 66 cp -a $install/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee |
Hans-G?nter@22592 | 67 cp -a $install/usr/share/cherokee $fs/usr/share |
Hans-G?nter@22592 | 68 cp -a $install/var $fs |
Hans-G?nter@22592 | 69 cp -a $install/etc $fs |
Hans-G?nter@22592 | 70 cp -a $stuff/cherokee $fs/etc/init.d |
slaxemulator@7226 | 71 } |