wok-current annotate cherokee/receipt @ rev 25733

Accept licence PyQt-x11-gpl, bump firmware* to 20240610, build imagemagick (merge)
author Stanislas Leduc <shann@slitaz.org>
date Fri Dec 20 16:13:23 2024 +0000 (16 hours ago)
parents 3ad63c8fc2f9
children
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@24893 9 WEB_SITE="https://cherokee-project.com/"
Hans-G?nter@22592 10
shann@25634 11 TARBALL="$PACKAGE-$VERSION.zip"
shann@25634 12 WGET_URL="https://github.com/shannara/cherokee-webserver/archive/master.zip"
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
shann@25728 20 HOST_ARCH="i486 x86_64"
shann@25728 21
pascal@24384 22 # What is the latest version available today?
pascal@24055 23 current_version()
pascal@24055 24 {
pascal@24384 25 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 26 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 27 }
pascal@24055 28
slaxemulator@7226 29 # Rules to configure and make the package.
slaxemulator@7226 30 compile_rules()
slaxemulator@7226 31 {
pascal@13622 32 # Update deprecated symbols of ffmpeg
Hans-G?nter@22592 33 sed -i 's|hdl->avformat->file_size|avio_size(hdl->avformat)|' \
Hans-G?nter@22592 34 cherokee/handler_streaming.c
Hans-G?nter@22592 35
slaxemulator@7226 36 # Use subdirectory for logs
Hans-G?nter@22592 37 sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' \
Hans-G?nter@22592 38 cherokee.conf.sample.pre
slaxemulator@7226 39
pascal@24385 40 # Avoid automake 1.16.5 'error: AM_INIT_AUTOMAKE expanded multiple times'
pascal@24385 41 sed -i 's|^AM_INIT_AUTOMAKE$|dnl &|' configure.ac
pascal@24385 42
Hans-G?nter@22592 43 ./autogen.sh \
Hans-G?nter@22592 44 --prefix=/usr \
Hans-G?nter@22592 45 --sysconfdir=/etc \
Hans-G?nter@22592 46 --localstatedir=/var \
Hans-G?nter@22592 47 --with-wwwroot=/var/www/cherokee \
Hans-G?nter@22592 48 --disable-static \
Hans-G?nter@22592 49 --with-wwwuser=www \
Hans-G?nter@22592 50 --with-wwwgroup=www \
Hans-G?nter@22592 51 --enable-os-string="SliTaz" \
slaxemulator@7226 52 $CONFIGURE_ARGS &&
Hans-G?nter@22592 53 make &&
Hans-G?nter@22592 54 make DESTDIR=$DESTDIR install &&
Hans-G?nter@22592 55 {
Hans-G?nter@22592 56 install -D -m644 pam.d_cherokee $DESTDIR/etc/pam.d/$PACKAGE
Hans-G?nter@22592 57 chown -R www:www $DESTDIR/var/lib/$PACKAGE/graphs
Hans-G?nter@22592 58 python -m compileall $DESTDIR
Hans-G?nter@22592 59 python -O -m compileall $DESTDIR
Hans-G?nter@22592 60
Hans-G?nter@22592 61 mkdir -p $DESTDIR/var/log/$PACKAGE
Hans-G?nter@22592 62 mkdir -p $DESTDIR/etc/logrotate.d
Hans-G?nter@22592 63 chown -R www:www $DESTDIR/var/log/$PACKAGE
Hans-G?nter@22592 64 cp -a $stuff/$PACKAGE.logrotate $DESTDIR/etc/logrotate.d/$PACKAGE
pascal@13619 65 }
slaxemulator@7226 66 }
slaxemulator@7226 67
slaxemulator@7226 68 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7226 69 genpkg_rules()
slaxemulator@7226 70 {
Hans-G?nter@22592 71 mkdir -p $fs/usr/lib/cherokee
Hans-G?nter@22592 72 mkdir -p $fs/usr/share
Hans-G?nter@22592 73 mkdir -p $fs/etc/init.d
Hans-G?nter@22592 74
Hans-G?nter@22592 75 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22592 76 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@22592 77 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@22592 78 cp -a $install/usr/lib/cherokee/*.so* $fs/usr/lib/cherokee
Hans-G?nter@22592 79 cp -a $install/usr/share/cherokee $fs/usr/share
Hans-G?nter@22592 80 cp -a $install/var $fs
Hans-G?nter@22592 81 cp -a $install/etc $fs
Hans-G?nter@22592 82 cp -a $stuff/cherokee $fs/etc/init.d
slaxemulator@7226 83 }