summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2008-03-08 15:03:34 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2008-03-08 15:03:34 +0000
commit4f44f47ba2ee9b29350513a536303b78df6d94ce (patch)
treec88859b4ab31bf789eb965ad0b23f5030cdda3d7 /net-im/jabberd2/files
parentUnmask app-crypt/qca:2 and dependencies. (diff)
downloadhistorical-4f44f47ba2ee9b29350513a536303b78df6d94ce.tar.gz
historical-4f44f47ba2ee9b29350513a536303b78df6d94ce.tar.bz2
historical-4f44f47ba2ee9b29350513a536303b78df6d94ce.zip
Depend on libidn-0.6.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'net-im/jabberd2/files')
-rw-r--r--net-im/jabberd2/files/jabberd2-2.1.19.init77
-rw-r--r--net-im/jabberd2/files/jabberd2-2.1.19.pamd6
-rw-r--r--net-im/jabberd2/files/jabberd2-2.1.20.init77
-rw-r--r--net-im/jabberd2/files/jabberd2-2.1.20.pamd6
4 files changed, 0 insertions, 166 deletions
diff --git a/net-im/jabberd2/files/jabberd2-2.1.19.init b/net-im/jabberd2/files/jabberd2-2.1.19.init
deleted file mode 100644
index 701fea590b72..000000000000
--- a/net-im/jabberd2/files/jabberd2-2.1.19.init
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/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.19.init,v 1.1 2007/11/06 19:24:44 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.19.pamd b/net-im/jabberd2/files/jabberd2-2.1.19.pamd
deleted file mode 100644
index 2c5a5347ad6a..000000000000
--- a/net-im/jabberd2/files/jabberd2-2.1.19.pamd
+++ /dev/null
@@ -1,6 +0,0 @@
-#%PAM-1.0
-
-auth required pam_nologin.so
-auth include system-auth
-account include system-auth
-session include system-auth
diff --git a/net-im/jabberd2/files/jabberd2-2.1.20.init b/net-im/jabberd2/files/jabberd2-2.1.20.init
deleted file mode 100644
index 2fd4a71d5ca7..000000000000
--- a/net-im/jabberd2/files/jabberd2-2.1.20.init
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/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.20.init,v 1.1 2008/01/08 10:26:08 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.20.pamd b/net-im/jabberd2/files/jabberd2-2.1.20.pamd
deleted file mode 100644
index 2c5a5347ad6a..000000000000
--- a/net-im/jabberd2/files/jabberd2-2.1.20.pamd
+++ /dev/null
@@ -1,6 +0,0 @@
-#%PAM-1.0
-
-auth required pam_nologin.so
-auth include system-auth
-account include system-auth
-session include system-auth