/[gentoo-x86]/net-irc/bip/bip-0.8.8-r1.ebuild
Gentoo

Contents of /net-irc/bip/bip-0.8.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jan 29 12:24:00 2012 UTC (2 years, 5 months ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #400599

(Portage version: 2.1.10.44/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-irc/bip/bip-0.8.8-r1.ebuild,v 1.2 2012/01/27 19:42:49 ago Exp $
4
5 EAPI="2"
6 inherit eutils autotools
7
8 DESCRIPTION="Multiuser IRC proxy with SSL support"
9 HOMEPAGE="http://bip.milkypond.org/"
10 SRC_URI="ftp://ftp.duckcorp.org/bip/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE="debug freenode noctcp ssl vim-syntax oidentd"
16
17 DEPEND="sys-devel/flex
18 virtual/yacc
19 ssl? ( dev-libs/openssl )"
20
21 RDEPEND="${DEPEND}
22 vim-syntax? (
23 || ( app-editors/vim app-editors/gvim ) )
24 oidentd? ( >=net-misc/oidentd-2.0 )"
25
26 src_prepare() {
27 epatch "${FILESDIR}/${P}-configure.patch" || die
28 epatch "${FILESDIR}/${PN}-CVE-2012-0806.patch" || die
29
30 eautoreconf
31
32 if use noctcp; then
33 sed -i -e '/irc_privmsg_check_ctcp(server, line);/s:^://:' src/irc.c || die
34 fi
35
36 if use freenode; then
37 epatch "${FILESDIR}/${PN}-freenode.patch" || die
38 fi
39 }
40
41 src_configure() {
42 econf \
43 $(use_with ssl openssl) \
44 $(use_enable debug) \
45 $(use_enable oidentd)
46 }
47
48 src_compile() {
49 # Parallel make fails.
50 emake -j1 || die "emake failed"
51 }
52
53 src_install() {
54 dobin src/bip src/bipmkpw || die "dobin failed"
55
56 dodoc AUTHORS ChangeLog README NEWS TODO || die "dodoc failed"
57 newdoc samples/bip.conf bip.conf.sample || die "newdoc failed"
58 doman bip.1 bip.conf.5 bipmkpw.1 || die "doman failed"
59
60 if use vim-syntax; then
61 insinto /usr/share/vim/vimfiles/syntax
62 doins samples/bip.vim || die "doins failed"
63 insinto /usr/share/vim/vimfiles/ftdetect
64 doins "${FILESDIR}"/bip.vim || die "doins failed"
65 fi
66 }
67
68 pkg_postinst() {
69 elog 'The default configuration file is "~/.bip/bip.conf"'
70 elog "You can find a sample configuration file in"
71 elog "/usr/share/doc/${PF}/bip.conf.sample"
72 }

  ViewVC Help
Powered by ViewVC 1.1.20