summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Felisberto <humpback@gentoo.org>2005-04-08 20:02:35 +0000
committerGustavo Felisberto <humpback@gentoo.org>2005-04-08 20:02:35 +0000
commit9a953455e9d34b162e5bf0666e90362ee793e85a (patch)
treefc98dff065339883e7ed1da3c053b5acabbc649e /net-im/ejabberd/files
parentMarked stable on amd64. (diff)
downloadgentoo-2-9a953455e9d34b162e5bf0666e90362ee793e85a.tar.gz
gentoo-2-9a953455e9d34b162e5bf0666e90362ee793e85a.tar.bz2
gentoo-2-9a953455e9d34b162e5bf0666e90362ee793e85a.zip
initial import
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-im/ejabberd/files')
-rw-r--r--net-im/ejabberd/files/digest-ejabberd-0.7.51
-rw-r--r--net-im/ejabberd/files/ejabberd11
-rw-r--r--net-im/ejabberd/files/ejabberd-0.7.5.confd17
-rw-r--r--net-im/ejabberd/files/ejabberd-0.7.5.initd60
-rw-r--r--net-im/ejabberd/files/ejabberdctl8
-rw-r--r--net-im/ejabberd/files/inetrc1
6 files changed, 98 insertions, 0 deletions
diff --git a/net-im/ejabberd/files/digest-ejabberd-0.7.5 b/net-im/ejabberd/files/digest-ejabberd-0.7.5
new file mode 100644
index 000000000000..055b2419dcdd
--- /dev/null
+++ b/net-im/ejabberd/files/digest-ejabberd-0.7.5
@@ -0,0 +1 @@
+MD5 c9f900ed535cb446e8b567048514c705 ejabberd-0.7.5.tar.gz 410451
diff --git a/net-im/ejabberd/files/ejabberd b/net-im/ejabberd/files/ejabberd
new file mode 100644
index 000000000000..2bc1ddf1d93f
--- /dev/null
+++ b/net-im/ejabberd/files/ejabberd
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+erl -pa /var/lib/ejabberd/ebin \
+ -sname ejabberd \
+ -s ejabberd \
+ -ejabberd config \"/etc/ejabberd/ejabberd.cfg\" \
+ -kernel inetrc \"/etc/ejabberd/inetrc\" \
+ log_path \"/var/log/ejabberd/ejabberd.log\" \
+ -sasl sasl_error_logger \{file,\"/var/log/ejabberd/sasl.log\"\} \
+ -mnesia dir \"/var/spool/ejabberd\" \
+ $@
diff --git a/net-im/ejabberd/files/ejabberd-0.7.5.confd b/net-im/ejabberd/files/ejabberd-0.7.5.confd
new file mode 100644
index 000000000000..5377b59dfbf2
--- /dev/null
+++ b/net-im/ejabberd/files/ejabberd-0.7.5.confd
@@ -0,0 +1,17 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-0.7.5.confd,v 1.1 2005/04/08 20:02:35 humpback Exp $
+
+# Name of your ejabberd node. Used by ejabberdctl to determine which
+# node to communicate with. Default is "ejabberd@`hostname -s`".
+#EJABBERD_NODE="ejabberd@`hostname -s`"
+
+# Max number of open network connections. Default is 1024. Increasing
+# this will slightly increase memory usage.
+#ERL_MAX_PORTS=1024
+
+# Return memory to the system after using it, instead of keeping it
+# allocated for future use. Decreases the memory required by ejabberd,
+# but makes it run slower. Default is unset, set to any value to
+# activate.
+#ERL_FULLSWEEP_AFTER=0
diff --git a/net-im/ejabberd/files/ejabberd-0.7.5.initd b/net-im/ejabberd/files/ejabberd-0.7.5.initd
new file mode 100644
index 000000000000..06a4fbaec184
--- /dev/null
+++ b/net-im/ejabberd/files/ejabberd-0.7.5.initd
@@ -0,0 +1,60 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-0.7.5.initd,v 1.1 2005/04/08 20:02:35 humpback Exp $
+
+opts="${opts} reload"
+
+depend() {
+ use dns
+ need net
+ provide jabber-server
+}
+
+checkconfig() {
+ if [ ! -e /etc/ejabberd/ejabberd.cfg ] ; then
+ eerror "You need an /etc/ejabberd/ejabberd.cfg file to run ejabberd"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting eJabberd"
+ start-stop-daemon --start --quiet --chuid ejabberd:ejabberd \
+ --exec /usr/bin/env HOME=/var/run/ejabberd /usr/bin/ejabberd -- -noshell -detached
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping eJabberd"
+ if [ -z "$EJABBERD_NODE" ];
+ then
+ EJABBERD_NODE="ejabberd@`hostname -s`"
+ fi
+ /usr/bin/ejabberdctl $EJABBERD_NODE stop
+ eend $?
+}
+
+# Work around a bug in /sbin/runscript.sh - it won't run our custom
+# restart() unless it finds these two strings in the file.
+# svc_start svc_stop
+restart() {
+ ebegin "Restarting eJabberd"
+ if [ -z "$EJABBERD_NODE" ];
+ then
+ EJABBERD_NODE="ejabberd@`hostname -s`"
+ fi
+ /usr/bin/ejabberdctl $EJABBERD_NODE restart
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading eJabberd"
+ if [ -z "$EJABBERD_NODE" ];
+ then
+ EJABBERD_NODE="ejabberd@`hostname -s`"
+ fi
+ /usr/bin/ejabberdctl $EJABBERD_NODE reopen-log
+ eend $?
+}
diff --git a/net-im/ejabberd/files/ejabberdctl b/net-im/ejabberd/files/ejabberdctl
new file mode 100644
index 000000000000..a3a18245e992
--- /dev/null
+++ b/net-im/ejabberd/files/ejabberdctl
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+exec env HOME=/var/run/ejabberd \
+ erl -pa /var/lib/ejabberd/ebin \
+ -noinput \
+ -sname ejabberdctl \
+ -s ejabberd_ctl \
+ -extra $@
diff --git a/net-im/ejabberd/files/inetrc b/net-im/ejabberd/files/inetrc
new file mode 100644
index 000000000000..2d2f63575c2e
--- /dev/null
+++ b/net-im/ejabberd/files/inetrc
@@ -0,0 +1 @@
+{file, resolv, "/etc/resolv.conf"}.