summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2008-01-09 07:44:00 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2008-01-09 07:44:00 +0000
commit4ce90d8580ef5f9908fc7f41491808e30b7d4d8f (patch)
tree9af6c69cc841a20337755d2ca8456d7ab4713423 /net-im/jabberd2/files
parentMarked stable on amd64 as per bug 204950. (diff)
downloadgentoo-2-4ce90d8580ef5f9908fc7f41491808e30b7d4d8f.tar.gz
gentoo-2-4ce90d8580ef5f9908fc7f41491808e30b7d4d8f.tar.bz2
gentoo-2-4ce90d8580ef5f9908fc7f41491808e30b7d4d8f.zip
Version bump.
(Portage version: 2.1.4_rc14)
Diffstat (limited to 'net-im/jabberd2/files')
-rw-r--r--net-im/jabberd2/files/digest-jabberd2-2.1.213
-rw-r--r--net-im/jabberd2/files/jabberd2-2.1.21.init77
-rw-r--r--net-im/jabberd2/files/jabberd2-2.1.21.pamd6
3 files changed, 86 insertions, 0 deletions
diff --git a/net-im/jabberd2/files/digest-jabberd2-2.1.21 b/net-im/jabberd2/files/digest-jabberd2-2.1.21
new file mode 100644
index 000000000000..149579c80afa
--- /dev/null
+++ b/net-im/jabberd2/files/digest-jabberd2-2.1.21
@@ -0,0 +1,3 @@
+MD5 fdbdee3823d1ea6b4ee5d118d7f4b24e jabberd-2.1.21.tar.bz2 643184
+RMD160 e691f068563a94579a12974fde65caa207e9728a jabberd-2.1.21.tar.bz2 643184
+SHA256 5122d6b8cdd78a1d940a3d82d7b39f036c4078d24148ef9a0a65824337fe1251 jabberd-2.1.21.tar.bz2 643184
diff --git a/net-im/jabberd2/files/jabberd2-2.1.21.init b/net-im/jabberd2/files/jabberd2-2.1.21.init
new file mode 100644
index 000000000000..2774aadeadbc
--- /dev/null
+++ b/net-im/jabberd2/files/jabberd2-2.1.21.init
@@ -0,0 +1,77 @@
+#!/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/jabberd2/files/jabberd2-2.1.21.init,v 1.1 2008/01/09 07:44:00 nelchael Exp $
+
+depend() {
+ need net
+ use mysql postgresql slapd
+ provide jabber-server
+}
+
+stopJabberServices() {
+
+ eindent
+ for pidfile in /var/run/jabber/*.pid; do
+ if [ -f "${pidfile}" ]; then
+ service=$(basename ${pidfile} .pid)
+ ebegin "Stopping ${service}"
+ start-stop-daemon \
+ --stop \
+ --pidfile ${pidfile}
+ eend $?
+ fi
+ done
+ eoutdent
+
+}
+
+start() {
+
+ einfo "Starting Jabber Server ..."
+ local services
+ services=$(grep -v ^# /etc/jabber/jabberd.cfg | grep '..*' | awk '{print $1 ":" $2}')
+ eindent
+ for service in ${services}; do
+
+ cfgfile=$(echo ${service} | cut -d ':' -f 2)
+ service=$(echo ${service} | cut -d ':' -f 1)
+ if [ ! -f "${cfgfile}" ]; then
+ if [ -f "/etc/jabber/${service}.xml" ]; then
+ cfgfile="/etc/jabber/${service}.xml"
+ else
+ eerror "Can't find: ${cfgfile} or default /etc/jabber/${service}.xml"
+ stopJabberServices
+ return 1
+ fi
+ fi
+
+ executable=/usr/bin/${service}
+
+ if [ ! -f "${executable}" ]; then
+ eerror "Can't find executable: ${executable}"
+ stopJabberServices
+ return 1
+ fi
+
+ ebegin "Starting ${service} (${cfgfile})"
+ start-stop-daemon \
+ --background \
+ --start \
+ --chuid jabber:jabber \
+ --exec /usr/bin/${service} \
+ --pid /var/run/jabber/$(basename ${cfgfile%.xml}).pid \
+ -- -c ${cfgfile}
+ eend $?
+
+ done
+ eoutdent
+
+}
+
+stop() {
+
+ einfo "Stopping Jabber Server"
+ stopJabberServices
+
+}
diff --git a/net-im/jabberd2/files/jabberd2-2.1.21.pamd b/net-im/jabberd2/files/jabberd2-2.1.21.pamd
new file mode 100644
index 000000000000..2c5a5347ad6a
--- /dev/null
+++ b/net-im/jabberd2/files/jabberd2-2.1.21.pamd
@@ -0,0 +1,6 @@
+#%PAM-1.0
+
+auth required pam_nologin.so
+auth include system-auth
+account include system-auth
+session include system-auth