summaryrefslogtreecommitdiff
blob: 44d601f2831283d784cc5427f74826c228b74e4a (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/tcpsound/tcpsound-0.3.1-r1.ebuild,v 1.2 2012/11/18 06:48:19 pinkbyte Exp $

EAPI="4"

inherit base toolchain-funcs

DESCRIPTION="Play sounds in response to network traffic"
HOMEPAGE="http://www.ioplex.com/~miallen/tcpsound/"
SRC_URI="http://www.ioplex.com/~miallen/tcpsound/dl/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="net-analyzer/tcpdump
	media-libs/libsdl
	dev-libs/libmba"
RDEPEND="${DEPEND}"

DOCS=( README.txt elaborate.conf )
PATCHES=( "${FILESDIR}/${P}-makefile.patch" )

src_prepare() {
	# Fix paths
	sed -i -e "s;/usr/share/sounds:/usr/local/share/sounds;/usr/share/tcpsound;g"\
		"${S}"/src/tcpsound.c "${S}"/elaborate.conf || die 'sed failed'

	base_src_prepare
}

src_compile() {
	emake CC="$(tc-getCC)"
}