summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2008-01-08 10:26:08 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2008-01-08 10:26:08 +0000
commit30d175e74f29f351dad7a0255dc793bfcb867dfb (patch)
treef5c92d788fc64a67c66b0c1c18e0adfc25d23b3f /net-im
parentx86 stable, bug #204191 (diff)
downloadhistorical-30d175e74f29f351dad7a0255dc793bfcb867dfb.tar.gz
historical-30d175e74f29f351dad7a0255dc793bfcb867dfb.tar.bz2
historical-30d175e74f29f351dad7a0255dc793bfcb867dfb.zip
Add missing init.d/conf.d files.
Package-Manager: portage-2.1.4_rc14
Diffstat (limited to 'net-im')
-rw-r--r--net-im/jabberd2/ChangeLog6
-rw-r--r--net-im/jabberd2/Manifest22
-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, 103 insertions, 8 deletions
diff --git a/net-im/jabberd2/ChangeLog b/net-im/jabberd2/ChangeLog
index 4d5df3e1289f..8f0de90969a3 100644
--- a/net-im/jabberd2/ChangeLog
+++ b/net-im/jabberd2/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-im/jabberd2
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd2/ChangeLog,v 1.6 2008/01/08 08:20:12 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd2/ChangeLog,v 1.7 2008/01/08 10:26:07 nelchael Exp $
+
+ 08 Jan 2008; Krzysiek Pawlik <nelchael@gentoo.org>
+ +files/jabberd2-2.1.20.init, +files/jabberd2-2.1.20.pamd:
+ Add missing init.d/conf.d files.
*jabberd2-2.1.20 (08 Jan 2008)
diff --git a/net-im/jabberd2/Manifest b/net-im/jabberd2/Manifest
index 3a15ea81cdf6..0611b2d023d4 100644
--- a/net-im/jabberd2/Manifest
+++ b/net-im/jabberd2/Manifest
@@ -9,6 +9,14 @@ AUX jabberd2-2.1.19.pamd 158 RMD160 3143cb1689fbebb51c0d72fa4c6b79ee9c015185 SHA
MD5 ab77cef855566260d6a779d8d77bc78c files/jabberd2-2.1.19.pamd 158
RMD160 3143cb1689fbebb51c0d72fa4c6b79ee9c015185 files/jabberd2-2.1.19.pamd 158
SHA256 eba4b5cc68b3dd327cfa1afdadbe5adf6d9383f4c79c7661169a4339e40b9a7b files/jabberd2-2.1.19.pamd 158
+AUX jabberd2-2.1.20.init 1623 RMD160 c7061c6211b597a4edfac4f9c0884cd4c8456f07 SHA1 d6e1f9e75b2a1e2f18af3fb48809f07ebe170b51 SHA256 a84d29746981382191c80d80d2913d31baa922db47561876199a15c1c09d1b00
+MD5 7fef12970fa51a50b166375cb55e6d4e files/jabberd2-2.1.20.init 1623
+RMD160 c7061c6211b597a4edfac4f9c0884cd4c8456f07 files/jabberd2-2.1.20.init 1623
+SHA256 a84d29746981382191c80d80d2913d31baa922db47561876199a15c1c09d1b00 files/jabberd2-2.1.20.init 1623
+AUX jabberd2-2.1.20.pamd 158 RMD160 3143cb1689fbebb51c0d72fa4c6b79ee9c015185 SHA1 5a95607d50b470107e9a0556fb4591688faff02c SHA256 eba4b5cc68b3dd327cfa1afdadbe5adf6d9383f4c79c7661169a4339e40b9a7b
+MD5 ab77cef855566260d6a779d8d77bc78c files/jabberd2-2.1.20.pamd 158
+RMD160 3143cb1689fbebb51c0d72fa4c6b79ee9c015185 files/jabberd2-2.1.20.pamd 158
+SHA256 eba4b5cc68b3dd327cfa1afdadbe5adf6d9383f4c79c7661169a4339e40b9a7b files/jabberd2-2.1.20.pamd 158
DIST jabberd-2.1.19.tar.gz 832493 RMD160 9e830094e8c37d2ba3be6ff8a713606c151536ab SHA1 37f617f5c6bd29e7151b21142721ef3470f95af6 SHA256 531ced98332e26928229fe83bed41053a61a7a6d8d5978bb107a7f79b5468904
DIST jabberd-2.1.20.tar.gz 862426 RMD160 0bbb2b96cd845a7e3ef1342d31487f9677e188b0 SHA1 517cd340b507bb320806fa2d1bd8442b3dc508ff SHA256 20841fd9c48316a5061c0745ef3b0b91d15e9837ee1bf549575b599f136f4bfe
EBUILD jabberd2-2.1.19.ebuild 2946 RMD160 80d61f7d910c9bd61c0f347440ab145a56250817 SHA1 bd6dc3adcfaab47accf9dce3954626baf26b4b30 SHA256 c5fb5a3e6ab6c11d1c2af3b9cee5f49919b614748338b3f94877b272a48eb247
@@ -19,10 +27,10 @@ EBUILD jabberd2-2.1.20.ebuild 2828 RMD160 a1a253455bfd8694f4f7196e5accc48d9562be
MD5 a31e5dbe5109b6f4e6e6cb9172430614 jabberd2-2.1.20.ebuild 2828
RMD160 a1a253455bfd8694f4f7196e5accc48d9562be9f jabberd2-2.1.20.ebuild 2828
SHA256 01205e61c924b4369a7e3042b5ab49abdb0eceaa1c1438ae14067c05bc89c597 jabberd2-2.1.20.ebuild 2828
-MISC ChangeLog 1118 RMD160 fcc9c05087c039f08a30ae2d5b480a07302b08ba SHA1 890aca7d922e7078d03649d73e2ef6635bcfaf89 SHA256 bd1ae7dd084f8ea2906cbbb9e2156e27ae3e136396092fe53c9fcaefbecaa32f
-MD5 6640d98fd5ff073e195e347a9c9e08b4 ChangeLog 1118
-RMD160 fcc9c05087c039f08a30ae2d5b480a07302b08ba ChangeLog 1118
-SHA256 bd1ae7dd084f8ea2906cbbb9e2156e27ae3e136396092fe53c9fcaefbecaa32f ChangeLog 1118
+MISC ChangeLog 1267 RMD160 060a56937f379aacda9fab0761d3f33b75447b42 SHA1 037521551a9b965042415992e24431f071865073 SHA256 1bbf86cef904ea1d695da2f8984e309bf221d23a2c8b3158e325cf6a19f5524c
+MD5 54404f213d6e0be27655131726669153 ChangeLog 1267
+RMD160 060a56937f379aacda9fab0761d3f33b75447b42 ChangeLog 1267
+SHA256 1bbf86cef904ea1d695da2f8984e309bf221d23a2c8b3158e325cf6a19f5524c ChangeLog 1267
MISC metadata.xml 433 RMD160 817394c54e448ad628773a5de8edb4c26b9516f7 SHA1 cca8e15fd99f2b05a3efed75d665e9ab0a57ce4d SHA256 245f08f7b8e66f9240eb7ea237661f7b17e667c9500121770c2611e1033f30c4
MD5 d299ac2c0ade4fad26820d81e81e1882 metadata.xml 433
RMD160 817394c54e448ad628773a5de8edb4c26b9516f7 metadata.xml 433
@@ -36,7 +44,7 @@ SHA256 115e3799639cff8e2e166f041d0025d0e77ee25fd374350ee152827b13e50fd7 files/di
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.8 (GNU/Linux)
-iEYEARECAAYFAkeDMkEACgkQgo/w9rxVVVGW/gCeN42IuuzU031W+suFn7mbjrYR
-vDkAoJzj97CfA5fJxaTpiDQpb3NmFa2Y
-=Go/s
+iEYEARECAAYFAkeDT8QACgkQgo/w9rxVVVGxLACglcermdlm11vPli8dCo1yoWLv
+5h4An16w4PKCPtFIIekCvd9/KSaPCpNa
+=Y5GP
-----END PGP SIGNATURE-----
diff --git a/net-im/jabberd2/files/jabberd2-2.1.20.init b/net-im/jabberd2/files/jabberd2-2.1.20.init
new file mode 100644
index 000000000000..2fd4a71d5ca7
--- /dev/null
+++ b/net-im/jabberd2/files/jabberd2-2.1.20.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.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
new file mode 100644
index 000000000000..2c5a5347ad6a
--- /dev/null
+++ b/net-im/jabberd2/files/jabberd2-2.1.20.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