--- nginx-1.0.0.ebuild.orig 2011-04-12 13:32:57.000000000 +0200 +++ nginx-1.0.0.ebuild 2011-04-14 13:19:50.009058983 +0200 @@ -34,6 +34,14 @@ HTTP_UPLOAD_MODULE_PV="2.2.0" HTTP_UPLOAD_MODULE_P="nginx_upload_module-${HTTP_UPLOAD_MODULE_PV}" +# H264 Streaming Module +# http://h264.code-shop.com/ +# Dual licenced: +# Non-Commercial: Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) +# Commercial: http://h264.code-shop.com/H264-Streaming-Module-License.pdf +HTTP_H264_STREAMING_MODULE_PV="2.2.7" +HTTP_H264_STREAMING_MODULE_P="nginx_mod_h264_streaming-${HTTP_H264_STREAMING_MODULE_PV}" + inherit eutils ssl-cert toolchain-funcs perl-module flag-o-matic DESCRIPTION="Robust, small and high performance http and reverse proxy server" @@ -44,7 +52,8 @@ nginx_modules_http_headers_more? ( http://github.com/agentzh/headers-more-nginx-module/tarball/v${HTTP_HEADERS_MORE_MODULE_PV} -> ${HTTP_HEADERS_MORE_MODULE_P}.tar.gz ) nginx_modules_http_push? ( http://pushmodule.slact.net/downloads/${HTTP_PUSH_MODULE_P}.tar.gz ) nginx_modules_http_cache_purge? ( http://labs.frickle.com/files/${HTTP_CACHE_PURGE_MODULE_P}.tar.gz ) - nginx_modules_http_upload? ( http://www.grid.net.ru/nginx/download/${HTTP_UPLOAD_MODULE_P}.tar.gz )" + nginx_modules_http_upload? ( http://www.grid.net.ru/nginx/download/${HTTP_UPLOAD_MODULE_P}.tar.gz ) + nginx_modules_http_h264_streaming? ( http://h264.code-shop.com/download/${HTTP_H264_STREAMING_MODULE_P}.tar.gz )" LICENSE="BSD BSD-2 GPL-2 MIT" SLOT="0" @@ -57,7 +66,7 @@ perl random_index realip secure_link stub_status sub xslt" NGINX_MODULES_MAIL="imap pop3 smtp" NGINX_MODULES_3RD="http_cache_purge http_headers_more http_passenger http_push -http_upload" +http_upload http_h264_streaming" IUSE="aio debug +http +http-cache ipv6 libatomic +pcre ssl vim-syntax" @@ -146,6 +155,10 @@ src_prepare() { sed -i 's/ make/ \\$(MAKE)/' "${S}"/auto/lib/perl/make + if use nginx_modules_http_h264_streaming; then + cd "${WORKDIR}" + epatch "${FILESDIR}"/nginx_mod_h264_streaming-2.2.7.patch + fi } src_configure() { @@ -198,6 +211,11 @@ myconf="${myconf} --add-module=${WORKDIR}/${HTTP_UPLOAD_MODULE_P}" fi + if use nginx_modules_http_h264_streaming; then + http_enabled=1 + myconf="${myconf} --add-module=${WORKDIR}/${HTTP_H264_STREAMING_MODULE_P}" + fi + if use http || use http-cache; then http_enabled=1 fi @@ -297,6 +315,10 @@ docinto ${HTTP_UPLOAD_MODULE_P} dodoc "${WORKDIR}"/${HTTP_UPLOAD_MODULE_P}/{Changelog,README} fi + if use nginx_modules_http_h264_streaming; then + docinto ${HTTP_H264_STREAMING_MODULE_P} + dodoc "${WORKDIR}"/${HTTP_H264_STREAMING_MODULE_P}/{LICENSE,README} + fi } pkg_postinst() {