diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2007-09-14 11:38:29 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2007-09-14 11:38:29 +0000 |
commit | 68b17957c8bc3afb447ccf859fb4eca69e9d282c (patch) | |
tree | cbab8857fe0e384bb2bdd29516ff2fcbe1babd95 /net-im/ejabberd/files | |
parent | Apply install-sh patches (diff) | |
download | gentoo-2-68b17957c8bc3afb447ccf859fb4eca69e9d282c.tar.gz gentoo-2-68b17957c8bc3afb447ccf859fb4eca69e9d282c.tar.bz2 gentoo-2-68b17957c8bc3afb447ccf859fb4eca69e9d282c.zip |
Version bump, closes bugs #188679, #192012 and #190266.
(Portage version: 2.1.3.9)
Diffstat (limited to 'net-im/ejabberd/files')
-rw-r--r-- | net-im/ejabberd/files/1.1.4-missing-declaration.patch | 12 | ||||
-rw-r--r-- | net-im/ejabberd/files/digest-ejabberd-1.1.4 | 3 | ||||
-rw-r--r-- | net-im/ejabberd/files/ejabberd-1.1.4.initd | 62 |
3 files changed, 77 insertions, 0 deletions
diff --git a/net-im/ejabberd/files/1.1.4-missing-declaration.patch b/net-im/ejabberd/files/1.1.4-missing-declaration.patch new file mode 100644 index 000000000000..72c56cbcef97 --- /dev/null +++ b/net-im/ejabberd/files/1.1.4-missing-declaration.patch @@ -0,0 +1,12 @@ +diff -uNr ejabberd-1.1.4.ORIG/src/expat_erl.c ejabberd-1.1.4/src/expat_erl.c +--- ejabberd-1.1.4.ORIG/src/expat_erl.c 2007-09-14 12:07:56.000000000 +0100 ++++ ejabberd-1.1.4/src/expat_erl.c 2007-09-14 12:08:56.000000000 +0100 +@@ -14,6 +14,8 @@ + * Workaround for EI encode_string bug + */ + ++int x_fix_buff(ei_x_buff* x, int szneeded); ++ + #define put8(s,n) do { \ + (s)[0] = (char)((n) & 0xff); \ + (s) += 1; \ diff --git a/net-im/ejabberd/files/digest-ejabberd-1.1.4 b/net-im/ejabberd/files/digest-ejabberd-1.1.4 new file mode 100644 index 000000000000..630fbfdaaade --- /dev/null +++ b/net-im/ejabberd/files/digest-ejabberd-1.1.4 @@ -0,0 +1,3 @@ +MD5 65e9cd346f11a28afbacfe1d7be3a33b ejabberd-1.1.4.tar.gz 846059 +RMD160 4c72548129b0196ff0096bd85936e0750fc4d7be ejabberd-1.1.4.tar.gz 846059 +SHA256 dcd61b72c522eee77ab56227b16d75fd5741efe2b9b9a8a1d3ed7eefc2a7e4f6 ejabberd-1.1.4.tar.gz 846059 diff --git a/net-im/ejabberd/files/ejabberd-1.1.4.initd b/net-im/ejabberd/files/ejabberd-1.1.4.initd new file mode 100644 index 000000000000..1f37df66a5c4 --- /dev/null +++ b/net-im/ejabberd/files/ejabberd-1.1.4.initd @@ -0,0 +1,62 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-1.1.4.initd,v 1.1 2007/09/14 11:38:29 chainsaw Exp $ + +opts="${opts} reload" + +depend() { + use dns + need net + provide jabber-server +} + +checkconfig() { + if [ ! -e /etc/jabber/ejabberd.cfg ] ; then + eerror "You need an /etc/jabber/ejabberd.cfg file to run ejabberd" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting eJabberd" + start-stop-daemon --start --quiet --chuid jabber:jabber \ + --exec /usr/bin/env HOME=/var/run/jabber /usr/bin/ejabberd -- -noshell -detached + eend $? + # For bug #190266 + chown jabber:jabber /var/run/jabber/.erlang.cookie +} + +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 $? +} |