summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-im/openfire/files
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-im/openfire/files')
-rw-r--r--net-im/openfire/files/openfire-confd11
-rw-r--r--net-im/openfire/files/openfire-initd29
-rw-r--r--net-im/openfire/files/openfire.service13
3 files changed, 53 insertions, 0 deletions
diff --git a/net-im/openfire/files/openfire-confd b/net-im/openfire/files/openfire-confd
new file mode 100644
index 00000000000..35caecef20c
--- /dev/null
+++ b/net-im/openfire/files/openfire-confd
@@ -0,0 +1,11 @@
+OPENFIRE_HOME=/opt/openfire
+OPENFIRE_LIB="${OPENFIRE_HOME}/lib"
+OPENFIRE_OPTS="-Xmx256m -DopenfireHome=${OPENFIRE_HOME} -Dopenfire.lib.dir=${OPENFIRE_LIB}"
+OPENFIRE_CLASS="-classpath ${OPENFIRE_LIB}/startup.jar"
+OPENFIRE_JAR="-jar ${OPENFIRE_LIB}/startup.jar"
+OPENFIRE_ARGS="-server ${OPENFIRE_OPTS} ${OPENFIRE_CLASS} ${OPENFIRE_JAR}"
+
+
+#JVM used by the openfire server. You can see a list of available vm's in /usr/lib/jvm/
+#But remenber that openfire needs a 1.5 jvm
+GENTOO_VM=sun-jdk-1.5
diff --git a/net-im/openfire/files/openfire-initd b/net-im/openfire/files/openfire-initd
new file mode 100644
index 00000000000..b9af618ba47
--- /dev/null
+++ b/net-im/openfire/files/openfire-initd
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+ provide jabber-server
+}
+
+start() {
+ [ -d /var/run/jabber ] || mkdir /var/run/jabber
+ #source /etc/env.d/java/20sun-jdk-1.5.0.06
+ #OPENFIRE_CMD="${JAVA_HOME}/bin/java"
+ OPENFIRE_CMD=`GENTOO_VM=${GENTOO_VM} java-config -J`
+
+ ebegin "Starting Openfire Server"
+ start-stop-daemon \
+ --user jabber \
+ --background \
+ --make-pidfile \
+ --pidfile /var/run/jabber/openfire.pid \
+ --start \
+ --exec ${OPENFIRE_CMD} -- ${OPENFIRE_ARGS} > /var/log/openfire.log 2>&1
+ eend
+}
+
+stop() {
+ ebegin "Stopping Openfire Messenger"
+ start-stop-daemon --pidfile /var/run/jabber/openfire.pid --stop
+ eend
+}
diff --git a/net-im/openfire/files/openfire.service b/net-im/openfire/files/openfire.service
new file mode 100644
index 00000000000..6f2ff26ed49
--- /dev/null
+++ b/net-im/openfire/files/openfire.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Openfire XMPP Server
+After=network.target
+
+[Service]
+User=jabber
+Group=jabber
+PrivateTmp=true
+ExecStart=/usr/bin/java -server -Xmx256m -DopenfireHome=/opt/openfire -Dopenfire.lib.dir=/opt/openfire/lib -classpath /opt/openfire/lib/startup.jar -jar /opt/openfire/lib/startup.jar
+SuccessExitStatus=143 SIGKILL
+
+[Install]
+WantedBy=multi-user.target