summaryrefslogtreecommitdiff
blob: 21a5ea5bf2d686ef7abf63e17595be7e3f97e766 (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-2007 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.ebuild,v 1.2 2007/04/15 20:29:09 ticho Exp $

inherit eutils

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="x86"

IUSE=""
DEPEND="net-analyzer/tcpdump
	media-libs/libsdl
	dev-libs/libmba"

src_compile() {
	sed -i -e "s;/usr/share/sounds:/usr/local/share/sounds;/usr/share/tcpsound;g"\
		${S}/src/tcpsound.c ${S}/elaborate.conf

	sed -i -e "s;/share/sounds;/share/tcpsound;g"\
		${S}/Makefile
	emake || die "emake failed"
}

src_install() {
	# Makefile expects /usr/bin to be there...
	dodir /usr/bin
	# einstall is required here
	einstall || die

	dodoc README.txt elaborate.conf
}