1 |
commit: 7277d55009938e328281b61b502722ea59d1f342 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 25 18:22:34 2015 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 25 18:22:50 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7277d550 |
7 |
|
8 |
net-irc/bip: remove old |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
net-irc/bip/Manifest | 1 - |
13 |
net-irc/bip/bip-0.8.8-r1.ebuild | 72 ----------------- |
14 |
net-irc/bip/files/bip-0.8.8-configure.patch | 50 ------------ |
15 |
net-irc/bip/files/bip-CVE-2012-0806.patch | 121 ---------------------------- |
16 |
4 files changed, 244 deletions(-) |
17 |
|
18 |
diff --git a/net-irc/bip/Manifest b/net-irc/bip/Manifest |
19 |
index 7f1005f..7e8596b 100644 |
20 |
--- a/net-irc/bip/Manifest |
21 |
+++ b/net-irc/bip/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST bip-0.8.8.tar.gz 220232 SHA256 7ca3fb96f5ee6b76eb398d7ea45344ea24855344ced11632241a33353bba05d7 SHA512 acd62a61379290088320567b299b9d2e236c24aea7c83c4bfb7dedba9727868fb931d7e2eb663c9041794c26583bcc923072049cb42eef0d13702f284bae2b34 WHIRLPOOL b2e5f7a1328832fce7b3c7eb706ec87e7eb023043e714dbc554126730d2e9dc37af2d127e15ef024fff1e95b9dd22351cd48b3b115b58b9fd9ecbdd92f20cda1 |
24 |
DIST bip-0.8.9.tar.gz 256711 SHA256 3c950f71ef91c8b686e6835f9b722aa7ccb88d3da4ec1af19617354fd3132461 SHA512 572adb6e0982d74a39b0380ef6af51ba7f55b880f78e110b93e09616e6345bb4a9a60475df644ec891cae368287d502ba00bbf734370ba50c57b29de6934c138 WHIRLPOOL ffad5a0a525a09e6d31537dd4238353ac820a874f18a9590f039419e9d2b7aff4f92a1882f02db450e9e88957adbc4bc4eb993fbff01f7327bcdd02d0b1b6e6d |
25 |
|
26 |
diff --git a/net-irc/bip/bip-0.8.8-r1.ebuild b/net-irc/bip/bip-0.8.8-r1.ebuild |
27 |
deleted file mode 100644 |
28 |
index 86fc9b0..0000000 |
29 |
--- a/net-irc/bip/bip-0.8.8-r1.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,72 +0,0 @@ |
32 |
-# Copyright 1999-2012 Gentoo Foundation |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
-# $Id$ |
35 |
- |
36 |
-EAPI="2" |
37 |
-inherit eutils autotools |
38 |
- |
39 |
-DESCRIPTION="Multiuser IRC proxy with SSL support" |
40 |
-HOMEPAGE="http://bip.milkypond.org/" |
41 |
-SRC_URI="ftp://ftp.duckcorp.org/bip/${P}.tar.gz" |
42 |
- |
43 |
-LICENSE="GPL-2" |
44 |
-SLOT="0" |
45 |
-KEYWORDS="amd64 x86" |
46 |
-IUSE="debug freenode noctcp ssl vim-syntax oidentd" |
47 |
- |
48 |
-DEPEND="sys-devel/flex |
49 |
- virtual/yacc |
50 |
- ssl? ( dev-libs/openssl )" |
51 |
- |
52 |
-RDEPEND="${DEPEND} |
53 |
- vim-syntax? ( |
54 |
- || ( app-editors/vim app-editors/gvim ) ) |
55 |
- oidentd? ( >=net-misc/oidentd-2.0 )" |
56 |
- |
57 |
-src_prepare() { |
58 |
- epatch "${FILESDIR}/${P}-configure.patch" || die |
59 |
- epatch "${FILESDIR}/${PN}-CVE-2012-0806.patch" || die |
60 |
- |
61 |
- eautoreconf |
62 |
- |
63 |
- if use noctcp; then |
64 |
- sed -i -e '/irc_privmsg_check_ctcp(server, line);/s:^://:' src/irc.c || die |
65 |
- fi |
66 |
- |
67 |
- if use freenode; then |
68 |
- epatch "${FILESDIR}/${PN}-freenode.patch" || die |
69 |
- fi |
70 |
-} |
71 |
- |
72 |
-src_configure() { |
73 |
- econf \ |
74 |
- $(use_with ssl openssl) \ |
75 |
- $(use_enable debug) \ |
76 |
- $(use_enable oidentd) |
77 |
-} |
78 |
- |
79 |
-src_compile() { |
80 |
- # Parallel make fails. |
81 |
- emake -j1 || die "emake failed" |
82 |
-} |
83 |
- |
84 |
-src_install() { |
85 |
- dobin src/bip src/bipmkpw || die "dobin failed" |
86 |
- |
87 |
- dodoc AUTHORS ChangeLog README NEWS TODO || die "dodoc failed" |
88 |
- newdoc samples/bip.conf bip.conf.sample || die "newdoc failed" |
89 |
- doman bip.1 bip.conf.5 bipmkpw.1 || die "doman failed" |
90 |
- |
91 |
- if use vim-syntax; then |
92 |
- insinto /usr/share/vim/vimfiles/syntax |
93 |
- doins samples/bip.vim || die "doins failed" |
94 |
- insinto /usr/share/vim/vimfiles/ftdetect |
95 |
- doins "${FILESDIR}"/bip.vim || die "doins failed" |
96 |
- fi |
97 |
-} |
98 |
- |
99 |
-pkg_postinst() { |
100 |
- elog 'The default configuration file is "~/.bip/bip.conf"' |
101 |
- elog "You can find a sample configuration file in" |
102 |
- elog "/usr/share/doc/${PF}/bip.conf.sample" |
103 |
-} |
104 |
|
105 |
diff --git a/net-irc/bip/files/bip-0.8.8-configure.patch b/net-irc/bip/files/bip-0.8.8-configure.patch |
106 |
deleted file mode 100644 |
107 |
index 592bdc6..0000000 |
108 |
--- a/net-irc/bip/files/bip-0.8.8-configure.patch |
109 |
+++ /dev/null |
110 |
@@ -1,50 +0,0 @@ |
111 |
-commit 559fa7ed44238e811ac0c11321ed021c35cba2be |
112 |
-Author: Pierre-Louis Bonicoli <pierre-louis.bonicoli@×××.fr> |
113 |
-Date: Wed Sep 14 06:30:09 2011 +0200 |
114 |
- |
115 |
- don't override user var. Thanks to Alex Legler |
116 |
- |
117 |
- Based on gentoo-x86/net-irc/bip/files/bip-configure.patch |
118 |
- See http://www.gnu.org/software/autoconf/manual/automake.html#User-Variables |
119 |
- If user doesn't specify CFLAGS, default value is "-Wall -Wextra -g -O2". |
120 |
- |
121 |
-diff --git a/Makefile.am b/Makefile.am |
122 |
-index c2dae4d..f17c314 100644 |
123 |
---- a/Makefile.am |
124 |
-+++ b/Makefile.am |
125 |
-@@ -13,13 +13,8 @@ src_bip_SOURCES = src/conf.y src/lex.l \ |
126 |
- src_bipmkpw_SOURCES = src/bipmkpw.c src/md5.c src/util.c |
127 |
- AM_YFLAGS= -d |
128 |
- BUILT_SOURCES = src/conf.c src/conf.h src/lex.c |
129 |
--if DEBUG |
130 |
-- AM_CFLAGS+=-Wall -g |
131 |
-- AM_LDFLAGS+=-g |
132 |
--else |
133 |
-- AM_CFLAGS+=-Wall |
134 |
--endif |
135 |
- |
136 |
-+AM_CFLAGS=-Wall -Wextra |
137 |
- |
138 |
- dist_man_MANS = bip.1 bip.conf.5 bipmkpw.1 |
139 |
- |
140 |
-diff --git a/configure.ac b/configure.ac |
141 |
-index 005e697..5740a39 100644 |
142 |
---- a/configure.ac |
143 |
-+++ b/configure.ac |
144 |
-@@ -44,16 +44,12 @@ AC_ARG_ENABLE([pie], AS_HELP_STRING([--disable-pie], [Do not build a position in |
145 |
- |
146 |
- AM_CONDITIONAL(DEBUG, test x$enable_debug = xyes) |
147 |
- AS_IF([test "x$enable_debug" = "xyes"], [ |
148 |
-- CFLAGS="-O0 -g -W -Wall" |
149 |
-- LDFLAGS="-g" |
150 |
- AC_CHECK_FUNC(backtrace_symbols_fd, [ |
151 |
- AC_DEFINE(HAVE_BACKTRACE, [], [Use glibc backtrace on fatal()]) |
152 |
- LDFLAGS="-rdynamic $LDFLAGS" |
153 |
- backtrace="(with backtrace)" |
154 |
- ]) |
155 |
- ], [ |
156 |
-- CFLAGS="-O2 -g -W -Wall" |
157 |
-- LDFLAGS="-g" |
158 |
- enable_debug=no |
159 |
- ]) |
160 |
- |
161 |
|
162 |
diff --git a/net-irc/bip/files/bip-CVE-2012-0806.patch b/net-irc/bip/files/bip-CVE-2012-0806.patch |
163 |
deleted file mode 100644 |
164 |
index 6ea26ae..0000000 |
165 |
--- a/net-irc/bip/files/bip-CVE-2012-0806.patch |
166 |
+++ /dev/null |
167 |
@@ -1,121 +0,0 @@ |
168 |
-commit 222a33cb84a2e52ad55a88900b7895bf9dd0262c |
169 |
-Author: Pierre-Louis Bonicoli <pierre-louis.bonicoli@×××.fr> |
170 |
-Date: Sat Jan 7 11:41:02 2012 +0100 |
171 |
- |
172 |
- Buffer Overflow: check against the implicit size of select() arrays |
173 |
- |
174 |
- Reported by Julien Tinnes (Fix #269) |
175 |
- exit is called when the listening socket can not be created |
176 |
- |
177 |
-diff --git a/src/bip.c b/src/bip.c |
178 |
-index d46ee2b..b4ac706 100644 |
179 |
---- a/src/bip.c |
180 |
-+++ b/src/bip.c |
181 |
-@@ -1311,7 +1311,7 @@ int main(int argc, char **argv) |
182 |
- close(fd); |
183 |
- |
184 |
- bip.listener = listen_new(conf_ip, conf_port, conf_css); |
185 |
-- if (!bip.listener) |
186 |
-+ if (!bip.listener || bip.listener->connected == CONN_ERROR) |
187 |
- fatal("Could not create listening socket"); |
188 |
- |
189 |
- for (;;) { |
190 |
-diff --git a/src/connection.c b/src/connection.c |
191 |
-index 07ab431..5c4c24a 100644 |
192 |
---- a/src/connection.c |
193 |
-+++ b/src/connection.c |
194 |
-@@ -124,6 +124,18 @@ static void connect_trynext(connection_t *cn) |
195 |
- continue; |
196 |
- } |
197 |
- |
198 |
-+ if (cn->handle >= FD_SETSIZE) { |
199 |
-+ mylog(LOG_WARN, "too many fd used, close socket %d", |
200 |
-+ cn->handle); |
201 |
-+ |
202 |
-+ if (close(cn->handle) == -1) |
203 |
-+ mylog(LOG_WARN, "Error on socket close: %s", |
204 |
-+ strerror(errno)); |
205 |
-+ |
206 |
-+ cn->handle = -1; |
207 |
-+ break; |
208 |
-+ } |
209 |
-+ |
210 |
- socket_set_nonblock(cn->handle); |
211 |
- |
212 |
- if (cn->connecting_data->src) { |
213 |
-@@ -789,13 +801,8 @@ list_t *wait_event(list_t *cn_list, int *msec, int *nc) |
214 |
- /* |
215 |
- * This shouldn't happen ! just in case... |
216 |
- */ |
217 |
-- if (cn->handle < 0) { |
218 |
-- mylog(LOG_WARN, "wait_event invalid socket %d", |
219 |
-- cn->handle); |
220 |
-- if (cn_is_connected(cn)) |
221 |
-- cn->connected = CONN_ERROR; |
222 |
-- continue; |
223 |
-- } |
224 |
-+ if (cn->handle < 0 || cn->handle >= FD_SETSIZE) |
225 |
-+ fatal("wait_event invalid socket %d", cn->handle); |
226 |
- |
227 |
- /* exceptions are OOB and disconnections */ |
228 |
- FD_SET(cn->handle, &fds_except); |
229 |
-@@ -966,6 +973,18 @@ static void create_listening_socket(char *hostname, char *port, |
230 |
- continue; |
231 |
- } |
232 |
- |
233 |
-+ if (cn->handle >= FD_SETSIZE) { |
234 |
-+ mylog(LOG_WARN, "too many fd used, close listening socket %d", |
235 |
-+ cn->handle); |
236 |
-+ |
237 |
-+ if (close(cn->handle) == -1) |
238 |
-+ mylog(LOG_WARN, "Error on socket close: %s", |
239 |
-+ strerror(errno)); |
240 |
-+ |
241 |
-+ cn->handle = -1; |
242 |
-+ break; |
243 |
-+ } |
244 |
-+ |
245 |
- if (setsockopt(cn->handle, SOL_SOCKET, SO_REUSEADDR, |
246 |
- (char *)&multi_client, |
247 |
- sizeof(multi_client)) < 0) { |
248 |
-@@ -1113,10 +1132,21 @@ connection_t *accept_new(connection_t *cn) |
249 |
- |
250 |
- mylog(LOG_DEBUG, "Trying to accept new client on %d", cn->handle); |
251 |
- err = accept(cn->handle, &sa, &sa_len); |
252 |
-+ |
253 |
- if (err < 0) { |
254 |
-- mylog(LOG_ERROR, "accept failed: %s", strerror(errno)); |
255 |
-+ fatal("accept failed: %s", strerror(errno)); |
256 |
-+ } |
257 |
-+ |
258 |
-+ if (err >= FD_SETSIZE) { |
259 |
-+ mylog(LOG_WARN, "too many client connected, close %d", err); |
260 |
-+ |
261 |
-+ if (close(err) == -1) |
262 |
-+ mylog(LOG_WARN, "Error on socket close: %s", |
263 |
-+ strerror(errno)); |
264 |
-+ |
265 |
- return NULL; |
266 |
- } |
267 |
-+ |
268 |
- socket_set_nonblock(err); |
269 |
- |
270 |
- conn = connection_init(cn->anti_flood, cn->ssl, cn->timeout, 0); |
271 |
-diff --git a/src/irc.c b/src/irc.c |
272 |
-index ebc1b34..147a315 100644 |
273 |
---- a/src/irc.c |
274 |
-+++ b/src/irc.c |
275 |
-@@ -2439,9 +2439,10 @@ void bip_on_event(bip_t *bip, connection_t *conn) |
276 |
- |
277 |
- if (conn == bip->listener) { |
278 |
- struct link_client *n = irc_accept_new(conn); |
279 |
-- assert(n); |
280 |
-- list_add_last(&bip->conn_list, CONN(n)); |
281 |
-- list_add_last(&bip->connecting_client_list, n); |
282 |
-+ if (n) { |
283 |
-+ list_add_last(&bip->conn_list, CONN(n)); |
284 |
-+ list_add_last(&bip->connecting_client_list, n); |
285 |
-+ } |
286 |
- return; |
287 |
- } |
288 |
- |