2016-08-04 17:55:55 +03:00
|
|
|
# Copyright 1999-2016 Gentoo Foundation
|
2014-02-19 15:36:08 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2016-08-04 17:55:55 +03:00
|
|
|
EAPI=6
|
2014-02-19 15:36:08 +04:00
|
|
|
|
2014-08-12 12:57:09 +04:00
|
|
|
DESCRIPTION="STUNTMAN is an open source implementation of the STUN protocol"
|
2014-02-19 15:36:08 +04:00
|
|
|
HOMEPAGE="http://www.stunprotocol.org"
|
|
|
|
SRC_URI="http://www.stunprotocol.org/stunserver-${PV}.tgz"
|
|
|
|
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND="dev-libs/boost
|
2016-08-04 17:55:55 +03:00
|
|
|
dev-libs/openssl:0"
|
2014-02-19 15:36:08 +04:00
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
S="${WORKDIR}/stunserver"
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake T=""
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dobin stunclient
|
|
|
|
dosbin stunserver
|
|
|
|
dodoc HISTORY README
|
|
|
|
newinitd "${FILESDIR}/${PN}.initd" ${PN}
|
|
|
|
newconfd "${FILESDIR}/${PN}.confd" ${PN}
|
|
|
|
}
|
|
|
|
|
|
|
|
src_test() {
|
|
|
|
./stuntestcode
|
|
|
|
}
|