summaryrefslogtreecommitdiff
path: root/net-irc/bip
diff options
context:
space:
mode:
Diffstat (limited to 'net-irc/bip')
-rw-r--r--net-irc/bip/Manifest7
-rw-r--r--net-irc/bip/bip-0.8.9.ebuild65
-rw-r--r--net-irc/bip/files/bip-freenode.patch18
-rw-r--r--net-irc/bip/files/bip.vim4
-rw-r--r--net-irc/bip/metadata.xml21
5 files changed, 115 insertions, 0 deletions
diff --git a/net-irc/bip/Manifest b/net-irc/bip/Manifest
new file mode 100644
index 000000000000..2004b69443fe
--- /dev/null
+++ b/net-irc/bip/Manifest
@@ -0,0 +1,7 @@
+AUX bip-freenode.patch 671 SHA256 a67e582f89cc6a32d5bb48c7e8ceb647b889808c2c8798ae3eb27d88869b892f SHA512 eadbe7867b24aa57e9bd2ffdde0eaac50b39bc0ad374a2ebce9d3a074c381156bd99be0d9826dafc00077bd33ae8f07ef0765b80a02fa5affbdd771747d10774 WHIRLPOOL f60ddf1434c3a2a06c2be31ff61af186edd14f51f03d2511a9ee01d6bdee0414f58dcd2b531e1ea1e2d4d755e1df57d01450312be939d5af5d29406d0991a09e
+AUX bip.vim 102 SHA256 cafaae5d0e428980bff54df06ecad5a1c9eb15fed93ee2f3f980568c8eb15a0c SHA512 6e612cc2963f846bf7fdb0061ce68104c2fbe1f806923ccd54c821467e67eccde88d93ff88e33da27d32fb5c02c872ecaea02b523a25430b76291b4c63fe0be8 WHIRLPOOL cb07d201d8e2ab7bee129ea27dee912afd49b212fa1dcd6b8b603090cc3bf48bc3000a975782d53f11d7143e50a5253214ee084bad77d3b2c979ab1fb00a0eca
+DIST bip-0.8.9.tar.gz 256711 SHA256 3c950f71ef91c8b686e6835f9b722aa7ccb88d3da4ec1af19617354fd3132461 SHA512 572adb6e0982d74a39b0380ef6af51ba7f55b880f78e110b93e09616e6345bb4a9a60475df644ec891cae368287d502ba00bbf734370ba50c57b29de6934c138 WHIRLPOOL ffad5a0a525a09e6d31537dd4238353ac820a874f18a9590f039419e9d2b7aff4f92a1882f02db450e9e88957adbc4bc4eb993fbff01f7327bcdd02d0b1b6e6d
+EBUILD bip-0.8.9.ebuild 1416 SHA256 597fb76d2831ea4668bcc2e3391370b364b196013bca6e0476ce33c0eceb5bf2 SHA512 8c1d77dbc6bfe45c39580691e0e1931cd607d5c2a7d782b91c9b5acb273b6847dc1fb03da84aecc75f355375e243a6a8bdb5f6fea3e2518e95fa49eb95ef0bb1 WHIRLPOOL 5a7b2ca5ae41b45ae81e00f6a11e01d9384fa8fa740e14ae19236bb9c27b629dbab4842506fd201bfaca29166674b3e95bdd93f5729d3f015738ee9fa361c3f9
+MISC ChangeLog 3492 SHA256 b5c64ebb15f97687bf253ee301388dd3ac1d88ef8cbea8e73eaa2d81c3ffa09f SHA512 4987a8451ece0997762d167008f6be93e29aec1260873800d16aaec3ce47b1183e357d8372d857fa7328dfeb67acc46ffe3360c531dadd79970eee6259dd4809 WHIRLPOOL 2638810fd57320f6c36ce04990561fc85ccf05a82bb33d5557800615f1a1e1e6665bd1986351b2d29fa762162e9460e95beb54e0de282274257053c8902c0a54
+MISC ChangeLog-2015 4428 SHA256 a9fb7ccf0ee8a14040ea78287e9d4aefdc66004f30dfeb552a54ad5d3acecae2 SHA512 85c203b164156f7b3aeb3115c77ed9da1d06c7cb1bf5e7efa7d1fd1df832e6a3ee19f233f7dc886bfc8519b2562d59969e90105b838f07338303810d811b53f2 WHIRLPOOL d9da90d1aec8c5fcfd07e411e68eec93dbeb3f6d378a9c341b93ccbdebafea9d1313ff4daea9d4f6e1f6d6b89c273b77b454971eacf30be23b897f38743780fb
+MISC metadata.xml 1019 SHA256 5e68c0de8283c6c3286d7f913c6a16b40b6f5805126857b192bfc9af77b025be SHA512 21018551f0940f152202d2a380e4757a7a4d7f301967cd03ee424120bac173d48a77cde2c14aa657316d0d47b89679eee66d33bec987d84b794b75a0d0d82042 WHIRLPOOL c378aa98eea344cdfb3c1ea46c5001d9aad20507eaaedd8c61ed24c030cacb9cbc15666217c2b482096a676a152ea96f07c03c48ceded0232032195e50d5a804
diff --git a/net-irc/bip/bip-0.8.9.ebuild b/net-irc/bip/bip-0.8.9.ebuild
new file mode 100644
index 000000000000..cc037d11faa5
--- /dev/null
+++ b/net-irc/bip/bip-0.8.9.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+inherit eutils
+
+DESCRIPTION="Multiuser IRC proxy with SSL support"
+HOMEPAGE="http://bip.milkypond.org/"
+SRC_URI="ftp://ftp.duckcorp.org/bip/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug freenode noctcp oidentd vim-syntax"
+
+COMMON_DEPEND="
+ dev-libs/openssl:0
+"
+DEPEND="${COMMON_DEPEND}
+ sys-devel/flex
+ virtual/yacc
+"
+RDEPEND="${COMMON_DEPEND}
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
+ oidentd? ( >=net-misc/oidentd-2.0 )
+"
+
+src_prepare() {
+ if use noctcp; then
+ sed -i -e '/irc_privmsg_check_ctcp(server, line);/s:^://:' src/irc.c || die
+ fi
+
+ if use freenode; then
+ epatch "${FILESDIR}/${PN}-freenode.patch" || die
+ fi
+
+ sed -i -e "s/-Werror//" Makefile.in || die
+}
+
+src_configure() {
+ econf \
+ $(use_enable debug) \
+ $(use_enable oidentd)
+}
+
+src_install() {
+ dobin src/bip src/bipmkpw
+
+ dodoc AUTHORS ChangeLog README NEWS TODO
+ newdoc samples/bip.conf bip.conf.sample
+ doman bip.1 bip.conf.5 bipmkpw.1
+
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins samples/bip.vim
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${FILESDIR}"/bip.vim
+ fi
+}
+
+pkg_postinst() {
+ elog 'The default configuration file is "~/.bip/bip.conf"'
+ elog "You can find a sample configuration file in"
+ elog "/usr/share/doc/${PF}/bip.conf.sample"
+}
diff --git a/net-irc/bip/files/bip-freenode.patch b/net-irc/bip/files/bip-freenode.patch
new file mode 100644
index 000000000000..437da08f438d
--- /dev/null
+++ b/net-irc/bip/files/bip-freenode.patch
@@ -0,0 +1,18 @@
+Freenode's ircd-seven uses a custom banlist type for mutes (+q).
+This patch makes bip handle +q the same way as +q.
+Without it, a user wouldn't get the banlist replies for mutes.
+
+diff --git a/src/irc.c b/src/irc.c
+index 556bf97..a5cc039 100644
+--- a/src/irc.c
++++ b/src/irc.c
+@@ -944,7 +947,8 @@ static int irc_cli_mode(struct link_client *ic, struct line *line)
+
+ /* This is a wild guess and that sucks. */
+ if (!irc_line_elem_equals(line, 0, "MODE") ||
+- strchr(irc_line_elem(line, 2), 'b') == NULL)
++ (strchr(irc_line_elem(line, 2), 'b') == NULL &&
++ strchr(irc_line_elem(line, 2), 'q') == NULL))
+ return OK_COPY;
+
+ ++ic->who_count;
diff --git a/net-irc/bip/files/bip.vim b/net-irc/bip/files/bip.vim
new file mode 100644
index 000000000000..437d7f083633
--- /dev/null
+++ b/net-irc/bip/files/bip.vim
@@ -0,0 +1,4 @@
+" Vim filetype detection file for bip config files
+"
+
+au BufNewFile,BufRead bip.conf set filetype=bip
diff --git a/net-irc/bip/metadata.xml b/net-irc/bip/metadata.xml
new file mode 100644
index 000000000000..e20cca0de70b
--- /dev/null
+++ b/net-irc/bip/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ Bip is an IRC proxy, which means it keeps connected to your preferred
+ IRC servers, can store the logs for you, and even send them back to your IRC
+ client(s) upon connection. You may want to use bip to keep your logfiles (in a
+ unique format and on a unique computer) whatever your client is, when you
+ connect from multiple workstations, or when you simply want to have a playback
+ of what was said while you were away.
+ </longdescription>
+ <use>
+ <flag name="freenode">Enables freenode-specific functionality.
+ Currently that is only support for mute lists (MODE #channel +q).</flag>
+ <flag name="noctcp">Disable the automatic CTCP VERSION reply which is often
+ exploited by malicious people to cause a DoS (reconnect due to flooding).
+ </flag>
+ <flag name="oidentd">Enable oidentd support</flag>
+ </use>
+</pkgmetadata>