summaryrefslogtreecommitdiff
blob: 9ebcc24830695d3c1bbfcf2aeaaa8942779a6eb5 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit toolchain-funcs

DESCRIPTION="Instant Messenger transparent proxy with logging capabilities."
HOMEPAGE="http://www.imspector.org/"
SRC_URI="http://www.imspector.org/downloads/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=""
RDEPEND=""

src_unpack() {
	unpack ${A}

	use amd64 && sed -i -e 's/^CXXFLAGS =.*/CXXFLAGS += -fPIC/' "${S}"/Makefile
}

src_compile() {
	emake CXX="$(tc-getCXX)" || die 'emake failed'
}

src_install() {
	dosbin imspector || die 'install failed'
	dolib.so libimspector.so
	insinto /usr/lib/imspector
	insopts -m0755
	doins *plugin.so
	insinto /etc/imspector
	insopts -m0644
	doins imspector.conf badwords.txt
}