1 |
commit: b88292933045504e17c969385ab46df7661a9d80 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 1 22:30:18 2017 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 1 22:32:06 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8829293 |
7 |
|
8 |
net-im/bitlbee: version bump to 3.5.1 |
9 |
|
10 |
net-im/bitlbee/Manifest | 1 + |
11 |
net-im/bitlbee/bitlbee-3.5.1.ebuild | 168 ++++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 169 insertions(+) |
13 |
|
14 |
diff --git a/net-im/bitlbee/Manifest b/net-im/bitlbee/Manifest |
15 |
index 1afab0c..09af66d 100644 |
16 |
--- a/net-im/bitlbee/Manifest |
17 |
+++ b/net-im/bitlbee/Manifest |
18 |
@@ -1,2 +1,3 @@ |
19 |
DIST bitlbee-3.4.2.tar.gz 719456 SHA256 69c85554def74f314e3b6e390389a30b0e748f23ef37883e9d7545ee2c45ea57 SHA512 2b839c014cfad037d815aa0e0867dda1b4628ff076d8de6fec1e80ab1499bca565d9afbe104929d492ff68c86b745cc3f76acbeba102766d656f2d359b70302e WHIRLPOOL 43803ba2bbe6297e05e465912d22b0547bb0f9c3cd184a6c0c924dc023b9d505e3666aa732de83c79249e59aa0e2d6f621ee15c508ccc17eed1898b755f0112e |
20 |
+DIST bitlbee-3.5.1.tar.gz 680351 SHA256 9636d7fd89ebb3756c13a9a3387736ca6d56ccf66ec0580d512f07b21db0fa69 SHA512 4eb3b0d3a92910c8dd789cd23338cc6296bf40212c5244fcb27a88ede10e86424ea59c78e719841863701a7fdd8c61819f2775f7b58833e287d9110e49d036f3 WHIRLPOOL fd8645bb72e2cae336a5d627de0631f5858ffaf4d4d43e7efc5656605068179d86d0deff2810f56e5154995ffdd58ee8be90bc459ff9766dacd5e74d08aaefc7 |
21 |
DIST bitlbee-3.5.tar.gz 657177 SHA256 549d02181ab303dfe8a219faafd7a1aea7ee642eb071b767f668782a57388319 SHA512 7f044474fff5b1213dddc29e19aae102d1bbe4361cddcf9e58f965c01a58b6f7ed41cbf6ecec050a96f91f55dca15f6df948dee105eff001086d9daa15ba0499 WHIRLPOOL 72434e9d7d43a0d1bf6d1f8c0eda10a099fca262d5431430d0001a7dc7b34e7594e5a6dc0942eebc04f7073bc73d4d8b3f7d00991b21b47d1cfb15ea542715c7 |
22 |
|
23 |
diff --git a/net-im/bitlbee/bitlbee-3.5.1.ebuild b/net-im/bitlbee/bitlbee-3.5.1.ebuild |
24 |
new file mode 100644 |
25 |
index 00000000..c27ab7a |
26 |
--- /dev/null |
27 |
+++ b/net-im/bitlbee/bitlbee-3.5.1.ebuild |
28 |
@@ -0,0 +1,168 @@ |
29 |
+# Copyright 1999-2017 Gentoo Foundation |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+# $Id$ |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+inherit user systemd toolchain-funcs |
36 |
+ |
37 |
+if [[ ${PV} == "9999" ]]; then |
38 |
+ EGIT_REPO_URI="https://github.com/bitlbee/bitlbee.git" |
39 |
+ inherit git-r3 |
40 |
+else |
41 |
+ SRC_URI="https://get.bitlbee.org/src/${P}.tar.gz" |
42 |
+ KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" |
43 |
+fi |
44 |
+ |
45 |
+DESCRIPTION="irc to IM gateway that support multiple IM protocols" |
46 |
+HOMEPAGE="https://www.bitlbee.org/" |
47 |
+ |
48 |
+LICENSE="GPL-2" |
49 |
+SLOT="0" |
50 |
+IUSE_PROTOCOLS="msn oscar purple twitter +xmpp" |
51 |
+IUSE="debug +gnutls ipv6 libevent libressl nss otr +plugins selinux test xinetd |
52 |
+ ${IUSE_PROTOCOLS}" |
53 |
+ |
54 |
+REQUIRED_USE=" |
55 |
+ || ( purple xmpp msn oscar ) |
56 |
+ xmpp? ( !nss ) |
57 |
+" |
58 |
+ |
59 |
+COMMON_DEPEND=" |
60 |
+ >=dev-libs/glib-2.16 |
61 |
+ purple? ( net-im/pidgin ) |
62 |
+ libevent? ( dev-libs/libevent:= ) |
63 |
+ otr? ( >=net-libs/libotr-4 ) |
64 |
+ gnutls? ( net-libs/gnutls:= ) |
65 |
+ !gnutls? ( |
66 |
+ nss? ( dev-libs/nss ) |
67 |
+ !nss? ( |
68 |
+ libressl? ( dev-libs/libressl:= ) |
69 |
+ !libressl? ( dev-libs/openssl:0= ) |
70 |
+ ) |
71 |
+ ) |
72 |
+" |
73 |
+DEPEND="${COMMON_DEPEND} |
74 |
+ virtual/pkgconfig |
75 |
+ selinux? ( sec-policy/selinux-bitlbee ) |
76 |
+ test? ( dev-libs/check )" |
77 |
+ |
78 |
+RDEPEND="${COMMON_DEPEND} |
79 |
+ virtual/logger |
80 |
+ xinetd? ( sys-apps/xinetd )" |
81 |
+ |
82 |
+pkg_setup() { |
83 |
+ enewgroup bitlbee |
84 |
+ enewuser bitlbee -1 -1 /var/lib/bitlbee bitlbee |
85 |
+} |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ if [[ ${PV} != "9999" ]]; then |
89 |
+ eapply \ |
90 |
+ "${FILESDIR}"/${PN}-3.5-systemd-user.patch \ |
91 |
+ "${FILESDIR}"/${PN}-3.5-verbose-build.patch |
92 |
+ fi |
93 |
+ |
94 |
+ eapply_user |
95 |
+} |
96 |
+ |
97 |
+src_configure() { |
98 |
+ local myconf |
99 |
+ |
100 |
+ # setup plugins, protocol, ipv6 and debug |
101 |
+ myconf+=( --jabber=$(usex xmpp 1 0) ) |
102 |
+ for flag in debug ipv6 plugins ${IUSE_PROTOCOLS/+xmpp/} ; do |
103 |
+ myconf+=( --${flag}=$(usex ${flag} 1 0) ) |
104 |
+ done |
105 |
+ |
106 |
+ # set otr |
107 |
+ if use otr && use plugins ; then |
108 |
+ myconf+=( --otr=plugin ) |
109 |
+ else |
110 |
+ if use otr ; then |
111 |
+ ewarn "OTR support has been disabled automatically because it" |
112 |
+ ewarn "requires the plugins USE flag." |
113 |
+ fi |
114 |
+ myconf+=( --otr=0 ) |
115 |
+ fi |
116 |
+ |
117 |
+ # setup ssl use flags |
118 |
+ if use gnutls ; then |
119 |
+ myconf+=( --ssl=gnutls ) |
120 |
+ einfo "Using gnutls for SSL support" |
121 |
+ else |
122 |
+ ewarn "Only gnutls is officially supported by upstream." |
123 |
+ if use nss ; then |
124 |
+ myconf+=( --ssl=nss ) |
125 |
+ einfo "Using nss for SSL support" |
126 |
+ else |
127 |
+ myconf+=( --ssl=openssl ) |
128 |
+ einfo "Using openssl for SSL support" |
129 |
+ fi |
130 |
+ fi |
131 |
+ |
132 |
+ # set event handler |
133 |
+ if use libevent ; then |
134 |
+ myconf+=( --events=libevent ) |
135 |
+ else |
136 |
+ myconf+=( --events=glib ) |
137 |
+ fi |
138 |
+ |
139 |
+ # not autotools-based |
140 |
+ ./configure \ |
141 |
+ --prefix=/usr \ |
142 |
+ --datadir=/usr/share/bitlbee \ |
143 |
+ --etcdir=/etc/bitlbee \ |
144 |
+ --plugindir=/usr/$(get_libdir)/bitlbee \ |
145 |
+ --systemdsystemunitdir=$(systemd_get_systemunitdir) \ |
146 |
+ --doc=1 \ |
147 |
+ --strip=0 \ |
148 |
+ --verbose=1 \ |
149 |
+ "${myconf[@]}" || die |
150 |
+ |
151 |
+ sed -i \ |
152 |
+ -e "/^EFLAGS/s:=:&${LDFLAGS} :" \ |
153 |
+ Makefile.settings || die |
154 |
+} |
155 |
+ |
156 |
+src_compile() { |
157 |
+ emake CC="$(tc-getCC)" LD="$(tc-getLD)" |
158 |
+} |
159 |
+ |
160 |
+src_install() { |
161 |
+ emake DESTDIR="${D}" install install-etc install-doc install-dev install-systemd |
162 |
+ |
163 |
+ keepdir /var/lib/bitlbee |
164 |
+ fperms 700 /var/lib/bitlbee |
165 |
+ fowners bitlbee:bitlbee /var/lib/bitlbee |
166 |
+ |
167 |
+ dodoc doc/{AUTHORS,CHANGES,CREDITS,FAQ,README} |
168 |
+ |
169 |
+ if use xinetd ; then |
170 |
+ insinto /etc/xinetd.d |
171 |
+ newins doc/bitlbee.xinetd bitlbee |
172 |
+ fi |
173 |
+ |
174 |
+ newinitd "${FILESDIR}"/bitlbee.initd-r1 bitlbee |
175 |
+ newconfd "${FILESDIR}"/bitlbee.confd-r1 bitlbee |
176 |
+ |
177 |
+ exeinto /usr/share/bitlbee |
178 |
+ doexe utils/{convert_purple.py,bitlbee-ctl.pl} |
179 |
+} |
180 |
+ |
181 |
+pkg_postinst() { |
182 |
+ chown -R bitlbee:bitlbee "${ROOT}"/var/lib/bitlbee |
183 |
+ [[ -d "${ROOT}"/var/run/bitlbee ]] && |
184 |
+ chown -R bitlbee:bitlbee "${ROOT}"/var/run/bitlbee |
185 |
+ |
186 |
+ if [[ -z ${REPLACING_VERSIONS} ]]; then |
187 |
+ einfo |
188 |
+ elog "The bitlbee init script will now attempt to stop all processes owned by the" |
189 |
+ elog "bitlbee user, including per-client forks." |
190 |
+ elog |
191 |
+ elog "Tell the init script not to touch anything besides the main bitlbee process" |
192 |
+ elog "by changing the BITLBEE_STOP_ALL variable in" |
193 |
+ elog " /etc/conf.d/bitlbee" |
194 |
+ einfo |
195 |
+ fi |
196 |
+} |