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.1.1.ebuild
Date: Sun, 30 Dec 2007 12:18:13
Message-Id: E1J8x7I-0002sU-JJ@stork.gentoo.org
1 cedk 07/12/30 12:18:08
2
3 Modified: ChangeLog
4 Added: bitlbee-1.1.1.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.91 net-im/bitlbee/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/bitlbee/ChangeLog?rev=1.91&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/bitlbee/ChangeLog?rev=1.91&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/bitlbee/ChangeLog?r1=1.90&r2=1.91
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-im/bitlbee/ChangeLog,v
19 retrieving revision 1.90
20 retrieving revision 1.91
21 diff -u -r1.90 -r1.91
22 --- ChangeLog 13 Dec 2007 21:05:24 -0000 1.90
23 +++ ChangeLog 30 Dec 2007 12:18:08 -0000 1.91
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-im/bitlbee
26 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/ChangeLog,v 1.90 2007/12/13 21:05:24 cedk Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/ChangeLog,v 1.91 2007/12/30 12:18:08 cedk Exp $
29 +
30 +*bitlbee-1.1.1 (30 Dec 2007)
31 +
32 + 30 Dec 2007; Cédric Krier <cedk@g.o> +bitlbee-1.1.1.ebuild:
33 + Version bump
34
35 13 Dec 2007; Cédric Krier <cedk@g.o> bitlbee-1.1-r1.ebuild:
36 Fix to enable bogus ssl
37
38
39
40 1.1 net-im/bitlbee/bitlbee-1.1.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/bitlbee/bitlbee-1.1.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-im/bitlbee/bitlbee-1.1.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: bitlbee-1.1.1.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/bitlbee-1.1.1.ebuild,v 1.1 2007/12/30 12:18:08 cedk Exp $
50
51 EAPI="1"
52 inherit eutils toolchain-funcs confutils
53
54 MY_P="${P}dev"
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/${MY_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 +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
78 RDEPEND="${COMMON_DEPEND}
79 virtual/logger
80 xinetd? ( sys-apps/xinetd )"
81
82 S="${WORKDIR}/${MY_P}"
83
84 pkg_setup() {
85 elog "Note: Support for all IM protocols are controlled by use flags."
86 elog " Make sure you've enabled the flags you want."
87 elog
88 confutils_require_any jabber msn oscar yahoo
89
90 # At the request of upstream, die if MSN Messenger support is enabled
91 # but no SSL support has been enabled
92 confutils_use_depend_any msn gnutls nss ssl
93
94 # Warn but not die if jabber is enabled but SSL is not
95 if use jabber && ! use gnutls && ! use nss && ! use ssl ; then
96 ewarn ""
97 ewarn "You have enabled support for Jabber but do not have SSL"
98 ewarn "support enabled. This *will* prevent bitlbee from being"
99 ewarn "able to connect to SSL enabled Jabber servers. If you need to"
100 ewarn "connect to Jabber over SSL, enable ONE of the following use"
101 ewarn "flags: gnutls, nss or ssl"
102 ewarn ""
103 fi
104
105 enewgroup bitlbee
106 enewuser bitlbee -1 -1 /var/lib/bitlbee bitlbee
107 }
108
109 src_unpack() {
110 unpack ${A}
111 cd "${S}"
112
113 sed -i \
114 -e "s@/usr/local/sbin/bitlbee@/usr/sbin/bitlbee@" \
115 -e "s/nobody/bitlbee/" \
116 -e "s/}/ disable = yes\n}/" \
117 doc/bitlbee.xinetd || die "sed failed in xinetd"
118
119 sed -i \
120 -e "s@mozilla-nss@nss@g" \
121 configure || die "sed failed in configure"
122 }
123
124 src_compile() {
125 # ldap hard-disabled for now
126 local myconf="--ldap=0"
127
128 # setup protocol, ipv6 and debug
129 for flag in debug ipv6 msn jabber oscar yahoo ; do
130 if use ${flag} ; then
131 myconf="${myconf} --${flag}=1"
132 else
133 myconf="${myconf} --${flag}=0"
134 fi
135 done
136
137 # setup ssl use flags
138 if use gnutls ; then
139 myconf="${myconf} --ssl=gnutls"
140 elif use nss ; then
141 myconf="${myconf} --ssl=nss"
142 elif use ssl ; then
143 myconf="${myconf} --ssl=openssl"
144 else
145 myconf="${myconf} --ssl=bogus"
146 einfo "You will not have any encryption support enabled."
147 fi
148
149 # NOTE: bitlbee's configure script is not an autotool creation,
150 # so that is why we don't use econf.
151 ./configure --prefix=/usr --datadir=/usr/share/bitlbee \
152 --etcdir=/etc/bitlbee --strip=0 ${myconf} || die "econf failed"
153
154 sed -i \
155 -e "s/CFLAGS=.*$/CFLAGS=${CFLAGS}/" \
156 Makefile.settings || die "sed failed"
157
158 emake || die "make failed"
159
160 # make bitlbeed forking server
161 cd utils
162 $(tc-getCC) ${CFLAGS} bitlbeed.c -o bitlbeed \
163 || die "bitlbeed failed to compile"
164 }
165
166 src_install() {
167 make install DESTDIR="${D}" || die "install failed"
168 make install-etc DESTDIR="${D}" || die "install failed"
169 make install-doc DESTDIR="${D}" || die "install failed"
170 keepdir /var/lib/bitlbee
171 fperms 700 /var/lib/bitlbee
172 fowners bitlbee:bitlbee /var/lib/bitlbee
173
174 dodoc doc/{AUTHORS,CHANGES,CREDITS,FAQ,README}
175 dodoc doc/user-guide/user-guide.txt
176 dohtml -A xml doc/user-guide/*.xml
177 dohtml -A xsl doc/user-guide/*.xsl
178 dohtml doc/user-guide/*.html
179
180 doman doc/bitlbee.8 doc/bitlbee.conf.5
181
182 dobin utils/bitlbeed
183
184 if use xinetd; then
185 insinto /etc/xinetd.d
186 newins doc/bitlbee.xinetd bitlbee
187 fi
188
189 newinitd "${FILESDIR}"/bitlbeed.initd bitlbeed || die
190 newconfd "${FILESDIR}"/bitlbeed.confd2 bitlbeed || die
191
192 keepdir /var/run/bitlbeed
193
194 dodir /usr/share/bitlbee
195 insinto /usr/share/bitlbee
196 cd utils
197 doins centericq2bitlbee.sh convert_gnomeicu.txt create_nicksfile.pl
198 doins bitlbee-ctl.pl
199 }
200
201 pkg_postinst() {
202 chown -R bitlbee:bitlbee "${ROOT}"/var/lib/bitlbee
203
204 elog "The utils included in bitlbee (other than bitlbeed) are now"
205 elog "located in /usr/share/bitlbee"
206 elog
207 elog "NOTE: The IRSSI script is no longer provided by BitlBee."
208 }
209
210
211
212 --
213 gentoo-commits@g.o mailing list