summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2009-04-09 05:40:39 +0000
committerPeter Volkov <pva@gentoo.org>2009-04-09 05:40:39 +0000
commit664830f8a33ed120038eab90a604415af8fce30c (patch)
treec4bd8b46361d59281ac1cfd33cc29c31c5b2bf63 /net-im/ejabberd/files
parentAdd missing dep on sys-apps/miscfiles. bug 262291 by Jeroen Roovers (diff)
downloadgentoo-2-664830f8a33ed120038eab90a604415af8fce30c.tar.gz
gentoo-2-664830f8a33ed120038eab90a604415af8fce30c.tar.bz2
gentoo-2-664830f8a33ed120038eab90a604415af8fce30c.zip
Version bump, bug #265341 thank candrews for report and Vadim Efimov for this work.
(Portage version: 2.2_rc28/cvs/Linux i686)
Diffstat (limited to 'net-im/ejabberd/files')
-rw-r--r--net-im/ejabberd/files/ejabberd-2.0.1.initd54
-rw-r--r--net-im/ejabberd/files/ejabberd-2.0.2.confd23
-rw-r--r--net-im/ejabberd/files/ejabberd-2.0.2.initd54
-rw-r--r--net-im/ejabberd/files/ejabberd-2.0.4.confd23
-rw-r--r--net-im/ejabberd/files/ejabberd-2.confd (renamed from net-im/ejabberd/files/ejabberd-2.0.1.confd)2
-rw-r--r--net-im/ejabberd/files/ejabberd-2.initd (renamed from net-im/ejabberd/files/ejabberd-2.0.4.initd)2
-rw-r--r--net-im/ejabberd/files/ejabberd-wrapper-2.0.2.template49
-rw-r--r--net-im/ejabberd/files/ejabberd-wrapper-2.0.4.template49
-rw-r--r--net-im/ejabberd/files/ejabberd-wrapper-2.template (renamed from net-im/ejabberd/files/ejabberd-wrapper-2.0.1.template)0
-rw-r--r--net-im/ejabberd/files/ejabberdctl-wrapper-2.0.2.template30
-rw-r--r--net-im/ejabberd/files/ejabberdctl-wrapper-2.0.4.template30
-rw-r--r--net-im/ejabberd/files/ejabberdctl-wrapper-2.template (renamed from net-im/ejabberd/files/ejabberdctl-wrapper-2.0.1.template)0
12 files changed, 2 insertions, 314 deletions
diff --git a/net-im/ejabberd/files/ejabberd-2.0.1.initd b/net-im/ejabberd/files/ejabberd-2.0.1.initd
deleted file mode 100644
index 3a1905ae2056..000000000000
--- a/net-im/ejabberd/files/ejabberd-2.0.1.initd
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-2.0.1.initd,v 1.3 2009/03/27 19:40:57 hanno Exp $
-
-opts="${opts} reload"
-
-depend() {
- use dns
- need net
- provide jabber-server
-}
-
-checkconfig() {
- if [ ! -e /etc/jabber/ejabberd.cfg ] ; then
- eerror "You need a /etc/jabber/ejabberd.cfg file to run ejabberd"
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting ejabberd"
- # the process name of beam is different depending whether smp is used.
- # set it explicitly so start-stop-daemon works
- case "$HAVE_SMP" in
- "1"|"true"|"yes")
- BEAMNAME="beam.smp"
- SMPOPT="auto"
- ;;
- *)
- BEAMNAME="beam"
- SMPOPT="disable"
- ;;
- esac
- cd /var/lib/ejabberd
- start-stop-daemon --start --quiet --chuid jabber:jabber \
- --name $BEAMNAME \
- --exec /usr/sbin/ejabberd -- -detached -noinput -smp $SMPOPT
- eend $?
-}
-
-stop() {
- ebegin "Stopping ejabberd"
- /usr/sbin/ejabberdctl stop
- eend $?
-}
-
-reload() {
- ebegin "Reloading ejabberd"
- /usr/sbin/ejabberdctl reopen-log
- eend $?
-}
-
diff --git a/net-im/ejabberd/files/ejabberd-2.0.2.confd b/net-im/ejabberd/files/ejabberd-2.0.2.confd
deleted file mode 100644
index ce9211beebd8..000000000000
--- a/net-im/ejabberd/files/ejabberd-2.0.2.confd
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-2.0.2.confd,v 1.1 2008/08/03 16:19:05 caleb Exp $
-
-# Name of your ejabberd node. Used by ejabberdctl to determine which
-# node to communicate with.
-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
-
-# set to 1, "true" or "yes" if you have a symmetric-multi-processor
-# default is non smp
-#HAVE_SMP=0
-
-
diff --git a/net-im/ejabberd/files/ejabberd-2.0.2.initd b/net-im/ejabberd/files/ejabberd-2.0.2.initd
deleted file mode 100644
index 38c5e575712b..000000000000
--- a/net-im/ejabberd/files/ejabberd-2.0.2.initd
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-2.0.2.initd,v 1.2 2009/03/27 19:40:57 hanno Exp $
-
-opts="${opts} reload"
-
-depend() {
- use dns
- need net
- provide jabber-server
-}
-
-checkconfig() {
- if [ ! -e /etc/jabber/ejabberd.cfg ] ; then
- eerror "You need a /etc/jabber/ejabberd.cfg file to run ejabberd"
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting ejabberd"
- # the process name of beam is different depending whether smp is used.
- # set it explicitly so start-stop-daemon works
- case "$HAVE_SMP" in
- "1"|"true"|"yes")
- BEAMNAME="beam.smp"
- SMPOPT="auto"
- ;;
- *)
- BEAMNAME="beam"
- SMPOPT="disable"
- ;;
- esac
- cd /var/lib/ejabberd
- start-stop-daemon --start --quiet --chuid jabber:jabber \
- --name $BEAMNAME \
- --exec /usr/sbin/ejabberd -- -detached -noinput -smp $SMPOPT
- eend $?
-}
-
-stop() {
- ebegin "Stopping ejabberd"
- /usr/sbin/ejabberdctl stop
- eend $?
-}
-
-reload() {
- ebegin "Reloading ejabberd"
- /usr/sbin/ejabberdctl reopen-log
- eend $?
-}
-
diff --git a/net-im/ejabberd/files/ejabberd-2.0.4.confd b/net-im/ejabberd/files/ejabberd-2.0.4.confd
deleted file mode 100644
index 8638792423cd..000000000000
--- a/net-im/ejabberd/files/ejabberd-2.0.4.confd
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-2.0.4.confd,v 1.1 2009/03/21 12:29:53 caleb Exp $
-
-# Name of your ejabberd node. Used by ejabberdctl to determine which
-# node to communicate with.
-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
-
-# set to 1, "true" or "yes" if you have a symmetric-multi-processor
-# default is non smp
-#HAVE_SMP=0
-
-
diff --git a/net-im/ejabberd/files/ejabberd-2.0.1.confd b/net-im/ejabberd/files/ejabberd-2.confd
index 792bf6894fbd..0312ae7f3df2 100644
--- a/net-im/ejabberd/files/ejabberd-2.0.1.confd
+++ b/net-im/ejabberd/files/ejabberd-2.confd
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-2.0.1.confd,v 1.1 2008/05/22 11:43:11 caleb Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-2.confd,v 1.1 2009/04/09 05:40:39 pva Exp $
# Name of your ejabberd node. Used by ejabberdctl to determine which
# node to communicate with.
diff --git a/net-im/ejabberd/files/ejabberd-2.0.4.initd b/net-im/ejabberd/files/ejabberd-2.initd
index 2ca2820c0664..8a150dc8eefb 100644
--- a/net-im/ejabberd/files/ejabberd-2.0.4.initd
+++ b/net-im/ejabberd/files/ejabberd-2.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-2.0.4.initd,v 1.2 2009/03/27 19:40:57 hanno Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-2.initd,v 1.1 2009/04/09 05:40:39 pva Exp $
opts="${opts} reload"
diff --git a/net-im/ejabberd/files/ejabberd-wrapper-2.0.2.template b/net-im/ejabberd/files/ejabberd-wrapper-2.0.2.template
deleted file mode 100644
index 89f3ff4824e3..000000000000
--- a/net-im/ejabberd/files/ejabberd-wrapper-2.0.2.template
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-
-[ -f /etc/conf.d/ejabberd ] && . /etc/conf.d/ejabberd
-
-# provide some default configuration
-ERL=/usr/bin/erl
-CONFIG=/etc/jabber/ejabberd.cfg
-INETRC=/etc/jabber/inetrc
-LOG_PATH=/var/log/jabber/ejabberd.log
-SASL_LOG=/var/log/jabber/sasl.log
-SPOOL=/var/spool/jabber
-
-ARGS=
-while [ $# -ne 0 ] ; do
- PARAM=$1
- shift
- case $PARAM in
- --) break ;;
- --node) EJABBERD_NODE=$1; shift ;;
- --config) CONFIG=$1 ; shift ;;
- --log) LOG_PATH=$1 ; shift ;;
- --sasl-log) SASL_LOG=$1 ; shift ;;
- --spool) SPOOL=$1 ; shift ;;
- *) ARGS="$ARGS $PARAM" ;;
- esac
-done
-
-if [ "$EJABBERD_NODE" = "${EJABBERD_NODE%.*}" ] ; then
- SNAME=-sname
-else
- SNAME=-name
-fi
-
-# export ejabberd configuration environment variables
-export HOME=/var/run/jabber
-export EJABBERD_EBIN=/usr/@libdir@/erlang/lib/ejabberd-@version@/ebin
-export EJABBERD_MSGS_PATH=/usr/@libdir@/erlang/lib/ejabberd-@version@/priv/msgs
-export EJABBERD_SO_PATH=/usr/@libdir@/erlang/lib/ejabberd-@version@/priv/lib
-export EJABBERD_LOG_PATH=$LOG_PATH
-export EJABBERD_CONFIG_PATH=$CONFIG
-
-exec $ERL $SNAME $EJABBERD_NODE \
- -s ejabberd \
- -kernel inetrc \"$INETRC\" \
- -sasl sasl_error_logger \{file,\"$SASL_LOG\"\} \
- -mnesia dir \"$SPOOL\" \
- $ERL_OPTIONS $ARGS "$@"
-
-
diff --git a/net-im/ejabberd/files/ejabberd-wrapper-2.0.4.template b/net-im/ejabberd/files/ejabberd-wrapper-2.0.4.template
deleted file mode 100644
index 89f3ff4824e3..000000000000
--- a/net-im/ejabberd/files/ejabberd-wrapper-2.0.4.template
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-
-[ -f /etc/conf.d/ejabberd ] && . /etc/conf.d/ejabberd
-
-# provide some default configuration
-ERL=/usr/bin/erl
-CONFIG=/etc/jabber/ejabberd.cfg
-INETRC=/etc/jabber/inetrc
-LOG_PATH=/var/log/jabber/ejabberd.log
-SASL_LOG=/var/log/jabber/sasl.log
-SPOOL=/var/spool/jabber
-
-ARGS=
-while [ $# -ne 0 ] ; do
- PARAM=$1
- shift
- case $PARAM in
- --) break ;;
- --node) EJABBERD_NODE=$1; shift ;;
- --config) CONFIG=$1 ; shift ;;
- --log) LOG_PATH=$1 ; shift ;;
- --sasl-log) SASL_LOG=$1 ; shift ;;
- --spool) SPOOL=$1 ; shift ;;
- *) ARGS="$ARGS $PARAM" ;;
- esac
-done
-
-if [ "$EJABBERD_NODE" = "${EJABBERD_NODE%.*}" ] ; then
- SNAME=-sname
-else
- SNAME=-name
-fi
-
-# export ejabberd configuration environment variables
-export HOME=/var/run/jabber
-export EJABBERD_EBIN=/usr/@libdir@/erlang/lib/ejabberd-@version@/ebin
-export EJABBERD_MSGS_PATH=/usr/@libdir@/erlang/lib/ejabberd-@version@/priv/msgs
-export EJABBERD_SO_PATH=/usr/@libdir@/erlang/lib/ejabberd-@version@/priv/lib
-export EJABBERD_LOG_PATH=$LOG_PATH
-export EJABBERD_CONFIG_PATH=$CONFIG
-
-exec $ERL $SNAME $EJABBERD_NODE \
- -s ejabberd \
- -kernel inetrc \"$INETRC\" \
- -sasl sasl_error_logger \{file,\"$SASL_LOG\"\} \
- -mnesia dir \"$SPOOL\" \
- $ERL_OPTIONS $ARGS "$@"
-
-
diff --git a/net-im/ejabberd/files/ejabberd-wrapper-2.0.1.template b/net-im/ejabberd/files/ejabberd-wrapper-2.template
index 89f3ff4824e3..89f3ff4824e3 100644
--- a/net-im/ejabberd/files/ejabberd-wrapper-2.0.1.template
+++ b/net-im/ejabberd/files/ejabberd-wrapper-2.template
diff --git a/net-im/ejabberd/files/ejabberdctl-wrapper-2.0.2.template b/net-im/ejabberd/files/ejabberdctl-wrapper-2.0.2.template
deleted file mode 100644
index 6443678cf9b2..000000000000
--- a/net-im/ejabberd/files/ejabberdctl-wrapper-2.0.2.template
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-[ -f /etc/conf.d/ejabberd ] && . /etc/conf.d/ejabberd
-
-if [ -r /var/run/jabber/.erlang.cookie ] ; then
- HOME=/var/run/jabber
- export HOME
-fi
-
-ERL=/usr/bin/erl
-
-if [ $# -ne 0 ] ; then
- case $1 in
- --node) shift ; EJABBERD_NODE=$1 ; shift ;;
- esac
-fi
-
-if [ "$EJABBERD_NODE" = "${EJABBERD_NODE%.*}" ] ; then
- SNAME=-sname
-else
- SNAME=-name
-fi
-
-exec $ERL $SNAME ejabberdctl \
- -pa /usr/@libdir@/erlang/lib/ejabberd-@version@/ebin \
- -s ejabberd_ctl \
- -noinput \
- -extra $EJABBERD_NODE "$@"
-
-
diff --git a/net-im/ejabberd/files/ejabberdctl-wrapper-2.0.4.template b/net-im/ejabberd/files/ejabberdctl-wrapper-2.0.4.template
deleted file mode 100644
index 6443678cf9b2..000000000000
--- a/net-im/ejabberd/files/ejabberdctl-wrapper-2.0.4.template
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-[ -f /etc/conf.d/ejabberd ] && . /etc/conf.d/ejabberd
-
-if [ -r /var/run/jabber/.erlang.cookie ] ; then
- HOME=/var/run/jabber
- export HOME
-fi
-
-ERL=/usr/bin/erl
-
-if [ $# -ne 0 ] ; then
- case $1 in
- --node) shift ; EJABBERD_NODE=$1 ; shift ;;
- esac
-fi
-
-if [ "$EJABBERD_NODE" = "${EJABBERD_NODE%.*}" ] ; then
- SNAME=-sname
-else
- SNAME=-name
-fi
-
-exec $ERL $SNAME ejabberdctl \
- -pa /usr/@libdir@/erlang/lib/ejabberd-@version@/ebin \
- -s ejabberd_ctl \
- -noinput \
- -extra $EJABBERD_NODE "$@"
-
-
diff --git a/net-im/ejabberd/files/ejabberdctl-wrapper-2.0.1.template b/net-im/ejabberd/files/ejabberdctl-wrapper-2.template
index 6443678cf9b2..6443678cf9b2 100644
--- a/net-im/ejabberd/files/ejabberdctl-wrapper-2.0.1.template
+++ b/net-im/ejabberd/files/ejabberdctl-wrapper-2.template