debian/ 0000755 0000000 0000000 00000000000 12214162222 007160 5 ustar debian/control 0000644 0000000 0000000 00000010562 12214162106 010570 0 ustar Source: red5
Section: java
Priority: optional
Maintainer: Damien Raude-Morvan
Build-Depends: ant, cdbs, debhelper (>= 7), default-jdk (>= 1:1.6)
Build-Depends-Indep: ant-optional,
default-jdk-doc,
docbook-xsl,
glassfish-javaee,
groovy,
groovy-doc,
junit4 (>= 4.5),
jython,
libbcprov-java,
libcommons-beanutils-java,
libcommons-codec-java,
libcommons-collections3-java,
libcommons-lang3-java,
libcommons-logging-java,
libehcache-java,
libgroboutils-java,
libhamcrest-java,
libhttpclient-java,
libhttpcore-java,
libjaudiotagger-java,
liblog4j1.2-java-doc,
liblogback-java (>= 0.9.28),
libmina2-java,
libmina2-java-doc,
libquartz-java,
libsaxon-java,
libslf4j-java (>= 1.6.1),
libspring-beans-java,
libspring-context-java,
libspring-core-java,
libspring-test-java,
libspring-web-java,
libtomcat6-java (>= 6.0.20-7),
libxerces2-java,
libxmlrpc3-server-java
Standards-Version: 3.9.4
Vcs-Svn: svn://anonscm.debian.org/pkg-flash/packages/red5/trunk/
Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-flash/packages/red5/trunk/
Homepage: http://www.red5.org/
Package: libred5-java
Architecture: all
Depends: glassfish-javaee,
groovy,
jython,
libantlr-java,
libaopalliance-java,
libasm3-java,
libbcprov-java,
libcglib-java,
libcommons-beanutils-java,
libcommons-codec-java,
libcommons-collections3-java,
libcommons-lang3-java,
libcommons-logging-java,
libcommons-modeler-java,
libcommons-pool-java,
libehcache-java,
libhttpclient-java,
libhttpcore-java,
libjaudiotagger-java,
liblogback-java (>= 0.9.28),
libmina2-java,
libquartz-java,
librhino-java,
libslf4j-java (>= 1.6.1),
libspring-aop-java,
libspring-beans-java,
libspring-context-java,
libspring-context-support-java,
libspring-core-java,
libspring-web-java,
libstax-java,
libxerces2-java,
libxml-commons-external-java,
libxmlrpc3-server-java,
${misc:Depends}
Description: remote API for Red5 flash streaming server
Red5 is a Java implementation of a Flash Media Server based on
reverse engineering of RTMP and AMF protocols.
.
It support streaming video/audio/data to a Flash client and
recording audio/video broadcast from a Flash client.
.
This package contains library for Java client library to query
a remote Red5 server.
Package: red5-server
Architecture: all
Depends: adduser (>= 3.11),
default-jre-headless (>= 1:1.6) | java6-runtime-headless,
libred5-java (= ${source:Version}),
libtomcat6-java (>= 6.0.20-7),
${misc:Depends}
Conflicts: red5
Description: flash streaming server
Red5 is a Java implementation of a Flash Media Server based on
reverse engineering of RTMP and AMF protocols.
.
It support streaming video/audio/data to a Flash client and
recording audio/video broadcast from a Flash client.
.
Any flash client is supported, including Gnash flash client and
Adobe Flash Player.
Package: red5-doc
Architecture: all
Section: doc
Depends: ${misc:Depends}
Recommends: default-jdk-doc, groovy-doc, liblog4j1.2-java-doc, libmina2-java-doc
Suggests: libred5-java (= ${source:Version})
Description: flash streaming server - documentation
Red5 is a Java implementation of a Flash Media Server based on
reverse engineering of RTMP and AMF protocols.
.
It support streaming video/audio/data to a Flash client and
recording audio/video broadcast from a Flash client.
.
Any flash client is supported, including Gnash flash client and
Adobe Flash Player.
.
This package contains documentation about Red5.
debian/rules 0000755 0000000 0000000 00000001474 12013263440 010247 0 ustar #!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
JAVA_HOME := /usr/lib/jvm/default-java
DEB_ANT_BUILDFILE := debian/build.xml
# Build classpath is set via ant.properties
# Here is classpath for ant plugins :
DEB_JARS := ant-trax xercesImpl xmlParserAPIs ant-junit
ANT_ARGS := -Ddoc.prepare=true -Ddoc.wiki2docbook=true
DEB_ANT_BUILD_TARGET := jar
#DEB_ANT_CHECK_TARGET := run-tests
DEB_ANT_CLEAN_TARGET := clean
binary-install/red5-server::
chmod a+x debian/red5-server/usr/share/red5/red5.sh
chmod a+x debian/red5-server/usr/share/red5/red5-debug.sh
chmod a+x debian/red5-server/usr/share/red5/red5-shutdown.sh
chmod a+x debian/red5-server/usr/share/red5/red5-highperf.sh
get-orig-source:
sh debian/orig-tar.sh $(DEB_UPSTREAM_VERSION)
debian/red5-server.postrm 0000644 0000000 0000000 00000001066 11451631343 012603 0 ustar #!/bin/sh
# Author: Damien Raude-Morvan .
set -e
DAEMONUSER=_red5
# Remove cached files
rm -rf /var/cache/red5/*
case "$1" in
purge)
# Remove user and log files
userdel $DAEMONUSER || true
rm -rf /var/log/red5 /var/cache/red5
rmdir --ignore-fail-on-non-empty /etc/red5 || true
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
# Nothing to do here
;;
*)
echo "$0 called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
debian/orig-tar.exclude 0000644 0000000 0000000 00000000602 11534472417 012273 0 ustar # Binary files
project.zip
lib/*.jar
plugins/*.jar
plugins/*/lib/*.jar
# Generated files
doc/reference/pdf/*
src/conf/PolicyFileSocket.xsd
# Contains non-DFSG binary files
# *.swf binary-only (Flash Player) files
# *.flv movies trailers
webapps/root/demos/*
webapps/installer/*
webapps/vod/miniplayer.swf
webapps/vod/*.swz
webapps/vod/streams/*
*.psd
test/www/streams/*
test/fixtures/*
debian/red5-server.install 0000644 0000000 0000000 00000002354 11760526540 012733 0 ustar boot.jar usr/share/red5/
src/conf/web.xml etc/red5/
src/conf/context.xml etc/red5/
src/conf/red5.xml etc/red5/
src/conf/red5.properties etc/red5/
src/conf/red5.policy etc/red5/
src/conf/red5.globals etc/red5/
src/conf/red5-common.xml etc/red5/
src/conf/red5-core.xml etc/red5/
src/conf/jee-container.xml etc/red5/
src/conf/ehcache.xml etc/red5/
src/conf/quartz.properties etc/red5/
src/conf/realm.properties etc/red5/
debian/logback.xml etc/red5/
#src/conf/log4j.properties etc/red5/
src/conf/access.properties etc/red5/
src/conf/password.properties etc/red5/
src/conf/tomcat-users.xml etc/red5/
src/conf/catalina.policy etc/red5/
src/conf/build_standalone.properties etc/red5/
src/conf/keystore etc/red5/
src/conf/truststore.jmx etc/red5/
src/conf/keystore.jmx etc/red5/
red5.sh usr/share/red5/
red5-debug.sh usr/share/red5/
red5-highperf.sh usr/share/red5/
red5-shutdown.sh usr/share/red5/
webapps/red5-default.xml var/lib/red5/webapps/
webapps/root/crossdomain.xml var/lib/red5/webapps/root/
webapps/root/index.html var/lib/red5/webapps/root/
webapps/root/*.ico var/lib/red5/webapps/root/
webapps/root/*.png var/lib/red5/webapps/root/
webapps/root/WEB-INF/* var/lib/red5/webapps/root/WEB-INF/
plugins/tomcat/tomcatplugin-1.3.jar var/lib/red5/plugins/
debian/red5-server.dirs 0000644 0000000 0000000 00000000112 11534472417 012216 0 ustar usr/share/red5/lib/
etc/red5/
var/log/red5/
var/lib/red5/
var/cache/red5/
debian/source/ 0000755 0000000 0000000 00000000000 12214162222 010460 5 ustar debian/source/format 0000644 0000000 0000000 00000000014 11451631343 011675 0 ustar 3.0 (quilt)
debian/libred5-java.install 0000644 0000000 0000000 00000000100 11760526540 013020 0 ustar dist/red5-remoting.jar usr/share/red5/
red5.jar usr/share/red5/
debian/red5-doc.doc-base.reference 0000644 0000000 0000000 00000000424 11451631343 014125 0 ustar Document: red5-reference
Title: Reference Documentation for Red5
Author: Red5 developers
Abstract: This is the Reference Documentation provided by the Red5 server.
Section: Programming
Format: HTML
Index: /usr/share/doc/red5/html/index.html
Files: /usr/share/doc/red5/html/*
debian/ant.properties 0000644 0000000 0000000 00000003125 12214161620 012062 0 ustar library.installed = true
debian.build.classpath = /usr/share/java/mina2-core.jar;\
/usr/share/java/mina2-integration-jmx.jar;\
/usr/share/java/mina2-integration-beans.jar;\
/usr/share/java/slf4j-api.jar;\
/usr/share/java/jul-to-slf4j.jar;\
/usr/share/java/logback-core.jar;\
/usr/share/java/logback-classic.jar;\
/usr/share/java/commons-lang3.jar;\
/usr/share/java/commons-collections3.jar;\
/usr/share/java/commons-beanutils.jar;\
/usr/share/java/commons-codec.jar;\
/usr/share/java/groovy.jar;\
/usr/share/java/httpcore.jar;\
/usr/share/java/httpcore-nio.jar;\
/usr/share/java/httpclient.jar;\
/usr/share/java/spring3-core.jar;\
/usr/share/java/spring3-beans.jar;\
/usr/share/java/spring3-context.jar;\
/usr/share/java/spring3-web.jar;\
/usr/share/java/bcprov.jar;\
/usr/share/java/ehcache.jar;\
/usr/share/java/quartz.jar;\
/usr/share/java/jaudiotagger.jar;\
/usr/share/java/xmlrpc-server.jar;\
/usr/share/java/xmlrpc-common.jar;\
/usr/share/tomcat6/lib/catalina.jar;\
/usr/share/tomcat6/lib/tomcat-coyote.jar;\
/usr/share/java/glassfish-javaee.jar;\
/usr/share/java/jython.jar;\
/usr/share/java/xercesImpl.jar
debian.test.classpath = /usr/share/java/junit4.jar;\
/usr/share/java/hamcrest-core.jar;\
/usr/share/java/spring3-test.jar;\
/usr/share/java/commons-logging.jar;\
/usr/share/java/log4j-1.2.jar;\
/usr/share/java/groboutils-testingjunit-core.jar;\
/usr/share/tomcat6/lib/catalina.jar;\
/usr/share/java/tomcat-juli.jar;\
/usr/share/tomcat6/lib/annotations-api.jar;\
/usr/share/tomcat6/lib/el-api.jar
# For plugins
red5.root = ../../
# Specify target version for red5 - needs Java 6+
java.target_version=1.6
debian/red5-server.links 0000644 0000000 0000000 00000010470 12214161775 012403 0 ustar /etc/red5 usr/share/red5/conf
/var/lib/red5/webapps usr/share/red5/webapps
/var/lib/red5/plugins usr/share/red5/plugins
/var/log/red5 usr/share/red5/log
/var/cache/red5 usr/share/red5/work
# Core Dependencies
/usr/share/java/bcprov.jar usr/share/red5/lib/bcprov-jdk16.jar
/usr/share/java/commons-beanutils.jar usr/share/red5/lib/commons-beanutils.jar
/usr/share/java/stax-api.jar usr/share/red5/lib/com.springsource.javax.xml.stream.jar
/usr/share/java/antlr.jar usr/share/red5/lib/com.springsource.org.antlr.jar
/usr/share/java/commons-codec.jar usr/share/red5/lib/com.springsource.org.apache.commons.codec.jar
/usr/share/java/commons-collections3.jar usr/share/red5/lib/com.springsource.org.apache.commons.collections.jar
/usr/share/java/commons-lang3.jar usr/share/red5/lib/com.springsource.org.apache.commons.lang3.jar
/usr/share/java/commons-modeler.jar usr/share/red5/lib/com.springsource.org.apache.commons.modeler.jar
/usr/share/java/commons-pool.jar usr/share/red5/lib/com.springsource.org.apache.commons.pool.jar
/usr/share/java/xercesImpl.jar usr/share/red5/lib/com.springsource.org.apache.xerces.jar
/usr/share/java/groovy.jar usr/share/red5/lib/com.springsource.org.codehaus.groovy.jar
/usr/share/java/js.jar usr/share/red5/lib/com.springsource.org.mozilla.javascript.jar
/usr/share/java/asm3.jar usr/share/red5/lib/com.springsource.org.objectweb.asm.jar
/usr/share/java/asm3-commons.jar usr/share/red5/lib/com.springsource.org.objectweb.asm.commons.jar
/usr/share/java/slf4j-api.jar usr/share/red5/lib/com.springsource.slf4j.api.jar
# com.springsource.slf4j.bridge-1.6.1.jar: NOP
/usr/share/java/ehcache.jar usr/share/red5/lib/ehcache.jar
/usr/share/java/jaudiotagger.jar usr/share/red5/lib/jaudiotagger.jar
/usr/share/java/glassfish-javaee.jar usr/share/red5/lib/javaee-api.jar
/usr/share/java/httpcore.jar usr/share/red5/lib/httpcore.jar
/usr/share/java/httpcore-nio.jar usr/share/red5/lib/httpcore-nio.jar
/usr/share/java/httpclient.jar usr/share/red5/lib/httpclient.jar
/usr/share/java/jcl-over-slf4j.jar usr/share/red5/lib/jcl-over-slf4j.jar
# jruby-complete-1.1.6.jar: NON-FREE
/usr/share/java/jul-to-slf4j.jar usr/share/red5/lib/jul-to-slf4j.jar
/usr/share/java/jython.jar usr/share/red5/lib/jython.jar
/usr/share/java/log4j-over-slf4j.jar usr/share/red5/lib/log4j-over-slf4j.jar
/usr/share/java/logback-classic.jar usr/share/red5/lib/logback-classic.jar
/usr/share/java/logback-core.jar usr/share/red5/lib/logback-core.jar
/usr/share/java/mina2-core.jar usr/share/red5/lib/mina-core.jar
/usr/share/java/mina2-integration-beans.jar usr/share/red5/lib/mina-integration-beans.jar
/usr/share/java/mina2-integration-jmx.jar usr/share/red5/lib/mina-integration-jmx.jar
# org.springframework.asm-3.0.5.RELEASE.jar: see asm3
/usr/share/java/spring3-beans.jar usr/share/red5/lib/org.springframework.beans.jar
/usr/share/java/spring3-context.jar usr/share/red5/lib/org.springframework.context.jar
/usr/share/java/spring3-context.support.jar usr/share/red5/lib/org.springframework.context.support.jar
/usr/share/java/spring3-core.jar usr/share/red5/lib/org.springframework.core.jar
/usr/share/java/spring3-expression.jar usr/share/red5/lib/org.springframework.expression.jar
/usr/share/java/spring3-web.jar usr/share/red5/lib/org.springframework.web.jar
/usr/share/java/quartz.jar usr/share/red5/lib/quartz.jar
/usr/share/java/xmlrpc-server.jar usr/share/red5/lib/xmlrpc-server.jar
/usr/share/java/xmlrpc-common.jar usr/share/red5/lib/xmlrpc-common.jar
/usr/share/java/jaxp-1.4.jar usr/share/red5/lib/jaxp-1.4.jar
# Spring AOP
/usr/share/java/spring3-aop.jar usr/share/red5/lib/org.springframework.aop.jar
/usr/share/java/aopalliance.jar usr/share/red5/lib/com.springsource.org.aopalliance.jar
/usr/share/java/cglib.jar usr/share/red5/lib/com.springsource.net.sf.cglib.jar
# Dependencies for Tomcat Plugin
# libservlet2.5-java
/usr/share/java/el-api-2.1.jar var/lib/red5/plugins/el-api.jar
# libtomcat6-java
/usr/share/java/annotations-api.jar var/lib/red5/plugins/annotations-api.jar
/usr/share/java/catalina.jar var/lib/red5/plugins/catalina.jar
/usr/share/java/jasper.jar var/lib/red5/plugins/jasper.jar
/usr/share/java/jasper-el.jar var/lib/red5/plugins/jasper-el.jar
/usr/share/java/tomcat-coyote.jar var/lib/red5/plugins/tomcat-coyote.jar
/usr/share/java/tomcat-juli.jar var/lib/red5/plugins/tomcat-juli-slf4j.jar
# libecj-java
/usr/share/java/ecj.jar var/lib/red5/plugins/jasper-jdt.jar
debian/patches/ 0000755 0000000 0000000 00000000000 12214162222 010607 5 ustar debian/patches/series 0000644 0000000 0000000 00000000357 11760526540 012045 0 ustar 02_no_lib_dir.diff
04_build_html_docs.diff
06_use_xmlrpc3.diff
#10_remove_red5_bootstrap_classloader.diff
11_change_red5_bootstrap.diff
11_change_jmx_port.diff
12_javadoc_links.diff
14_document_removed_stuff.diff
16_plugins_build_lib.diff
debian/patches/02_no_lib_dir.diff 0000644 0000000 0000000 00000004603 11760526540 014061 0 ustar Description: build.xml: remove usage of lib/ directory.
Author: Damien Raude-Morvan
Forwarded: not-needed
Last-Update: 2011-03-04
--- a/build.xml
+++ b/build.xml
@@ -57,27 +57,31 @@
+
+
+
+
+
+
+
+
-
+
-
+
-
+
+
-
-
-
-
-
-
+
@@ -462,9 +466,11 @@
+
@@ -506,14 +512,6 @@
-
-
-
-
-
-
-
-
debian/patches/04_build_html_docs.diff 0000644 0000000 0000000 00000003440 12206420531 015101 0 ustar Description: build.xml: Building HTML manual
- Use a custom classpath with saxon and xerces (XSLT) from Debian
Debian package: libsaxon-java and libxerces2-java
- Use Debian provided docbook XSL stylesheets
Debian package: docbook-xsl
Author: Damien Raude-Morvan
Forwarded: no
Last-Update: 2011-09-21
--- a/doc/reference/build.xml
+++ b/doc/reference/build.xml
@@ -22,9 +22,14 @@
else="">
-
+
+
+
+
+
+
-
+
--- a/doc/reference/styles/html_chunk.xsl
+++ b/doc/reference/styles/html_chunk.xsl
@@ -3,7 +3,7 @@
This is the XSL HTML configuration file for the Spring Reference Documentation.
-->
+
]>
debian/patches/16_plugins_build_lib.diff 0000644 0000000 0000000 00000003000 11760526540 015442 0 ustar Description: Use debian.build.classpath property
for classpath of javac.
Author: Damien Raude-Morvan
Last-Update: 2011-03-05
Forwarded: not-needed
--- a/plugins/tomcat/build.xml
+++ b/plugins/tomcat/build.xml
@@ -14,14 +14,15 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -39,7 +40,7 @@
-
+
debian/patches/12_javadoc_links.diff 0000644 0000000 0000000 00000004455 11760526540 014576 0 ustar Description: Change javadocs links to use local Javadocs
Author: Damien Raude-Morvan
Last-Update: 2010-04-19
Forwarded: not-needed
--- a/build.xml
+++ b/build.xml
@@ -19,7 +19,7 @@
-
+
@@ -423,7 +423,7 @@
+ windowtitle="${documentation.title}">
@@ -437,16 +437,10 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
debian/patches/06_use_xmlrpc3.diff 0000644 0000000 0000000 00000007002 11760526540 014225 0 ustar Description: src/org/red5/server/net/servlet/StatisticsServlet.java:
Use Java XmlRpc 3.1 API
(Debian package libxmlrpc3-server-java).
Author: Damien Raude-Morvan
Forwarded: yes
Bug: http://trac.red5.org/ticket/572
Last-Update: 2011-03-04
--- a/src/org/red5/server/net/servlet/StatisticsServlet.java
+++ b/src/org/red5/server/net/servlet/StatisticsServlet.java
@@ -20,13 +20,19 @@
import java.io.IOException;
import java.io.OutputStream;
+import java.net.URL;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import org.apache.xmlrpc.XmlRpcServer;
+import org.apache.xmlrpc.XmlRpcException;
+import org.apache.xmlrpc.XmlRpcRequest;
+import org.apache.xmlrpc.server.PropertyHandlerMapping;
+import org.apache.xmlrpc.server.RequestProcessorFactoryFactory;
+import org.apache.xmlrpc.server.RequestProcessorFactoryFactory.RequestSpecificProcessorFactoryFactory;
+import org.apache.xmlrpc.webserver.XmlRpcServlet;
import org.red5.server.api.IContext;
import org.red5.server.statistics.XmlRpcScopeStatistics;
import org.springframework.web.context.WebApplicationContext;
@@ -38,12 +44,10 @@
* @author The Red5 Project (red5@osflash.org)
* @author Joachim Bauch (jojo@struktur.de)
*/
-public class StatisticsServlet extends HttpServlet {
+public class StatisticsServlet extends XmlRpcServlet {
private static final long serialVersionUID = 5810139109603229027L;
- private final transient XmlRpcServer server = new XmlRpcServer();
-
protected transient WebApplicationContext webAppCtx;
protected transient IContext webContext;
@@ -51,6 +55,7 @@
/** {@inheritDoc} */
@Override
public void init() throws ServletException {
+ super.init();
webAppCtx = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
if (webAppCtx == null) {
webAppCtx = (WebApplicationContext) getServletContext().getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
@@ -60,20 +65,26 @@
}
webContext = (IContext) webAppCtx.getBean("web.context");
+ }
- // Register handlers in XML-RPC server
- server.addHandler("scopes", new XmlRpcScopeStatistics(webContext.getGlobalScope()));
+ public IContext getContext() {
+ return this.webContext;
}
- /** {@inheritDoc} */
- @Override
- public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- // Process request with XML-RPC server
- byte[] result = server.execute(request.getInputStream());
- response.setContentType("text/xml");
- response.setContentLength(result.length);
- OutputStream out = response.getOutputStream();
- out.write(result);
- out.close();
+ protected PropertyHandlerMapping newPropertyHandlerMapping(URL url) throws IOException, XmlRpcException {
+ PropertyHandlerMapping mapping = new PropertyHandlerMapping();
+
+ mapping.addHandler("scopes", XmlRpcScopeStatistics.class);
+
+ RequestProcessorFactoryFactory factory = new RequestSpecificProcessorFactoryFactory(){
+ protected Object getRequestProcessor(Class pClass, XmlRpcRequest pRequest) throws XmlRpcException {
+ XmlRpcScopeStatistics stats = (XmlRpcScopeStatistics) super.getRequestProcessor(pClass, pRequest);
+ stats.setGlobalScope(StatisticsServlet.this.getContext().getGlobalScope());
+ return stats;
+ }
+ };
+ mapping.setRequestProcessorFactoryFactory(factory);
+ mapping.load(Thread.currentThread().getContextClassLoader(), url);
+ return mapping;
}
}
debian/patches/14_document_removed_stuff.diff 0000644 0000000 0000000 00000002656 11760526540 016540 0 ustar Description: Describe removed /demos and /installer webapp
in index.html
Author: Damien Raude-Morvan
Forwarded: not-needed
Last-Update: 2011-03-04
--- a/webapps/root/index.html
+++ b/webapps/root/index.html
@@ -94,6 +94,36 @@
If you prefer to jump right in, follow these steps:
+
+
+Debian "red5-server" package doesn't contains /demos or /installer webapps.
+Please note that /installer and /demos webapps are for demonstration purpose
+only and should never be installed on a public red5 server
+(no security at all in those applications).
+
+
+Furthermore, they contains non-free stuffs :
+
+
*.swf binary-only (Flash Player) files
+
*.flv movies trailers like Avatar / Toy Story 3
+
+
+
+As root, you can install /demos (SWF files) and /installer webapp, by issuing :
+
debian/patches/11_change_jmx_port.diff 0000644 0000000 0000000 00000001514 11760526540 015126 0 ustar Description: Change JMX port from 9999 to 9980
(9999 may conflict with approx proxy server)
Also change JMX listner to bind on loopback only.
Author: Damien Raude-Morvan
Last-Update: 2011-03-04
Forwarded: not-needed
--- a/red5-shutdown.sh
+++ b/red5-shutdown.sh
@@ -8,6 +8,6 @@
export JAVA_OPTS="-Djavax.net.ssl.keyStore=$RED5_HOME/conf/keystore.jmx -Djavax.net.ssl.keyStorePassword=password"
# port, username, password
-export RED5_OPTS="9999 red5user changeme"
+export RED5_OPTS="9980 red5user changeme"
export RED5_MAINCLASS=org.red5.server.Shutdown
exec $RED5_HOME/red5.sh
--- a/src/conf/red5.properties
+++ b/src/conf/red5.properties
@@ -63,7 +63,7 @@
# JMX
jmx.rmi.host=localhost
-jmx.rmi.port=9999
+jmx.rmi.port=9980
jmx.rmi.port.remoteobjects=
jmx.keystorepass=password
jmx.mina.monitor.enable=true
debian/patches/10_remove_red5_bootstrap_classloader.diff 0000644 0000000 0000000 00000003054 11451631343 020637 0 ustar Description: Don't use Red5 internal bootstraping system.
Rely on current classpath only.
Forwarded: no
Origin: vendor
Author: Damien Raude-Morvan
Last-Update: 2009-10-03
--- a/src/org/red5/server/Bootstrap.java
+++ b/src/org/red5/server/Bootstrap.java
@@ -120,22 +120,25 @@
*/
//get current loader
- ClassLoader baseLoader = Thread.currentThread().getContextClassLoader();
+ //ClassLoader baseLoader = Thread.currentThread().getContextClassLoader();
// build a ClassLoader
- ClassLoader loader = ClassLoaderBuilder.build();
+ //ClassLoader loader = ClassLoaderBuilder.build();
//set new loader as the loader for this thread
- Thread.currentThread().setContextClassLoader(loader);
+ //Thread.currentThread().setContextClassLoader(loader);
// create a new instance of this class using new classloader
- Object boot = Class.forName("org.red5.server.Launcher", true, loader).newInstance();
+ //Object boot = Class.forName("org.red5.server.Launcher", true, loader).newInstance();
- Method m1 = boot.getClass().getMethod("launch", (Class[]) null);
- m1.invoke(boot, (Object[]) null);
+ //Method m1 = boot.getClass().getMethod("launch", (Class[]) null);
+ //m1.invoke(boot, (Object[]) null);
//not that it matters, but set it back to the original loader
- Thread.currentThread().setContextClassLoader(baseLoader);
+ //Thread.currentThread().setContextClassLoader(baseLoader);
+
+ org.red5.server.Launcher launcher = new org.red5.server.Launcher();
+ launcher.launch();
}
/**
debian/patches/11_change_red5_bootstrap.diff 0000644 0000000 0000000 00000001055 11760526540 016220 0 ustar Description: Don't exclude some JAR's from build classpath.
There is no need for that and it fail with our version-less JARs.
Author: Damien Raude-Morvan
Last-Update: 2011-03-04
Forwarded: not-needed
--- a/src/org/red5/classloading/ClassLoaderBuilder.java
+++ b/src/org/red5/classloading/ClassLoaderBuilder.java
@@ -174,7 +174,7 @@
}
//look over the libraries and remove the old versions
- scrubURLList(urlList);
+ //scrubURLList(urlList);
//get config dir
String conf = System.getProperty("red5.config_root");
debian/red5-doc.doc-base.api 0000644 0000000 0000000 00000000364 11451631343 012743 0 ustar Document: red5-api
Title: API Javadoc for Red5
Author: Red5 developers
Abstract: This is the API Javadoc provided by the Red5 server.
Section: Programming
Format: HTML
Index: /usr/share/doc/red5/api/index.html
Files: /usr/share/doc/red5/api/*
debian/red5-server.init 0000644 0000000 0000000 00000016424 11640656010 012224 0 ustar #!/bin/sh
#
# Copyright (c) 2007 Javier Fernandez-Sanguino
#
# This is free software; you may redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.
#
# This is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License with
# the Debian operating system, in /usr/share/common-licenses/GPL; if
# not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
#
### BEGIN INIT INFO
# Provides: red5-server
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: $named
# Should-Stop: $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Red5
# Description: Flash streaming server
### END INIT INFO
# Configuration options not overrideable
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=red5-server
DAEMON=/usr/share/red5/red5.sh
DAEMON_STOP=/usr/share/red5/red5-shutdown.sh
RED5_MAINCLASS=org.red5.server.Bootstrap
DESC="Flash streaming server"
PIDFILE=/var/run/$NAME.pid
DEFAULT=/etc/default/$NAME
. /lib/lsb/init-functions
# Default options, these can be overriden by the information
# at /etc/default/red5-server
# Whether to start Red5 (as a daemon or not)
NO_START=0
# Time to wait for the server to die, in seconds
DIETIME=30
# Time to wait for the server to start, in seconds
STARTTIME=5
# Users to run the daemons as. If this value
# is set start-stop-daemon will chuid the server
DAEMONUSER=_red5
# JVM to use to start Red5
JAVA_HOME=/usr/lib/jvm/default-java/
# JVM options for startup
JAVA_OPTS=
# Home of Red5 server
RED5_HOME=/usr/share/red5/
# Options for Red5 server
RED5_OPTS=
# End of variables that can be overwritten
# Include defaults if available
[ -r $DEFAULT ] && . $DEFAULT
# Export variable used by red5.sh
export JAVA_HOME JAVA_OPTS RED5_HOME RED5_OPTS
# Exit now if daemon binary is not installed
test -x $DAEMON || exit 0
# Check that the user exists (if we set a user)
# Does the user exist?
if [ -n "$DAEMONUSER" ] ; then
if getent passwd | grep -q "^$DAEMONUSER:"; then
# Obtain the uid and gid
DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'`
DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'`
else
log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist."
exit 1
fi
fi
# Check whether startup has been disabled
if [ "$NO_START" != "0" -a "$1" != "stop" ]; then
[ "$VERBOSE" != "no" ] && log_failure_msg "Not starting $NAME - edit /etc/default/$NAME and change NO_START to be 0 (or comment it out)."
exit 0
fi
set -e
running_pid() {
# Check if a given process pid's cmdline matches a given name
pid=$1
[ -z "$pid" ] && return 1
[ ! -d /proc/$pid ] && return 1
cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|tail -n 1 |cut -d : -f 1`
exe=`basename $cmd`
# Is this the expected server
[ "x$exe" != "x$RED5_MAINCLASS" ] && return 1
return 0
}
running() {
# Check if the process is running looking at /proc
# (works for all users)
# No pidfile, probably no daemon present
[ ! -f "$PIDFILE" ] && return 1
pid=`cat $PIDFILE`
running_pid $pid || return 1
return 0
}
start_server() {
# Start the process using the wrapper
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile \
--chuid $DAEMONUSER --background \
--chdir $RED5_HOME \
--name java --startas $DAEMON -- $RED5_OPTS
errcode=$?
return $errcode
}
stop_server() {
# Stop the process using the wrapper
start-stop-daemon --stop --quiet --pidfile $PIDFILE \
--user $DAEMONUSER \
--chdir $RED5_HOME \
--name java --startas $DAEMON_STOP -- $RED5_OPTS
errcode=$?
return $errcode
}
reload_server() {
[ ! -f "$PIDFILE" ] && return 1
pid=pidofproc $PIDFILE # This is the daemon's pid
# Send a SIGHUP
kill -1 $pid
return $?
}
force_stop() {
# Force the process to die killing it manually
[ ! -e "$PIDFILE" ] && return
if running ; then
kill -15 $pid
# Is it really dead?
sleep "$DIETIME"s
if running ; then
kill -9 $pid
sleep "$DIETIME"s
if running ; then
echo "Cannot kill $NAME (pid=$pid)!"
exit 1
fi
fi
fi
rm -f $PIDFILE
}
case "$1" in
start)
log_daemon_msg "Starting $DESC " "$NAME"
# Check if it's running first
if running ; then
log_progress_msg "apparently already running"
log_end_msg 0
exit 0
fi
if start_server ; then
# NOTE: Some servers might die some time after they start,
# this code will detect this issue if STARTTIME is set
# to a reasonable value
[ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time
if running ; then
# It's ok, the server started and is running
log_end_msg 0
else
# It is not running after we did start
log_end_msg 1
fi
else
# Either we could not start it
log_end_msg 1
fi
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
if running ; then
# Only stop the server if we see it running
errcode=0
stop_server || errcode=$?
log_end_msg $errcode
else
# If it's not running don't do anything
log_progress_msg "apparently not running"
log_end_msg 0
exit 0
fi
;;
force-stop)
# First try to stop gracefully the program
$0 stop
if running; then
# If it's still running try to kill it more forcefully
log_daemon_msg "Stopping (force) $DESC" "$NAME"
errcode=0
force_stop || errcode=$?
log_end_msg $errcode
fi
;;
restart|force-reload)
log_daemon_msg "Restarting $DESC" "$NAME"
errcode=0
stop_server || errcode=$?
# Wait some sensible amount, some server need this
[ -n "$DIETIME" ] && sleep $DIETIME
start_server || errcode=$?
[ -n "$STARTTIME" ] && sleep $STARTTIME
running || errcode=$?
log_end_msg $errcode
;;
status)
log_daemon_msg "Checking status of $DESC" "$NAME"
if running ; then
log_progress_msg "running"
log_end_msg 0
else
log_progress_msg "apparently not running"
log_end_msg 1
exit 1
fi
;;
reload)
log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon"
log_warning_msg "cannot re-read the config file (use restart)."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2
exit 1
;;
esac
exit 0
debian/red5-server.bug-control 0000644 0000000 0000000 00000000057 11543217643 013516 0 ustar report-with: libred5-java red5-doc red5-server
debian/logback.xml 0000644 0000000 0000000 00000014612 11760526540 011324 0 ustar
[%p] [%thread] %logger - %msg%n/var/log/red5/red5.logfalseUTF-8falsetrue%d{ISO8601} [%thread] %-5level %logger{35} - %msg%n/var/log/red5/error.logfalseUTF-8falsetrueWARN%d{ISO8601} [%thread] %-5level %logger{35} - %msg%n
debian/changelog 0000644 0000000 0000000 00000014122 12214162221 011031 0 ustar red5 (1.0~svn4374-3) unstable; urgency=low
* Fix FTBFS with updated libxmlrpc3-server-java (Closes: #717261):
- d/{ant.properties,red5-server.links}: Update JAR location.
* Bump Standards-Version to 3.9.4: no changes needed.
* d/control: Fix Vcs-* fields to use canonical URLs.
-- Damien Raude-Morvan Sun, 25 Aug 2013 11:18:10 +0200
red5 (1.0~svn4374-2) unstable; urgency=low
[ James Page ]
* Transition package to use default java implementation (Closes: #684287):
- d/control: BD on default-jdk (>= 1:1.6) instead of openjdk-6-jdk.
- d/rules: Set JAVA_HOME to /usr/lib/jvm/default-java.
- d/ant.properties: Set source/target = 1.6 to ensure Java6+7
compatible bytecode is built.
[ Damien Raude-Morvan ]
* Upload to unstable.
-- Damien Raude-Morvan Thu, 16 Aug 2012 23:18:00 +0200
red5 (1.0~svn4374-1) unstable; urgency=low
* New upstream snapshot (r4374 in SVN):
- License switch to Apache-2.0 (mostly).
- Refresh all patches.
- Drop 15_jython25.diff, merged upstream.
- Upgrade instructions to get demos and installer working.
* Bump Standards-Version to 3.9.3: no changes needed.
* Wrap-and-sort debian/control.
* Add Depends on runtime dependencies (for AOP):
- libspring-aop-java
- libaopalliance-java
- libcglib-java
* d/logback.xml: Set default log level to INFO.
-- Damien Raude-Morvan Sun, 27 May 2012 22:58:08 +0200
red5 (1.0~svn4279-1) unstable; urgency=low
* New upstream snapshot (r4279 in SVN):
- d/patches/13_jaudiotagger2.diff: Droped, merged upstream.
- d/control: Replace libcommons-httpclient-java by libhttpcore-java
and libhttpclient-java.
- d/control: Replace libcommons-lang-java by libcommons-lang3-java.
- d/control: Depends on libxml-commons-external-java.
* d/control: Bump Standards-Version to 3.9.2: no changes needed.
* d/control: Depends on librhino-java instead of rhino.
* d/README.Debian: Add information about webapp.virtualHosts and
remove warning about spring 2.5.
* d/ant.properties: Use quartz.jar instead of old quartz-all.jar.
* d/rules: Handle multi-arch openjdk during build. (Closes: #642275).
* Use default-java for now (since multi-arch enabled openjdk-6/7 are easy
to use inside init.d).
-- Damien Raude-Morvan Wed, 28 Sep 2011 18:25:03 +0200
red5 (1.0~svn4198-2) unstable; urgency=low
* d/red5-server.links: Fix links in /usr/share/red5/plugins - some of them
are dangling to locations from tomcat6-common instead of libtomcat6-java
(Closes: #619583).
* d/red5-server.bug-control: Add information about libred5-java when
reporting issues on red5-server.
-- Damien Raude-Morvan Fri, 25 Mar 2011 23:58:10 +0100
red5 (1.0~svn4198-1) unstable; urgency=low
* New upstream release (1.0 RC1).
- d/orig-tar.sh: add "plugins" component for tomcatplugin.
- d/orig-tar.exclude: exclude vod/ from tarball.
- d/{build.xml,rules}: new d/build.xml to build red5 + plugins.
* d/{control,ant.properties}: use Spring Framework 3.x (Closes: #579150).
* d/patches/*: all refreshed.
* d/patches/16_plugins_build_lib.diff: use debian.build.classpath property
for classpath of javac.
* d/control:
- drop Depends on libaopalliance-java, libspring-aop-java, libjetty-java,
libmx4-java and libbackport-util-concurrent-java.
- add Depends on rhino and libstax-java.
- move Depends on libtomcat6-java to red5-server.
-- Damien Raude-Morvan Fri, 04 Mar 2011 23:21:45 +0100
red5 (0.9.1-4) unstable; urgency=low
* Fix typo in d/README.Debian and d/patches/14_document_removed_stuff.diff.
* d/copyright: Update for new DEP-5 specification.
* Move to pkg-flash packaging team SVN repository.
-- Damien Raude-Morvan Sat, 02 Oct 2010 15:30:04 +0200
red5 (0.9.1-3) unstable; urgency=low
* Bump Standards-Version to 3.9.1: no changes needed.
* Improve d/README.Debian and d/patches/14_document_removed_stuff.diff:
- Describe security issues with /installer and /demos webapps
- Explain how to install them directly on index.html
* d/patches/15_jython25.diff: Fix FTBFS with Jython >= 2.5.
-- Damien Raude-Morvan Sat, 31 Jul 2010 19:01:44 +0200
red5 (0.9.1-2) unstable; urgency=low
* /etc/init.d/red5-server:
- set NAME before using it for /etc/default/$NAME (Closes: #585530)
- export JAVA_HOME, JAVA_OPTS, RED5_HOME and RED5_OPTS for red5.sh usage
* Bump Standards-Version to 3.9.0: no changes needed.
* d/red5-server.install: Also install red5 logo to root webapp
* d/README.Debian:
- Describe how to install demos applications (Closes: #585946).
- Install it in red5-server package.
* d/orig-tar.exclude: Document removed stuffs
-- Damien Raude-Morvan Thu, 01 Jul 2010 00:42:55 +0200
red5 (0.9.1-1) unstable; urgency=low
* New upstream release (Closes: #576355):
- Refresh patches.
* Bump Standards-Version to 3.8.4: no changes needed.
* Switch to 3.0 (quilt) source format:
- d/source/format: Set 3.0 (quilt)
- d/rules: Remove /usr/share/cdbs/1/rules/patchsys-quilt.mk
- d/control: Remove B-D on quilt
- d/README.source: Removed
- Use multi-orig-tarball support: create new "orig-doc.tar.gz".
* Add Build-Conflicts: liblogback-java (= 0.9.20-1)
(Closes: #577859)
-- Damien Raude-Morvan Fri, 23 Apr 2010 20:35:14 +0200
red5 (0.9~svn3968-2) unstable; urgency=low
* Upload to unstable distribution
* Red5 API documentation:
- Build-Depends and use default-jdk-doc instead of openjdk-6-doc
- red5-doc now Recommends default-jdk-doc
* red5-server.init: Add dependency on $remote_fs
* Add debian/patches/13_jaudiotagger2.diff to fix compatibility
with libjaudiotagger-java 2.0
* Fix debian/watch to track only stable release
-- Damien Raude-Morvan Sun, 17 Jan 2010 22:04:48 +0100
red5 (0.9~svn3968-1) experimental; urgency=low
* Initial release. (Closes: #503594)
-- Damien Raude-Morvan Mon, 30 Nov 2009 23:29:23 +0100
debian/red5-server.default 0000644 0000000 0000000 00000001127 11640656010 012677 0 ustar # Whether to start Red5 (as a daemon or not)
#NO_START=0
# Time to wait for the server to die, in seconds
#DIETIME=30
# Time to wait for the server to start, in seconds
#STARTTIME=5
# Users to run the daemons as. If this value
# is set start-stop-daemon will chuid the server
#DAEMONUSER=_red5
# JVM to use to start Red5 (use OpenJDK6 by default)
# If you leave it blank, will use alternative system (ie. /usr/bin/java symlink)
#JAVA_HOME=/usr/lib/jvm/default-java/
# JVM options for startup
#JAVA_OPTS=
# Home of Red5 server
#RED5_HOME=/usr/share/red5/
# Options for Red5 server
#RED5_OPTS=
debian/copyright 0000644 0000000 0000000 00000004214 11760526540 011130 0 ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: RED5 Open Source Flash Server
Upstream-Contact: The Red5 Project, http://www.red5.org/
Source: http://www.red5.org/downloads/
Files: *
Copyright: Copyright 2006-2009 by The Red5 Project (red5@osflash.org)
License: Apache-2.0
Files: src/org/red5/server/service/Installer.java
src/org/red5/server/service/WarDeployer.java
src/org/red5/server/stream/provider/FileProvider.java
src/org/red5/server/scheduling/ApplicationSchedulingService.java
src/org/red5/server/session/SessionManager.java
plugins/*
test/scripts/*
Copyright: Copyright 2006-2009 by The Red5 Project (red5@osflash.org)
License: LGPL-2.1+
Files: debian/*
Copyright: Copyright 2008-2009, Damien Raude-Morvan
License: Apache-2.0
License: LGPL-2.1+
This library is free software; you can redistribute it and/or modify it under the
terms of the GNU Lesser General Public License as published by the Free Software
Foundation; either version 2.1 of the License, or (at your option) any later
version.
.
This library is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
.
On Debian systems the full text of the GNU Lesser General Public License
can be found in the `/usr/share/common-licenses/LGPL-2.1' file.
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian systems the full text of the GNU Lesser General Public License
can be found in the `/usr/share/common-licenses/Apache-2.0' file.
debian/red5-server.README.Debian 0000644 0000000 0000000 00000005024 11760526540 013400 0 ustar Red5 for Debian
===============
Packaging
---------
Red5 debian package is divided into:
- libred5-java: contains jar which can be used to embed Red5
- red5-doc: contains Javadoc API and other documentations about Red5
- red5-server: contains configuration and init script for Red5
Directories
-----------
This debian package installs red5 into /usr/share/red5/
The configuration of the server is in /etc/red5/
Webapps can be deployed by placing them in /var/lib/red5/webapps/
(linked from /usr/share/red5/webapps)
Logs can be found in /var/log/red5/
Documentation
-------------
- Javadoc API is in /usr/share/doc/red5/api/index.html
- Red5 Reference Manual is in /usr/share/doc/red5/html/index.html
Startup
-------
You can customize Red5 startup parameters by editing /etc/default/red5-server file.
For example, you can set JAVA_OPTS=-Xmx512m for applications with extended memory needs.
Ports
-----
By default, Red5 open the following ports :
- 5080 (HTTP port - embedded Tomcat)
- 1935 (RTMP port)
- 8443 (RTMPS port)
- 9980 (JMX port - admin and shutdown)
You can edit port mapping in /etc/red5/red5.properties
Demos / Installer
-----------------
Debian "red5-server" package doesn't contains /demos or /installer webapps.
Please note that /installer and /demos webapps are for demonstration purpose
only and should never be installed on a public red5 server
(no security at all in those applications).
Furthermore, they contains non-free stuffs :
- *.swf binary-only (Flash Player) files
- *.flv movies trailers like Avatar / Toy Story 3
As root, you can install /demos (SWF files) and /installer webapp, by issuing :
# wget http://wiki.red5.org/downloads/1_0/red5-1.0.0-RC2.zip
# mkdir red5/; cd red5;
# unzip ../red5-1.0.0-RC2.zip
# cp -R webapps/root/demos /var/lib/red5/webapps/root/demos
# cp -R webapps/installer /var/lib/red5/webapps/installer
# find /var/lib/red5/webapps/ -type d -exec chown _red5 {} \;
# cd ..
# rm -rf red5*
# /etc/init.d/red5-server restart
Then, you can point your favorite browser to
and install demos of your choice (Java application's parts).
NB: If you only got a 404 or 500 error page, this is because you try to access
installer by remote access (ie. disabled by default).
If you want to enable remote access to installer, you can edit
/var/lib/red5/webapps/installer/WEB-INF/red5-web.properties
and change value of
webapp.virtualHosts=localhost, localhost:5080
to
webapp.virtualHosts=*
After installing some application, you should revert this back to keep your
server secure.
debian/build.xml 0000644 0000000 0000000 00000001100 11636435027 011006 0 ustar
debian/red5-server.postinst 0000644 0000000 0000000 00000001271 11451631343 013140 0 ustar #!/bin/sh
# Author: Damien Raude-Morvan .
set -e
DAEMONUSER=_red5
DAEMON=/usr/share/red5/red5.sh
case "$1" in
configure)
if ! id $DAEMONUSER > /dev/null 2>&1 ; then
adduser --system --force-badname --no-create-home \
--home /usr/share/red5 \
"$DAEMONUSER"
fi
chown -R $DAEMONUSER:nogroup /var/log/red5 /var/cache/red5
chown -R $DAEMONUSER:adm /etc/red5
chown $DAEMONUSER:adm /var/log/red5 /var/cache/red5
chmod -R 770 /etc/red5
chmod 750 /var/log/red5 /etc/red5
chmod 700 /var/cache/red5
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
debian/orig-tar.sh 0000644 0000000 0000000 00000002073 11534472417 011260 0 ustar #!/bin/sh -e
# $1 version
MAINTAR=../red5_$1.orig.tar.gz
DOCTAR=../red5_$1.orig-doc.tar.gz
PLUGINSTAR=../red5_$1.orig-plugins.tar.gz
# 1) Extract tag from package version
# VERSION=`echo $1 | sed -e 's/[+~].*//g' | sed -e 's/\./_/g'`
# 2) Extract everything after "svn" in $1
REVISION=`echo $1 | sed 's/.*svn//'`
SVN="svn export --ignore-externals -r $REVISION"
# main tarball
DIR=red5-$1.orig
$SVN http://red5.googlecode.com/svn/java/server/trunk/ $DIR
rm -rf $DIR/plugins
GZIP=--best tar -c -z -f $MAINTAR -X debian/orig-tar.exclude $DIR
rm -rf $DIR
# doc tarball
DIR=red5-$1.orig-doc
$SVN http://red5.googlecode.com/svn/doc/trunk/ $DIR
GZIP=--best tar -c -z -f $DOCTAR -X debian/orig-tar.exclude $DIR
rm -rf $DIR
# plugins tarball
DIR=red5-$1.orig-plugins
$SVN http://red5.googlecode.com/svn/java/plugins/trunk/ $DIR
GZIP=--best tar -c -z -f $PLUGINSTAR -X debian/orig-tar.exclude $DIR
rm -rf $DIR
# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
. .svn/deb-layout
mv $MAINTAR $origDir
mv $DOCTAR $origDir
echo "moved tarballs to $origDir"
fi
exit 0
debian/watch 0000644 0000000 0000000 00000000236 11451631343 010221 0 ustar version=3
opts="uversionmangle=s/_/\./g,dversionmangle=s/[+~]svn.*//" \
http://red5.googlecode.com/svn/java/server/tags/ ([0-9_]*)/ debian debian/orig-tar.sh
debian/red5-doc.install 0000644 0000000 0000000 00000000216 11760526540 012165 0 ustar doc/api/ /usr/share/doc/red5/
doc/examples/ /usr/share/doc/red5/
doc/readme.txt /usr/share/doc/red5/
doc/reference/html/ /usr/share/doc/red5/
debian/compat 0000644 0000000 0000000 00000000002 11451631343 010365 0 ustar 7