diff options
-rw-r--r-- | www-servers/wowza/Manifest | 3 | ||||
-rw-r--r-- | www-servers/wowza/wowza-3.0.5_p2.ebuild | 88 |
2 files changed, 91 insertions, 0 deletions
diff --git a/www-servers/wowza/Manifest b/www-servers/wowza/Manifest new file mode 100644 index 0000000..bb58d49 --- /dev/null +++ b/www-servers/wowza/Manifest @@ -0,0 +1,3 @@ +DIST WowzaMediaServer-3.0.5.tar.bin 63609797 RMD160 4c71b5a5a4f46c7fe1d5fc9b0acf623397b57e3c SHA1 67b37764320057dc3840292f607f509eb96e07ef SHA256 94880ce8ad59bc68b409a7ad7d05eca6dad682b7cdb7b727e06738e40dbac3d2 +DIST WowzaMediaServer3.0.5-patch2.zip 20405091 RMD160 3a00b2edd46423848865462a6a5d6441e9c8f757 SHA1 75ecd44c99d9eda9714ca544b905412db50e2ad9 SHA256 65c1c6c679b85742eb6af012a32d2b1eb19d107f2b3c1de7072a3b89a83cb92d +EBUILD wowza-3.0.5_p2.ebuild 2771 RMD160 99dc3d248b54d5c6e6c65d470c534a10fb7657fe SHA1 6297f12e14737c2a8832530a20eee42a17006776 SHA256 a07ce7b2978b18cc9b0c5b90a4c30484a39e08754e56584eb7307bc0ea218e8c diff --git a/www-servers/wowza/wowza-3.0.5_p2.ebuild b/www-servers/wowza/wowza-3.0.5_p2.ebuild new file mode 100644 index 0000000..f693186 --- /dev/null +++ b/www-servers/wowza/wowza-3.0.5_p2.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit versionator + +MY_PN="WowzaMediaServer" +MY_P="${MY_PN}-${PV%_p*}" +MY_PP="${MY_PN}-$(replace_all_version_separators - ${PV%_p*})" +DESCRIPTION="High-performance server for unified media streaming to any screen (rtmp, hls, hds)" +HOMEPAGE="http://www.wowza.com/" +SRC_URI="http://www.wowza.com/downloads/${MY_PP}/${MY_P}.tar.bin" + +if [[ ${PV/_p} != ${PV} ]]; then + SRC_URI+=" http://www.wowza.com/downloads/${MY_PP}/${MY_PN}${PV/_p/-patch}.zip" +fi + +LICENSE="wowza-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" +RESTRICT="" + +DEPEND="" +RDEPEND="virtual/jdk" + +WDESTDIR="/opt/wowza" + +SED_LOCAL_FILES="bin/WowzaMediaServerOSX bin/setenv.sh bin/WowzaMediaServer +README.html examples/VideoChat/install.sh +examples/SimpleVideoStreaming/install.sh examples/SHOUTcast/install.sh +examples/BWChecker/install.sh examples/VideoRecording/install.sh +examples/installall.sh examples/TextChat/install.sh +examples/ServerSideModules/install.sh +examples/ServerSideModules/server/build.xml +examples/LiveVideoStreaming/install.sh examples/LiveDvrStreaming/install.sh +examples/RemoteSharedObjects/install.sh" +if [[ ${PV/_p} != ${PV} ]]; then + SED_LOCAL_FILES+=" README.txt" +fi + +QA_PREBUILT="opt/wowza/${MY_P}/lib-native/linux64/*" +QA_EXECSTACK="opt/wowza/${MY_P}/lib-native/linux64/*" + +src_unpack() { + mkdir -p "${S}" + cp "${DISTDIR}/${MY_P}.tar.bin" "${S}" || die + if [[ ${PV/_p} != ${PV} ]]; then + unpack "${MY_PN}${PV/_p/-patch}.zip" + fi +} + +src_prepare() { + sed -i -e '1,5{s|^more <<"EOF"|true <<"EOF"|}' \ + -e "1,855{s|^agreed=.*|agreed=yes|;s|^baseDir=.*|baseDir=${ED}${WDESTDIR}/|;s|^inetDest=.*|inetDest=${ED}/etc/init.d/|;}" \ + -e "1,855{s|/usr/local/WowzaMediaServer|${WDESTDIR}/WowzaMediaServer|g}" "${S}/${MY_P}.tar.bin" + chmod +x "${S}/${MY_P}.tar.bin" || die + if [[ ${PV/_p} != ${PV} ]]; then + rm -rf ${WORKDIR}/${MY_PN}${PV/_p/-patch}/lib-native/win64 || die + fi + echo "CONFIG_PROTECT=\"${EPREFIX}${WDESTDIR}/${MY_P}/conf\"" > "${T}/50${PN}" +} + +src_compile() { :; } + +src_install() { + dodir ${WDESTDIR} + ./${MY_P}.tar.bin || die + + if [[ ${PV/_p} != ${PV} ]]; then + einfo "Applying ${MY_PN}${PV/_p/-patch}.zip" + pushd "${WORKDIR}/${MY_PN}${PV/_p/-patch}" >/dev/null + find . -type d -exec mkdir -v -p ${ED}${WDESTDIR}/${MY_P}/'{}' \; || die + find . -type f -exec cp -v '{}' ${ED}${WDESTDIR}/${MY_P}/'{}' \; || die + popd >/dev/null + fi + + pushd "${ED}${WDESTDIR}/WowzaMediaServer/" >/dev/null + sed -i -e "s|/usr/local|${WDESTDIR}|" ${SED_LOCAL_FILES} + while read file; do + ewarn "QQA: /usr/local path in file. Update SED_LOCAL_FILES ($file)" + done < <(find "${ED}" -type f -exec grep -H -e "/usr/local" '{}' \;) + popd >/dev/null + + doenvd "${T}/50${PN}" +} |