Gentoo Archives: gentoo-commits

From: "Cedric Krier (cedk)" <cedk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-im/bitlbee: ChangeLog bitlbee-1.2.4-r1.ebuild
Date: Sun, 28 Feb 2010 15:48:47
Message-Id: E1NllNr-0008U9-Lb@stork.gentoo.org
1 cedk 10/02/28 15:48:43
2
3 Modified: ChangeLog
4 Added: bitlbee-1.2.4-r1.ebuild
5 Log:
6 Replace bitlbeed init script with bitlbee for bug #301082
7 (Portage version: 2.1.7.16/cvs/Linux i686)
8
9 Revision Changes Path
10 1.123 net-im/bitlbee/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/bitlbee/ChangeLog?rev=1.123&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/bitlbee/ChangeLog?rev=1.123&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/bitlbee/ChangeLog?r1=1.122&r2=1.123
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-im/bitlbee/ChangeLog,v
19 retrieving revision 1.122
20 retrieving revision 1.123
21 diff -u -r1.122 -r1.123
22 --- ChangeLog 15 Nov 2009 13:56:01 -0000 1.122
23 +++ ChangeLog 28 Feb 2010 15:48:42 -0000 1.123
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-im/bitlbee
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/ChangeLog,v 1.122 2009/11/15 13:56:01 cedk Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/ChangeLog,v 1.123 2010/02/28 15:48:42 cedk Exp $
30 +
31 +*bitlbee-1.2.4-r1 (28 Feb 2010)
32 +
33 + 28 Feb 2010; C├ędric Krier <cedk@g.o> +bitlbee-1.2.4-r1.ebuild,
34 + +files/bitlbee.confd, +files/bitlbee.initd:
35 + Replace bitlbeed init script with bitlbee for bug #301082
36
37 *bitlbee-1.2.4 (15 Nov 2009)
38
39
40
41
42 1.1 net-im/bitlbee/bitlbee-1.2.4-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/bitlbee/bitlbee-1.2.4-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/bitlbee/bitlbee-1.2.4-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: bitlbee-1.2.4-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/bitlbee-1.2.4-r1.ebuild,v 1.1 2010/02/28 15:48:42 cedk Exp $
52
53 EAPI="1"
54 inherit eutils toolchain-funcs confutils
55
56 DESCRIPTION="irc to IM gateway that support multiple IM protocols"
57 HOMEPAGE="http://www.bitlbee.org/"
58 SRC_URI="http://get.bitlbee.org/src/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd"
63 IUSE="debug gnutls ipv6 +jabber msn nss +oscar ssl test +yahoo xinetd" # ldap - Bug 195758
64
65 COMMON_DEPEND=">=dev-libs/glib-2.4
66 msn? ( gnutls? ( net-libs/gnutls )
67 !gnutls? ( nss? ( dev-libs/nss ) )
68 !gnutls? ( !nss? ( ssl? ( dev-libs/openssl ) ) )
69 )
70 jabber? ( gnutls? ( net-libs/gnutls )
71 !gnutls? ( nss? ( dev-libs/nss ) )
72 !gnutls? ( !nss? ( ssl? ( dev-libs/openssl ) ) )
73 )"
74 # ldap? ( net-nds/openldap )"
75 DEPEND="${COMMON_DEPEND}
76 dev-util/pkgconfig
77 test? ( dev-libs/check )"
78
79 RDEPEND="${COMMON_DEPEND}
80 virtual/logger
81 xinetd? ( sys-apps/xinetd )"
82
83 pkg_setup() {
84 elog "Note: Support for all IM protocols are controlled by use flags."
85 elog " Make sure you've enabled the flags you want."
86 elog
87 confutils_require_any jabber msn oscar yahoo
88
89 # At the request of upstream, die if MSN Messenger support is enabled
90 # but no SSL support has been enabled
91 confutils_use_depend_any msn gnutls nss ssl
92
93 if use jabber && ! use gnutls && ! use ssl ; then
94 if use nss; then
95 ewarn ""
96 ewarn "You have enabled nss and jabber"
97 ewarn "but nss doesn't work with jabber"
98 ewarn "Enable ONE of the following use instead"
99 ewarn "flags: gnutls or ssl"
100 ewarn ""
101 die "nss with jabber doesn't work"
102 fi
103 elog ""
104 elog "You have enabled support for Jabber but do not have SSL"
105 elog "support enabled. This *will* prevent bitlbee from being"
106 elog "able to connect to SSL enabled Jabber servers. If you need to"
107 elog "connect to Jabber over SSL, enable ONE of the following use"
108 elog "flags: gnutls or ssl"
109 elog ""
110 fi
111
112 enewgroup bitlbee
113 enewuser bitlbee -1 -1 /var/lib/bitlbee bitlbee
114 }
115
116 src_unpack() {
117 unpack ${A}
118 cd "${S}"
119
120 sed -i \
121 -e "s@/usr/local/sbin/bitlbee@/usr/sbin/bitlbee@" \
122 -e "s/nobody/bitlbee/" \
123 -e "s/}/ disable = yes\n}/" \
124 doc/bitlbee.xinetd || die "sed failed in xinetd"
125
126 sed -i \
127 -e "s@mozilla-nss@nss@g" \
128 configure || die "sed failed in configure"
129 }
130
131 src_compile() {
132 # ldap hard-disabled for now
133 local myconf="--ldap=0"
134
135 # setup protocol, ipv6 and debug
136 for flag in debug ipv6 msn jabber oscar yahoo ; do
137 if use ${flag} ; then
138 myconf="${myconf} --${flag}=1"
139 else
140 myconf="${myconf} --${flag}=0"
141 fi
142 done
143
144 # setup ssl use flags
145 if use gnutls ; then
146 myconf="${myconf} --ssl=gnutls"
147 einfo "Use gnutls as SSL support"
148 elif use ssl ; then
149 myconf="${myconf} --ssl=openssl"
150 einfo "Use openssl as SSL support"
151 elif use nss ; then
152 myconf="${myconf} --ssl=nss"
153 einfo "Use nss as SSL support"
154 else
155 myconf="${myconf} --ssl=bogus"
156 einfo "You will not have any encryption support enabled."
157 fi
158
159 # NOTE: bitlbee's configure script is not an autotool creation,
160 # so that is why we don't use econf.
161 ./configure --prefix=/usr --datadir=/usr/share/bitlbee \
162 --etcdir=/etc/bitlbee --strip=0 ${myconf} || die "econf failed"
163
164 sed -i \
165 -e "s/CFLAGS=.*$/CFLAGS=${CFLAGS}/" \
166 Makefile.settings || die "sed failed"
167
168 emake || die "make failed"
169 }
170
171 src_install() {
172 make install DESTDIR="${D}" || die "install failed"
173 make install-etc DESTDIR="${D}" || die "install failed"
174 make install-doc DESTDIR="${D}" || die "install failed"
175 make install-dev DESTDIR="${D}" || die "install failed"
176 keepdir /var/lib/bitlbee
177 fperms 700 /var/lib/bitlbee
178 fowners bitlbee:bitlbee /var/lib/bitlbee
179
180 dodoc doc/{AUTHORS,CHANGES,CREDITS,FAQ,README}
181 dodoc doc/user-guide/user-guide.txt
182 dohtml -A xml doc/user-guide/*.xml
183 dohtml -A xsl doc/user-guide/*.xsl
184 dohtml doc/user-guide/*.html
185
186 doman doc/bitlbee.8 doc/bitlbee.conf.5
187
188 if use xinetd; then
189 insinto /etc/xinetd.d
190 newins doc/bitlbee.xinetd bitlbee
191 fi
192
193 newinitd "${FILESDIR}"/bitlbee.initd bitlbee || die
194 newconfd "${FILESDIR}"/bitlbee.confd bitlbee || die
195
196 keepdir /var/run/bitlbee
197 fowners bitlbee:bitlbee /var/run/bitlbee
198
199 dodir /usr/share/bitlbee
200 insinto /usr/share/bitlbee
201 cd utils
202 doins centericq2bitlbee.sh convert_gnomeicu.txt create_nicksfile.pl
203 doins bitlbee-ctl.pl
204 }
205
206 pkg_postinst() {
207 chown -R bitlbee:bitlbee "${ROOT}"/var/lib/bitlbee
208 chown -R bitlbee:bitlbee "${ROOT}"/var/run/bitlbee
209
210 elog "The utils included in bitlbee are now located in /usr/share/bitlbee"
211 elog
212 elog "NOTE: The IRSSI script is no longer provided by BitlBee."
213 elog
214 elog "The bitlbeed init script has been replaced by bitlbee."
215 elog "You must update your configuration."
216 }