wok-6.x annotate cherokee/receipt @ rev 24418
clamtk: replaced perl-gtk2 by perl-gtk3
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 11 09:25:31 2022 +0100 (2022-02-11) |
parents | fb22330086d8 |
children | eec3edc6ef52 |
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 |
pascal@24384 | 20 # What is the latest version available today? |
pascal@24055 | 21 current_version() |
pascal@24055 | 22 { |
pascal@24384 | 23 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 25 } |
pascal@24055 | 26 |
slaxemulator@7226 | 27 # Rules to configure and make the package. |
slaxemulator@7226 | 28 compile_rules() |
slaxemulator@7226 | 29 { |
pascal@13622 | 30 # Update deprecated symbols of ffmpeg |
Hans-G?nter@22592 | 31 sed -i 's|hdl->avformat->file_size|avio_size(hdl->avformat)|' \ |
Hans-G?nter@22592 | 32 cherokee/handler_streaming.c |
Hans-G?nter@22592 | 33 |
slaxemulator@7226 | 34 # Use subdirectory for logs |
Hans-G?nter@22592 | 35 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' \ |
Hans-G?nter@22592 | 36 cherokee.conf.sample.pre |
slaxemulator@7226 | 37 |
pascal@24385 | 38 # Avoid automake 1.16.5 'error: AM_INIT_AUTOMAKE expanded multiple times' |
pascal@24385 | 39 sed -i 's|^AM_INIT_AUTOMAKE$|dnl &|' configure.ac |
pascal@24385 | 40 |
Hans-G?nter@22592 | 41 ./autogen.sh \ |
Hans-G?nter@22592 | 42 --prefix=/usr \ |
Hans-G?nter@22592 | 43 --sysconfdir=/etc \ |
Hans-G?nter@22592 | 44 --localstatedir=/var \ |
Hans-G?nter@22592 | 45 --with-wwwroot=/var/www/cherokee \ |
Hans-G?nter@22592 | 46 --disable-static \ |
Hans-G?nter@22592 | 47 --with-wwwuser=www \ |
Hans-G?nter@22592 | 48 --with-wwwgroup=www \ |
Hans-G?nter@22592 | 49 --enable-os-string="SliTaz" \ |
slaxemulator@7226 | 50 $CONFIGURE_ARGS && |
Hans-G?nter@22592 | 51 make && |
Hans-G?nter@22592 | 52 make DESTDIR=$DESTDIR install && |
Hans-G?nter@22592 | 53 { |
Hans-G?nter@22592 | 54 install -D -m644 pam.d_cherokee $DESTDIR/etc/pam.d/$PACKAGE |
Hans-G?nter@22592 | 55 chown -R www:www $DESTDIR/var/lib/$PACKAGE/graphs |
Hans-G?nter@22592 | 56 python -m compileall $DESTDIR |
Hans-G?nter@22592 | 57 python -O -m compileall $DESTDIR |
Hans-G?nter@22592 | 58 |
Hans-G?nter@22592 | 59 mkdir -p $DESTDIR/var/log/$PACKAGE |
Hans-G?nter@22592 | 60 mkdir -p $DESTDIR/etc/logrotate.d |
Hans-G?nter@22592 | 61 chown -R www:www $DESTDIR/var/log/$PACKAGE |
Hans-G?nter@22592 | 62 cp -a $stuff/$PACKAGE.logrotate $DESTDIR/etc/logrotate.d/$PACKAGE |
pascal@13619 | 63 } |
slaxemulator@7226 | 64 } |
slaxemulator@7226 | 65 |
slaxemulator@7226 | 66 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7226 | 67 genpkg_rules() |
slaxemulator@7226 | 68 { |
Hans-G?nter@22592 | 69 mkdir -p $fs/usr/lib/cherokee |
Hans-G?nter@22592 | 70 mkdir -p $fs/usr/share |
Hans-G?nter@22592 | 71 mkdir -p $fs/etc/init.d |
Hans-G?nter@22592 | 72 |
Hans-G?nter@22592 | 73 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22592 | 74 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@22592 | 75 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22592 | 76 cp -a $install/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee |
Hans-G?nter@22592 | 77 cp -a $install/usr/share/cherokee $fs/usr/share |
Hans-G?nter@22592 | 78 cp -a $install/var $fs |
Hans-G?nter@22592 | 79 cp -a $install/etc $fs |
Hans-G?nter@22592 | 80 cp -a $stuff/cherokee $fs/etc/init.d |
slaxemulator@7226 | 81 } |