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

inherit eutils

DESCRIPTION="Proxy server for RTP streams"
HOMEPAGE="http://www.rtpproxy.org"
SRC_URI="https://github.com/sippy/${PN}/archive/v${PV}.tar.gz"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
IUSE=""
SLOT="0"
RDEPEND=""
DEPEND="${RDEPEND}"

pkg_setup() {
	enewgroup rtpproxy
	enewuser  rtpproxy -1 -1 /dev/null rtpproxy
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"

	newinitd "${FILESDIR}"/rtpproxy.init rtpproxy
	newconfd "${FILESDIR}"/rtpproxy.confd rtpproxy
}