summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2007-07-27 15:06:55 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-27 15:06:55 (UTC)
commit98c4c50ae1e5322e018885697a64248cec606652 (patch) (unidiff)
treecca93aff35ddd3cc037688faac207ac46ee38dcc
parentc72e74910faa3155a8f2521945283dc92d7aff51 (diff)
downloadmisc-98c4c50ae1e5322e018885697a64248cec606652.zip
misc-98c4c50ae1e5322e018885697a64248cec606652.tar.gz
misc-98c4c50ae1e5322e018885697a64248cec606652.tar.bz2
net-im/jabberd: 2.1.11
adjusted ebuild and incorporated some changes from gentoo bug #178055 Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--net-im/jabberd/Manifest24
-rw-r--r--net-im/jabberd/files/digest-jabberd-2.1.113
-rw-r--r--net-im/jabberd/files/jabberd-2.1.11.init75
-rw-r--r--net-im/jabberd/files/jabberd-2.1.11.pamd6
-rw-r--r--net-im/jabberd/files/jabberd-2.1.4.init80
-rw-r--r--net-im/jabberd/jabberd-2.1.11.ebuild97
6 files changed, 201 insertions, 84 deletions
diff --git a/net-im/jabberd/Manifest b/net-im/jabberd/Manifest
index 91dbca0..813f08e 100644
--- a/net-im/jabberd/Manifest
+++ b/net-im/jabberd/Manifest
@@ -30,20 +30,29 @@ AUX jabberd-1.4.4.init 554 RMD160 83098dfae23a67267dffeb5609e572b501fa9a8e SHA1
30MD5 3b4be327293fb0abc0cdb5dcac80d033 files/jabberd-1.4.4.init 554 30MD5 3b4be327293fb0abc0cdb5dcac80d033 files/jabberd-1.4.4.init 554
31RMD160 83098dfae23a67267dffeb5609e572b501fa9a8e files/jabberd-1.4.4.init 554 31RMD160 83098dfae23a67267dffeb5609e572b501fa9a8e files/jabberd-1.4.4.init 554
32SHA256 769e4ee4e193a1d63fe4839f923fb2a6339489a677595ba75986e19cb1ba39ac files/jabberd-1.4.4.init 554 32SHA256 769e4ee4e193a1d63fe4839f923fb2a6339489a677595ba75986e19cb1ba39ac files/jabberd-1.4.4.init 554
33AUX jabberd-2.1.11.init 1404 RMD160 d93784cc30f573f20cd411a1a18578db46121b26 SHA1 ce0e735adbf539c809568aa2c1d3ee49f565600c SHA256 e9d004e8d83cc59f964b49c44aaf64445593ba8157d4b51df83e5e50f4625094
34MD5 eacd752c3b8eb5f2d4914ca8b3580893 files/jabberd-2.1.11.init 1404
35RMD160 d93784cc30f573f20cd411a1a18578db46121b26 files/jabberd-2.1.11.init 1404
36SHA256 e9d004e8d83cc59f964b49c44aaf64445593ba8157d4b51df83e5e50f4625094 files/jabberd-2.1.11.init 1404
37AUX jabberd-2.1.11.pamd 158 RMD160 3143cb1689fbebb51c0d72fa4c6b79ee9c015185 SHA1 5a95607d50b470107e9a0556fb4591688faff02c SHA256 eba4b5cc68b3dd327cfa1afdadbe5adf6d9383f4c79c7661169a4339e40b9a7b
38MD5 ab77cef855566260d6a779d8d77bc78c files/jabberd-2.1.11.pamd 158
39RMD160 3143cb1689fbebb51c0d72fa4c6b79ee9c015185 files/jabberd-2.1.11.pamd 158
40SHA256 eba4b5cc68b3dd327cfa1afdadbe5adf6d9383f4c79c7661169a4339e40b9a7b files/jabberd-2.1.11.pamd 158
33AUX jabberd-2.1.4-configure.in.patch 396 RMD160 86c99a761a23e55ebce98bdffba060e18073826f SHA1 59d16a3ce6f30bdea79c67fe9051a6c4624ddac9 SHA256 afa527ce6e4abedf097a92dc73046b8bacd851bf75ea309bd706937c8080aa5f 41AUX jabberd-2.1.4-configure.in.patch 396 RMD160 86c99a761a23e55ebce98bdffba060e18073826f SHA1 59d16a3ce6f30bdea79c67fe9051a6c4624ddac9 SHA256 afa527ce6e4abedf097a92dc73046b8bacd851bf75ea309bd706937c8080aa5f
34MD5 0d6acfc3d4a22d09d4d17ffd202d38d8 files/jabberd-2.1.4-configure.in.patch 396 42MD5 0d6acfc3d4a22d09d4d17ffd202d38d8 files/jabberd-2.1.4-configure.in.patch 396
35RMD160 86c99a761a23e55ebce98bdffba060e18073826f files/jabberd-2.1.4-configure.in.patch 396 43RMD160 86c99a761a23e55ebce98bdffba060e18073826f files/jabberd-2.1.4-configure.in.patch 396
36SHA256 afa527ce6e4abedf097a92dc73046b8bacd851bf75ea309bd706937c8080aa5f files/jabberd-2.1.4-configure.in.patch 396 44SHA256 afa527ce6e4abedf097a92dc73046b8bacd851bf75ea309bd706937c8080aa5f files/jabberd-2.1.4-configure.in.patch 396
37AUX jabberd-2.1.4.init 1701 RMD160 0637157c6c84aa9acc5e787ae347980506db3c02 SHA1 95958ed179ec3c8b20dc4a2934c1a8adae08b92b SHA256 21ab8f057412d853318370b567c8f53c4d33dfc6ca2151e205f51c01b7dd5c0a
38MD5 15e304cfa6bdf41c2633da7fe6063ace files/jabberd-2.1.4.init 1701
39RMD160 0637157c6c84aa9acc5e787ae347980506db3c02 files/jabberd-2.1.4.init 1701
40SHA256 21ab8f057412d853318370b567c8f53c4d33dfc6ca2151e205f51c01b7dd5c0a files/jabberd-2.1.4.init 1701
41DIST jabberd-1.4.4.tar.gz 613479 RMD160 3273d0711fb6f0f6b95749d8bdb1ac5004aed074 SHA1 5fa5b561740720591997ed189609403af8c796c2 SHA256 72e23766e737588ed8d77ca7565a8f4b2bba73967c02e9b7ee4d2122d198a0af 45DIST jabberd-1.4.4.tar.gz 613479 RMD160 3273d0711fb6f0f6b95749d8bdb1ac5004aed074 SHA1 5fa5b561740720591997ed189609403af8c796c2 SHA256 72e23766e737588ed8d77ca7565a8f4b2bba73967c02e9b7ee4d2122d198a0af
46DIST jabberd-2.1.11.tar.bz2 1034039 RMD160 540f9f510351c369938005acb7013ea41d77f5b8 SHA1 528df89fd1fc638590811bb4f14b2d0d8a498a56 SHA256 e99a70102896ce28e5e427234ddaa852aacd8a38700264741a40f5781919bea8
42DIST jabberd-2.1.4.tar.bz2 843796 RMD160 1f8ab0b8ab51508ff89085f3fe1342fdd9b54204 SHA1 c1c4b3f74bf1220e9957d0260772d0d2148f2f0c SHA256 e9823c78505c233cc228146a181614a8f191f523948480f78a716fff2921385a 47DIST jabberd-2.1.4.tar.bz2 843796 RMD160 1f8ab0b8ab51508ff89085f3fe1342fdd9b54204 SHA1 c1c4b3f74bf1220e9957d0260772d0d2148f2f0c SHA256 e9823c78505c233cc228146a181614a8f191f523948480f78a716fff2921385a
43EBUILD jabberd-1.4.4-r3.ebuild 3066 RMD160 f17931e3958c08c395419c718c009578929c7b23 SHA1 1d235e8d0574e83ebe870566d409f1ae937c3de9 SHA256 c240575c4deccbef864c3415397b913252321ff291d4c1291a8fb327bbe5d057 48EBUILD jabberd-1.4.4-r3.ebuild 3066 RMD160 f17931e3958c08c395419c718c009578929c7b23 SHA1 1d235e8d0574e83ebe870566d409f1ae937c3de9 SHA256 c240575c4deccbef864c3415397b913252321ff291d4c1291a8fb327bbe5d057
44MD5 703d5ba2de35a3258c9fa81b9ff5fc96 jabberd-1.4.4-r3.ebuild 3066 49MD5 703d5ba2de35a3258c9fa81b9ff5fc96 jabberd-1.4.4-r3.ebuild 3066
45RMD160 f17931e3958c08c395419c718c009578929c7b23 jabberd-1.4.4-r3.ebuild 3066 50RMD160 f17931e3958c08c395419c718c009578929c7b23 jabberd-1.4.4-r3.ebuild 3066
46SHA256 c240575c4deccbef864c3415397b913252321ff291d4c1291a8fb327bbe5d057 jabberd-1.4.4-r3.ebuild 3066 51SHA256 c240575c4deccbef864c3415397b913252321ff291d4c1291a8fb327bbe5d057 jabberd-1.4.4-r3.ebuild 3066
52EBUILD jabberd-2.1.11.ebuild 2675 RMD160 19e6aa86491d5ea21a858b1028d523107c497fa2 SHA1 98a8577ed9b6a4beef05d3e0635a09eb03cd4e91 SHA256 c74804e1955e58c5359dbba72afa5ce065ba4fce4ebc6b178b57c0b3f5449c26
53MD5 d94132822cf3296f897f2c708e7d3ccc jabberd-2.1.11.ebuild 2675
54RMD160 19e6aa86491d5ea21a858b1028d523107c497fa2 jabberd-2.1.11.ebuild 2675
55SHA256 c74804e1955e58c5359dbba72afa5ce065ba4fce4ebc6b178b57c0b3f5449c26 jabberd-2.1.11.ebuild 2675
47EBUILD jabberd-2.1.4.ebuild 2330 RMD160 771bae5fbdb463758d5816c660f5ffbce196cdef SHA1 81a4d6185a55366e58127f9e6470d3a32879053b SHA256 da88c8d53aa364528d0933765cc7c687d67abed13839c3cf6f54e64ef3aeb146 56EBUILD jabberd-2.1.4.ebuild 2330 RMD160 771bae5fbdb463758d5816c660f5ffbce196cdef SHA1 81a4d6185a55366e58127f9e6470d3a32879053b SHA256 da88c8d53aa364528d0933765cc7c687d67abed13839c3cf6f54e64ef3aeb146
48MD5 13725474b621926e462d78e105919942 jabberd-2.1.4.ebuild 2330 57MD5 13725474b621926e462d78e105919942 jabberd-2.1.4.ebuild 2330
49RMD160 771bae5fbdb463758d5816c660f5ffbce196cdef jabberd-2.1.4.ebuild 2330 58RMD160 771bae5fbdb463758d5816c660f5ffbce196cdef jabberd-2.1.4.ebuild 2330
@@ -52,6 +61,10 @@ MISC ChangeLog 15464 RMD160 bac8facc410dced776f4b5d9f0c4b051100f9409 SHA1 2ed0d2
52MD5 e71dbcd3a38fc84fc22dac39a6019359 ChangeLog 15464 61MD5 e71dbcd3a38fc84fc22dac39a6019359 ChangeLog 15464
53RMD160 bac8facc410dced776f4b5d9f0c4b051100f9409 ChangeLog 15464 62RMD160 bac8facc410dced776f4b5d9f0c4b051100f9409 ChangeLog 15464
54SHA256 7ea8ffdf9c099ca3fc43ccb381100ce6b519de8f6bb582305535491373fb8830 ChangeLog 15464 63SHA256 7ea8ffdf9c099ca3fc43ccb381100ce6b519de8f6bb582305535491373fb8830 ChangeLog 15464
64MISC bug 46 RMD160 9a8b102b732b3c3b39eccb9f6347d6cf7bec122b SHA1 f6559d5ed5015f880bcf3f2189b58f78b1868716 SHA256 b6390a5c94c2bf9f3fe4e1297acd915e330d189125a17ac60117e36d9df61ef9
65MD5 d15af49122242ec74cc849146b70b622 bug 46
66RMD160 9a8b102b732b3c3b39eccb9f6347d6cf7bec122b bug 46
67SHA256 b6390a5c94c2bf9f3fe4e1297acd915e330d189125a17ac60117e36d9df61ef9 bug 46
55MISC metadata.xml 399 RMD160 e223c713f74619996bc47a70298aa535f6addf09 SHA1 dc9bc290a5ed00f7101aabd3a40b346112eb40eb SHA256 f68b0864864ad54de5cf072835fc9903e709987261ad1fc102afb0019aa52377 68MISC metadata.xml 399 RMD160 e223c713f74619996bc47a70298aa535f6addf09 SHA1 dc9bc290a5ed00f7101aabd3a40b346112eb40eb SHA256 f68b0864864ad54de5cf072835fc9903e709987261ad1fc102afb0019aa52377
56MD5 be8887bde84aab1d4ff9d5a0f5d50141 metadata.xml 399 69MD5 be8887bde84aab1d4ff9d5a0f5d50141 metadata.xml 399
57RMD160 e223c713f74619996bc47a70298aa535f6addf09 metadata.xml 399 70RMD160 e223c713f74619996bc47a70298aa535f6addf09 metadata.xml 399
@@ -59,6 +72,9 @@ SHA256 f68b0864864ad54de5cf072835fc9903e709987261ad1fc102afb0019aa52377 metadata
59MD5 6608e1126e4f091819d2c41a1a8843a5 files/digest-jabberd-1.4.4-r3 241 72MD5 6608e1126e4f091819d2c41a1a8843a5 files/digest-jabberd-1.4.4-r3 241
60RMD160 0c09cceb4332b70a38db717adb4bd1d244337b72 files/digest-jabberd-1.4.4-r3 241 73RMD160 0c09cceb4332b70a38db717adb4bd1d244337b72 files/digest-jabberd-1.4.4-r3 241
61SHA256 05c069ff9a60336785d0d1049dc28c727a5b4cc2f9a40c0f5304f98f2343cb9b files/digest-jabberd-1.4.4-r3 241 74SHA256 05c069ff9a60336785d0d1049dc28c727a5b4cc2f9a40c0f5304f98f2343cb9b files/digest-jabberd-1.4.4-r3 241
75MD5 c07f7b9a6581fa2f5ea895378ce7f7de files/digest-jabberd-2.1.11 250
76RMD160 cb7aaed13753b29cc9f5a1bce8487647ae3a39f2 files/digest-jabberd-2.1.11 250
77SHA256 6d1563e8ca5a90c87768d01e273bfd6cfbe11c93ff70249fb71eeb074b090a39 files/digest-jabberd-2.1.11 250
62MD5 25a5e186c9891488b376450459f220b0 files/digest-jabberd-2.1.4 244 78MD5 25a5e186c9891488b376450459f220b0 files/digest-jabberd-2.1.4 244
63RMD160 5821ca628801138bd4a32a32e10d6a513c14fa02 files/digest-jabberd-2.1.4 244 79RMD160 5821ca628801138bd4a32a32e10d6a513c14fa02 files/digest-jabberd-2.1.4 244
64SHA256 145d54a062e7bc260393ab78b287789593e3d6a6a7473c9543b89d2393826d7c files/digest-jabberd-2.1.4 244 80SHA256 145d54a062e7bc260393ab78b287789593e3d6a6a7473c9543b89d2393826d7c files/digest-jabberd-2.1.4 244
diff --git a/net-im/jabberd/files/digest-jabberd-2.1.11 b/net-im/jabberd/files/digest-jabberd-2.1.11
new file mode 100644
index 0000000..ae7be5e
--- a/dev/null
+++ b/net-im/jabberd/files/digest-jabberd-2.1.11
@@ -0,0 +1,3 @@
1MD5 e4c257a74618fc34e288d0eb4cbf4a2f jabberd-2.1.11.tar.bz2 1034039
2RMD160 540f9f510351c369938005acb7013ea41d77f5b8 jabberd-2.1.11.tar.bz2 1034039
3SHA256 e99a70102896ce28e5e427234ddaa852aacd8a38700264741a40f5781919bea8 jabberd-2.1.11.tar.bz2 1034039
diff --git a/net-im/jabberd/files/jabberd-2.1.11.init b/net-im/jabberd/files/jabberd-2.1.11.init
new file mode 100644
index 0000000..6984352
--- a/dev/null
+++ b/net-im/jabberd/files/jabberd-2.1.11.init
@@ -0,0 +1,75 @@
1#!/sbin/runscript
2# Copyright 1999-2007 Gentoo Foundation
3# Distributed under the terms of the GNU General Public License v2
4# $Header: $
5
6depend() {
7 need net
8 use mysql postgresql slapd
9 provide jabber-server
10}
11
12function stopJabberServices() {
13
14 eindent
15 for pidfile in /var/run/jabber/*.pid; do
16 if [[ -f "$pidfile" ]]; then
17 service=$(basename "$pidfile" .pid)
18 ebegin "Stopping $service"
19 start-stop-daemon \
20 --stop \
21 --pidfile "$pidfile"
22 eend $?
23 fi
24 done
25 eoutdent
26
27}
28
29start() {
30
31 einfo "Starting Jabber Server ..."
32 local services=$(grep -v '^\(#.*\)\?$' /etc/jabber/jabberd.cfg | awk '{print $1 ":" $2}')
33 eindent
34 for service in $services ; do
35
36 cfgfile=${service/*:/}
37 service=${service/:*/}
38 if [[ ! -f "$cfgfile" ]]; then
39 if [[ -f "/etc/jabber/${service}.xml" ]]; then
40 cfgfile="/etc/jabber/${service}.xml"
41 else
42 eerror "Can't find: $cfgfile or default /etc/jabber/${service}.xml"
43 stopJabberServices
44 return 1
45 fi
46 fi
47
48 executable="/usr/bin/$service"
49
50 if [[ ! -f "$executable" ]]; then
51 eerror "Can't find executable: $executable"
52 stopJabberServices
53 return 1
54 fi
55
56 ebegin "Starting $service (${cfgfile})"
57 start-stop-daemon \
58 --background \
59 --start \
60 --chuid jabber:jabber \
61 --exec "/usr/bin/$service" \
62 -- -c "$cfgfile"
63 eend $?
64
65 done
66 eoutdent
67
68}
69
70stop() {
71
72 einfo "Stopping Jabber Server"
73 stopJabberServices
74
75}
diff --git a/net-im/jabberd/files/jabberd-2.1.11.pamd b/net-im/jabberd/files/jabberd-2.1.11.pamd
new file mode 100644
index 0000000..2c5a534
--- a/dev/null
+++ b/net-im/jabberd/files/jabberd-2.1.11.pamd
@@ -0,0 +1,6 @@
1#%PAM-1.0
2
3auth required pam_nologin.so
4auth include system-auth
5account include system-auth
6session include system-auth
diff --git a/net-im/jabberd/files/jabberd-2.1.4.init b/net-im/jabberd/files/jabberd-2.1.4.init
deleted file mode 100644
index fee8d2e..0000000
--- a/net-im/jabberd/files/jabberd-2.1.4.init
+++ b/dev/null
@@ -1,80 +0,0 @@
1#!/sbin/runscript
2# Copyright 1999-2005 Gentoo Foundation
3# Distributed under the terms of the GNU General Public License v2
4# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/files/jabberd-2.0.11.init,v 1.3 2007/01/09 10:38:59 nelchael Exp $
5
6depend() {
7 need net
8 use mysql postgresql slapd
9 provide jabber-server
10}
11
12function stopJabberServices() {
13
14 eindent
15 for pidfile in /var/run/jabber/*.pid; do
16 if [[ -f "${pidfile}" ]]; then
17 service=$(basename ${pidfile/.pid/})
18 ebegin "Stopping ${service}"
19 start-stop-daemon \
20 --stop \
21 --pidfile ${pidfile}
22 eend $?
23 fi
24 done
25 eoutdent
26
27}
28
29start() {
30
31 einfo "Starting Jabber Server ..."
32 local services=$(grep -v ^# /etc/jabber/jabberd.cfg | grep '..*' | awk '{print $1 ":" $2}')
33 local tempPidHack=/var/run/jabber/start_stop_daemon.pid
34 eindent
35 for service in ${services}; do
36
37 cfgfile=${service/*:/}
38 service=${service/:*/}
39 if [[ ! -f "${cfgfile}" ]]; then
40 if [[ -f "/etc/jabber/${service}.xml" ]]; then
41 cfgfile="/etc/jabber/${service}.xml"
42 else
43 eerror "Can't find: ${cfgfile} or default /etc/jabber/${service}.xml"
44 stopJabberServices
45 return 1
46 fi
47 fi
48
49 executable=/usr/bin/${service}
50
51 if [[ ! -f "${executable}" ]]; then
52 eerror "Can't find executable: ${executable}"
53 stopJabberServices
54 return 1
55 fi
56
57 rm -f ${tempPidHack} &> /dev/null
58 ebegin "Starting ${service} (${cfgfile})"
59 start-stop-daemon \
60 --background \
61 --start \
62 --chuid jabber:jabber \
63 --exec /usr/bin/${service} \
64 --pid ${tempPidHack} \
65 --make-pidfile \
66 -- -c ${cfgfile}
67 eend $?
68 rm -f ${tempPidHack} &> /dev/null
69
70 done
71 eoutdent
72
73}
74
75stop() {
76
77 einfo "Stopping Jabber Server"
78 stopJabberServices
79
80}
diff --git a/net-im/jabberd/jabberd-2.1.11.ebuild b/net-im/jabberd/jabberd-2.1.11.ebuild
new file mode 100644
index 0000000..fc4afd4
--- a/dev/null
+++ b/net-im/jabberd/jabberd-2.1.11.ebuild
@@ -0,0 +1,97 @@
1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
5inherit pam eutils
6
7DESCRIPTION="Open Source Jabber Server"
8HOMEPAGE="http://jabberd2.xiaoka.com/"
9SRC_URI="http://ftp.xiaoka.com/${PN}2/releases/${P}.tar.bz2"
10
11SLOT="0"
12LICENSE="GPL-2"
13KEYWORDS="~amd64 ~ppc ~sparc ~x86"
14IUSE="debug memdebug ldap mysql pam pipe postgres sqlite ssl berkdb anon fs"
15
16RDEPEND=">=net-im/jabber-base-0.01
17 ssl? ( >=dev-libs/openssl-0.9.6b )
18 idn? ( net-dns/libidn )
19 ldap? ( net-nds/openldap )
20 berkdb? ( >=sys-libs/db-4.1.25 )
21 mysql? ( virtual/mysql )
22 postgres? ( virtual/postgresql-libs )
23 sqlite? ( =dev-db/sqlite-3* )
24 dev-libs/expat
25 dev-libs/cyrus-sasl"
26DEPEND="${RDEPEND}"
27
28src_compile() {
29
30 if use memdebug && ! use debug ; then
31 ewarn '"memdebug" requires "debug"'
32 fi
33
34 # gsasl backend is disabled due to the lack of proper gsasl in the tree
35 # TODO: rework postgres part in configure.ac
36 # TODO: conditionally add extra include path for db_includedir from
37 # db-use.eclass
38 econf \
39 --localstatedir=/var \
40 --sysconfdir=/etc/jabber \
41 $(use_enable debug) \
42 $(use_enable memdebug nad-debug) $(use_enable memdebug pool-debug) \
43 --enable-sasl=cyrus \
44 $(use_enable ssl) \
45 $(use_enable mysql) \
46 $(use_enable postgres pgsql) \
47 $(use_enable sqlite) \
48 $(use_enable berkdb db) \
49 $(use_enable ldap) \
50 $(use_enable pam) \
51 $(use_enable pipe) \
52 $(use_enable anon) \
53 $(use_enable fs) \
54 || die "econf failed"
55 emake || die "make failed"
56
57}
58
59src_install() {
60
61 make DESTDIR="${D}" install || die "make install failed"
62
63 fowners jabber:jabber /usr/bin/{jabberd,router,resolver,sm,c2s,s2s}
64 fperms 750 /usr/bin/{jabberd,router,resolver,sm,c2s,s2s}
65
66 newinitd "${FILESDIR}/jabberd-${PV}.init" jabberd || die "newinitd failed"
67 use pam && newpamd "${FILESDIR}/jabberd-${PV}.pamd" jabberd || die "newpamd failed"
68
69 dodoc AUTHORS BUGS NEWS PROTOCOL README UPGRADE
70 docinto tools
71 for i in db-* migrate.pl pipe-auth.pl; do
72 dodoc tools/${i}
73 done
74
75 cd "${D}/etc/jabber/"
76 sed -i \
77 -e 's,/var/jabberd/pid/,/var/run/jabber/,g' \
78 -e 's,/var/jabberd/log/,/var/log/jabber/,g' \
79 -e 's,/var/jabberd/db,/var/spool/jabber/,g' \
80 *.xml *.xml.dist || die "sed failed"
81 use berkdb && sed -i \
82 -e 's,<module>mysql</module>,<module>db</module>,' \
83 c2s.xml*
84
85}
86
87pkg_postinst() {
88 if use pam ; then
89 echo
90 ewarn 'Jabberd-2 PAM authentication requires your unix usernames to'
91 ewarn 'be in the form of "contactname@jabberdomain". This behavior'
92 ewarn 'is likely to change in future versions of jabberd-2. It may'
93 ewarn 'be advisable to avoid PAM authentication for the time being.'
94 echo
95 ebeep
96 fi
97}