cherokee: make this build again with a newer ffmpeg.

This commit is contained in:
Juan RP 2013-06-29 10:16:39 +02:00
parent 0bf93737e4
commit 62485f9ec0
2 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,14 @@
--- cherokee/handler_streaming.c.ffmpeg 2012-06-04 12:56:16.000000000 +0800
+++ cherokee/handler_streaming.c 2012-06-04 12:56:40.000000000 +0800
@@ -380,7 +380,7 @@
if (likely (secs > 0)) {
long tmp;
- tmp = (hdl->avformat->file_size / secs);
+ tmp = (avio_size(hdl->avformat) / secs);
if (tmp > rate) {
rate = tmp;
TRACE(ENTRIES, "New rate: %d bytes/s\n", rate);

View File

@ -12,7 +12,7 @@ short_desc="An innovative, feature rich, and yet easy to configure open source W
maintainer="davehome <davehome@redthumb.info.tm>"
homepage="http://www.cherokee-project.com/"
license="GPL-2"
distfiles="http://www.${pkgname}-project.com/download/1.2/${version}/${pkgname}-${version}.tar.gz"
distfiles="http://www.cherokee-project.de/mirrors/cherokee/1.2/${version}/cherokee-${version}.tar.gz"
checksum=ca465ab3772479fc843b38ffc45113bf24d8bfae9185cdd5176b099d5a17feb8
long_desc="
Cherokee is an open-source Cross-platform Web server that runs on Linux, BSD
@ -46,18 +46,20 @@ cherokee-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
vmove "usr/lib/*.so"
}
}
libcherokee_package() {
short_desc+=" - Runtime library"
pkg_install() {
vmove "usr/lib/*.so*"
vmove "usr/lib/*.so.*"
vmove usr/lib/cherokee
}
}
cherokee_package() {
depends="shadow"
conf_files="/etc/${pkgname}/${pkgname}.conf"
systemd_services="cherokee.service on"
system_accounts="httpd"