summaryrefslogtreecommitdiff
path: root/net-im/jabberd/jabberd-2.1.11-r2.ebuild
authorMichael Krelin <hacker@klever.net>2007-11-04 09:43:22 (UTC)
committer Michael Krelin <hacker@klever.net>2007-11-04 09:43:22 (UTC)
commit6feae86bc3c24b4b04f0a35290d7d513a58d0262 (patch) (unidiff)
tree7c51256e6ab9f4d6408fb7fa52da4e12ac76746f /net-im/jabberd/jabberd-2.1.11-r2.ebuild
parent33ec0de57ee76c462ba84619a0935c01647ebaf8 (diff)
downloadmisc-master.zip
misc-master.tar.gz
misc-master.tar.bz2
net-im/jabberd: corrected typoHEADmaster
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'net-im/jabberd/jabberd-2.1.11-r2.ebuild') (more/less context) (ignore whitespace changes)
-rw-r--r--net-im/jabberd/jabberd-2.1.11-r2.ebuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/net-im/jabberd/jabberd-2.1.11-r2.ebuild b/net-im/jabberd/jabberd-2.1.11-r2.ebuild
index 9445d07..b1bf9f4 100644
--- a/net-im/jabberd/jabberd-2.1.11-r2.ebuild
+++ b/net-im/jabberd/jabberd-2.1.11-r2.ebuild
@@ -1,110 +1,110 @@
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: $ 3# $Header: $
4 4
5WANT_AUTOCONF="lastest" 5WANT_AUTOCONF="latest"
6WANT_AUTOMAKE="none" 6WANT_AUTOMAKE="none"
7inherit pam eutils postgresql autotools 7inherit pam eutils postgresql autotools
8 8
9DESCRIPTION="Open Source Jabber Server" 9DESCRIPTION="Open Source Jabber Server"
10HOMEPAGE="http://jabberd2.xiaoka.com/" 10HOMEPAGE="http://jabberd2.xiaoka.com/"
11SRC_URI="http://ftp.xiaoka.com/${PN}2/releases/${P}.tar.bz2" 11SRC_URI="http://ftp.xiaoka.com/${PN}2/releases/${P}.tar.bz2"
12 12
13SLOT="0" 13SLOT="0"
14LICENSE="GPL-2" 14LICENSE="GPL-2"
15KEYWORDS="~amd64 ~ppc ~sparc ~x86" 15KEYWORDS="~amd64 ~ppc ~sparc ~x86"
16IUSE="debug memdebug ldap mysql pam pipe postgres sqlite ssl berkdb anon fs" 16IUSE="debug memdebug ldap mysql pam pipe postgres sqlite ssl berkdb anon fs"
17 17
18RDEPEND=">=net-im/jabber-base-0.01 18RDEPEND=">=net-im/jabber-base-0.01
19 ssl? ( >=dev-libs/openssl-0.9.6b ) 19 ssl? ( >=dev-libs/openssl-0.9.6b )
20 idn? ( net-dns/libidn ) 20 idn? ( net-dns/libidn )
21 ldap? ( net-nds/openldap ) 21 ldap? ( net-nds/openldap )
22 berkdb? ( >=sys-libs/db-4.1.25 ) 22 berkdb? ( >=sys-libs/db-4.1.25 )
23 mysql? ( virtual/mysql ) 23 mysql? ( virtual/mysql )
24 postgres? ( virtual/postgresql-libs ) 24 postgres? ( virtual/postgresql-libs )
25 sqlite? ( =dev-db/sqlite-3* ) 25 sqlite? ( =dev-db/sqlite-3* )
26 dev-libs/expat 26 dev-libs/expat
27 dev-libs/cyrus-sasl" 27 dev-libs/cyrus-sasl"
28DEPEND="${RDEPEND}" 28DEPEND="${RDEPEND}"
29 29
30src_unpack() { 30src_unpack() {
31 unpack $A 31 unpack $A
32 cd "$S" 32 cd "$S"
33 epatch "${FILESDIR}/${PF}.patch" 33 epatch "${FILESDIR}/${PF}.patch"
34 eautoreconf 34 eautoreconf
35} 35}
36 36
37src_compile() { 37src_compile() {
38 38
39 if use memdebug && ! use debug ; then 39 if use memdebug && ! use debug ; then
40 ewarn '"memdebug" requires "debug"' 40 ewarn '"memdebug" requires "debug"'
41 fi 41 fi
42 42
43 local pgconfigbin 43 local pgconfigbin
44 use postgres && pgconfigbin="$(postgresql_get_pgconfig)" 44 use postgres && pgconfigbin="$(postgresql_get_pgconfig)"
45 # gsasl backend is disabled due to the lack of proper gsasl in the tree 45 # gsasl backend is disabled due to the lack of proper gsasl in the tree
46 # TODO: rework postgres part in configure.ac 46 # TODO: rework postgres part in configure.ac
47 # TODO: conditionally add extra include path for db_includedir from 47 # TODO: conditionally add extra include path for db_includedir from
48 # db-use.eclass 48 # db-use.eclass
49 econf \ 49 econf \
50 --localstatedir=/var \ 50 --localstatedir=/var \
51 --sysconfdir=/etc/jabber \ 51 --sysconfdir=/etc/jabber \
52 $(use_enable debug) \ 52 $(use_enable debug) \
53 $(use_enable memdebug nad-debug) $(use_enable memdebug pool-debug) \ 53 $(use_enable memdebug nad-debug) $(use_enable memdebug pool-debug) \
54 --enable-sasl=cyrus \ 54 --enable-sasl=cyrus \
55 $(use_enable ssl) \ 55 $(use_enable ssl) \
56 $(use_enable mysql) \ 56 $(use_enable mysql) \
57 $(use_enable postgres pgsql "$pgconfigbin") \ 57 $(use_enable postgres pgsql "$pgconfigbin") \
58 $(use_enable sqlite) \ 58 $(use_enable sqlite) \
59 $(use_enable berkdb db) \ 59 $(use_enable berkdb db) \
60 $(use_enable ldap) \ 60 $(use_enable ldap) \
61 $(use_enable pam) \ 61 $(use_enable pam) \
62 $(use_enable pipe) \ 62 $(use_enable pipe) \
63 $(use_enable anon) \ 63 $(use_enable anon) \
64 $(use_enable fs) \ 64 $(use_enable fs) \
65 || die "econf failed" 65 || die "econf failed"
66 emake || die "make failed" 66 emake || die "make failed"
67 67
68} 68}
69 69
70src_install() { 70src_install() {
71 71
72 make DESTDIR="${D}" install || die "make install failed" 72 make DESTDIR="${D}" install || die "make install failed"
73 73
74 fowners jabber:jabber /usr/bin/{jabberd,router,resolver,sm,c2s,s2s} 74 fowners jabber:jabber /usr/bin/{jabberd,router,resolver,sm,c2s,s2s}
75 fperms 750 /usr/bin/{jabberd,router,resolver,sm,c2s,s2s} 75 fperms 750 /usr/bin/{jabberd,router,resolver,sm,c2s,s2s}
76 76
77 newinitd "${FILESDIR}/jabberd-${PV}.init" jabberd || die "newinitd failed" 77 newinitd "${FILESDIR}/jabberd-${PV}.init" jabberd || die "newinitd failed"
78 if use pam ; then 78 if use pam ; then
79 newpamd "${FILESDIR}/jabberd-${PV}.pamd" jabberd || die "newpamd failed" 79 newpamd "${FILESDIR}/jabberd-${PV}.pamd" jabberd || die "newpamd failed"
80 fi 80 fi
81 81
82 dodoc AUTHORS BUGS NEWS PROTOCOL README UPGRADE 82 dodoc AUTHORS BUGS NEWS PROTOCOL README UPGRADE
83 docinto tools 83 docinto tools
84 for i in db-* migrate.pl pipe-auth.pl; do 84 for i in db-* migrate.pl pipe-auth.pl; do
85 dodoc tools/${i} 85 dodoc tools/${i}
86 done 86 done
87 87
88 cd "${D}/etc/jabber/" 88 cd "${D}/etc/jabber/"
89 sed -i \ 89 sed -i \
90 -e 's,/var/jabberd/pid/,/var/run/jabber/,g' \ 90 -e 's,/var/jabberd/pid/,/var/run/jabber/,g' \
91 -e 's,/var/jabberd/log/,/var/log/jabber/,g' \ 91 -e 's,/var/jabberd/log/,/var/log/jabber/,g' \
92 -e 's,/var/jabberd/db,/var/spool/jabber/,g' \ 92 -e 's,/var/jabberd/db,/var/spool/jabber/,g' \
93 *.xml *.xml.dist || die "sed failed" 93 *.xml *.xml.dist || die "sed failed"
94 use berkdb && sed -i \ 94 use berkdb && sed -i \
95 -e 's,<module>mysql</module>,<module>db</module>,' \ 95 -e 's,<module>mysql</module>,<module>db</module>,' \
96 c2s.xml* 96 c2s.xml*
97 97
98} 98}
99 99
100pkg_postinst() { 100pkg_postinst() {
101 if use pam ; then 101 if use pam ; then
102 echo 102 echo
103 ewarn 'Jabberd-2 PAM authentication requires your unix usernames to' 103 ewarn 'Jabberd-2 PAM authentication requires your unix usernames to'
104 ewarn 'be in the form of "contactname@jabberdomain". This behavior' 104 ewarn 'be in the form of "contactname@jabberdomain". This behavior'
105 ewarn 'is likely to change in future versions of jabberd-2. It may' 105 ewarn 'is likely to change in future versions of jabberd-2. It may'
106 ewarn 'be advisable to avoid PAM authentication for the time being.' 106 ewarn 'be advisable to avoid PAM authentication for the time being.'
107 echo 107 echo
108 ebeep 108 ebeep
109 fi 109 fi
110} 110}