blob: 117ea109b98231c56f475fc16c67998538ad257a (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
DESCRIPTION="RTP sound inserter from the Hacking VoIP Exposed authors"
HOMEPAGE="http://www.hackingvoip.com/sec_tools.html"
SRC_URI="http://www.hackingvoip.com/tools/hack_library.tar.gz
http://www.hackingvoip.com/tools/g711conversions.tar.gz
http://www.hackingvoip.com/tools/${PN}_v${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/libc
net-libs/libnet
net-libs/libpcap"
RDEPEND="${DEPEND}"
src_compile() {
# Make the library dependency
cd ${WORKDIR}/hack_library
emake || die "emake failed"
# Make the g711 library dependency
cd ${WORKDIR}/g711conversions
emake || die "emake failed"
# Make the package
cd ${WORKDIR}/${PN}_v${PV}
emake || die "emake failed"
}
src_install() {
cd ${WORKDIR}/${PN}_v${PV}
dobin rtpinsertsound
dodoc {LICENSE_DOCUMENTATION,LICENSE_SOFTWARE,Readme.txt}
dodir /usr/share/${PN}
insinto /usr/share/${PN}
doins helzart.wav stapler.wav g711RTPCaptureAllClearToBlow
}
|