blob: 4fba9d6b66e1337d6bc45fcb588c461a78b3f968 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/tmsnc/tmsnc-0.3.2-r1.ebuild,v 1.2 2008/10/04 19:09:38 rbu Exp $
inherit eutils
DESCRIPTION="TMSNC is a textbased MSN client written in C."
HOMEPAGE="http://tmsnc.sourceforge.net/"
SRC_URI="mirror://sourceforge/tmsnc/${P}.tar.gz"
LICENSE="IRPDL"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~x86-fbsd"
IUSE="ssl talkfilters"
DEPEND="virtual/libc
>=sys-libs/ncurses-5.4
ssl? ( >=dev-libs/openssl-0.9.7d )
talkfilters? ( >=app-text/talkfilters-2.3.4 )"
src_unpack() {
unpack ${A}
cd "${S}"
# Stack-based buffer overflow, bug 229157
epatch "${FILESDIR}"/${PN}-UBX-buffer-overflow-CVE-2008-2828.patch
}
src_compile() {
local myconf
use ssl \
|| myconf="${myconf} --without-ssl"
use talkfilters \
|| myconf="${myconf} --without-talkfilters"
econf ${myconf} || die "Configure failed"
emake || die "Make failed"
}
src_install() {
make DESTDIR="${D}" install || die "Make install failed"
dodoc AUTHORS ChangeLog README NEWS
}
pkg_postinst() {
elog "If you want talkfilters support you need to add"
elog "USE=talkfilters to enable support in this package"
}
|