summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2010-01-28 00:10:15 +0100
committerBertrand Jacquin <beber@meleeweb.net>2010-01-28 00:10:15 +0100
commitd447abc6f50170a6c639b894d9c3a3a6d74a51b8 (patch)
treeaccc0120e5608fe9834f3f61a4b1a2b48fbc51ff
parentfontconfig-2.6.0 (diff)
downloadportage-d447abc6f50170a6c639b894d9c3a3a6d74a51b8.tar.xz
red5-0.8.0
-rw-r--r--dev-java/red5/Manifest6
-rw-r--r--dev-java/red5/files/21red51
-rw-r--r--dev-java/red5/files/ivysettings.xml30
-rw-r--r--dev-java/red5/files/red5.confd2
-rw-r--r--dev-java/red5/files/red5.initd23
-rw-r--r--dev-java/red5/red5-0.8.0.ebuild49
6 files changed, 111 insertions, 0 deletions
diff --git a/dev-java/red5/Manifest b/dev-java/red5/Manifest
new file mode 100644
index 00000000..064c7d9d
--- /dev/null
+++ b/dev-java/red5/Manifest
@@ -0,0 +1,6 @@
+AUX 21red5 54 RMD160 242af6e204d0cc149d11d047f1e457faf1bb015c SHA1 2f68ac68b1f9ec81bd73cf7928aeadf7eea7bb30 SHA256 79aa94c73a70a19d07eb5a63f91c66aeda344d1aadc6631e3761a5cf87f04cae
+AUX ivysettings.xml 1589 RMD160 5cb6900ad7011692f477b1c52c7017914c90813f SHA1 9c7581ee7be9ba49571556c128f615053a48b17c SHA256 3fa2903b842a7574b2a4a0bc6eebe8d1d311703cc127d57c18595bc93f1a9aa3
+AUX red5.confd 29 RMD160 813f285a4ef6b2447d6a55c26fb805c85264dc0e SHA1 80606c4ec65f85c5901ebe592c2e0e6f1ca89bb8 SHA256 98088a4d5497a35069600974fd8b358400afcab25f0ff93db3d01fb1e22c5373
+AUX red5.initd 454 RMD160 5f734c74f0fc788f6ee8176f3e02bdc252bdac5b SHA1 5ef477be636519ec26581131dac7ab379f810dd0 SHA256 f40ea9226b6afdc7356be50d37a65a87fd5683d25a1841f4e076dadaa53b71f6
+DIST red5-0.8.0.tar.gz 34974818 RMD160 79286eb5011369096a9799eeda1a5a0bc9c926de SHA1 c91b74c9f03efdcf0b9c219d76dd46c674ed2db0 SHA256 9a49b1ab653611bf5948e4c6c25dc3a096bc87d9cb9f3567e6e65aca36243ef7
+EBUILD red5-0.8.0.ebuild 961 RMD160 f1a707af8db4226b427b71c6bbde106eeac4f28c SHA1 8cd5fbb4013d2f421f8ee963ded9832bf0fd4f91 SHA256 dcdb65509fbda18f6b23014f7342c32e29ee675ed54681f11125cd233d47514b
diff --git a/dev-java/red5/files/21red5 b/dev-java/red5/files/21red5
new file mode 100644
index 00000000..6b0e8816
--- /dev/null
+++ b/dev-java/red5/files/21red5
@@ -0,0 +1 @@
+CONFIG_PROTECT="/opt/red5/conf /var/lib/red5-webapps"
diff --git a/dev-java/red5/files/ivysettings.xml b/dev-java/red5/files/ivysettings.xml
new file mode 100644
index 00000000..d952f938
--- /dev/null
+++ b/dev-java/red5/files/ivysettings.xml
@@ -0,0 +1,30 @@
+<ivysettings>
+ <settings defaultResolver="local"/>
+ <resolvers>
+ <chain name="local" returnFirst="true">
+ <filesystem name="lib_dir">
+ <artifact pattern="${ivy.lib.dir}/[artifact](-[revision]).[type]" />
+ <artifact pattern="${ivy.lib.dir}/[artifact](-[revision]).[ext]" />
+ </filesystem>
+ <!-- ivyrep name="local_cache"/ -->
+ </chain>
+ <chain name="remote" returnFirst="true">
+ <url name="googlecode">
+ <artifact pattern="http://red5.googlecode.com/svn/trunk/repository/[artifact](-[revision]).[ext]" />
+ <artifact pattern="http://red5.googlecode.com/svn/trunk/repository/[organisation]/[artifact](-[revision]).[ext]" />
+ </url>
+ <url name="cvsdude">
+ <artifact pattern="https://svn1.cvsdude.com/osflash/red5/repository/[artifact](-[revision]).[ext]" />
+ <artifact pattern="https://svn1.cvsdude.com/osflash/red5/repository/[organisation]/[artifact](-[revision]).[ext]" />
+ </url>
+ </chain>
+ </resolvers>
+ <modules>
+ <module organisation="spring" name="*" resolver="googlecode"/>
+ <module organisation="tomcat" name="*" resolver="googlecode"/>
+ <module organisation="jetty" name="*" resolver="googlecode"/>
+ <module organisation="mina" name="*" resolver="googlecode"/>
+ <module organisation="jmx" name="*" resolver="googlecode"/>
+ <module organisation=".*" name="*" resolver="remote"/>
+ </modules>
+</ivysettings> \ No newline at end of file
diff --git a/dev-java/red5/files/red5.confd b/dev-java/red5/files/red5.confd
new file mode 100644
index 00000000..817d85fc
--- /dev/null
+++ b/dev-java/red5/files/red5.confd
@@ -0,0 +1,2 @@
+# Red5's User
+RED5_USER=red5
diff --git a/dev-java/red5/files/red5.initd b/dev-java/red5/files/red5.initd
new file mode 100644
index 00000000..0e7a6cdc
--- /dev/null
+++ b/dev-java/red5/files/red5.initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2
+# $Header: $
+
+depend() {
+ need net
+ use dns logger postgresql mysql
+}
+
+start() {
+ ebegin "Starting Red5"
+ cd /opt/red5
+ su -s /bin/bash -c "/usr/bin/nohup /opt/red5/red5.sh &" ${RED5_USER}
+ eend $?
+}
+
+stop () {
+ ebegin "Stopping Red5"
+ su -s /bin/bash -c "killall -q -u ${RED5_USER} java" ${RED5_USER}
+ eend $?
+}
+
diff --git a/dev-java/red5/red5-0.8.0.ebuild b/dev-java/red5/red5-0.8.0.ebuild
new file mode 100644
index 00000000..706fc769
--- /dev/null
+++ b/dev-java/red5/red5-0.8.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+MY_P=${P/_/}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Open Source Flash Server written in Java"
+HOMEPAGE="http://osflash.org/red5"
+SRC_URI="http://www.red5.org/downloads/0_8/red5-${PV}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="1"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc source"
+DEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.5"
+RDEPEND=">=virtual/jdk-1.5"
+
+RED5_HOME=/opt/red5
+
+pkg_setup() {
+ enewgroup red5
+ enewuser red5 -1 -1 ${RED5_HOME} red5
+}
+
+
+src_install() {
+ newinitd "${FILESDIR}"/red5.initd red5
+ newconfd "${FILESDIR}"/red5.confd red5
+ doenvd "${FILESDIR}"/21red5
+
+ if use doc ; then
+ dodoc doc/*
+ else
+ rm -rf doc
+ fi
+
+ if ! use source ; then
+ rm src.zip
+ fi
+
+ dodir ${RED5_HOME}
+ cp -rp * ${D}${RED5_HOME}
+ fowners -R red5:red5 ${RED5_HOME}
+ fperms 0750 ${RED5_HOME}/red5.sh
+ dosym ${RED5_HOME}/webapps /var/lib/red5-webapps
+}