From bc4355740f22f706f079ad33ab4e91b6c1bd4290 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 21 Nov 2013 21:07:48 +0000 Subject: version bump (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key E73C35B3) --- net-misc/badvpn/ChangeLog | 7 ++- net-misc/badvpn/badvpn-1.999.128.ebuild | 93 +++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 net-misc/badvpn/badvpn-1.999.128.ebuild (limited to 'net-misc/badvpn') diff --git a/net-misc/badvpn/ChangeLog b/net-misc/badvpn/ChangeLog index 3cccbc7aecff..2b56f32b4767 100644 --- a/net-misc/badvpn/ChangeLog +++ b/net-misc/badvpn/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/badvpn # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/badvpn/ChangeLog,v 1.15 2013/06/26 12:00:44 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/badvpn/ChangeLog,v 1.16 2013/11/21 21:07:48 hasufell Exp $ + +*badvpn-1.999.128 (21 Nov 2013) + + 21 Nov 2013; Julian Ospald +badvpn-1.999.128.ebuild: + version bump 26 Jun 2013; Agostino Sarubbo badvpn-1.999.127.ebuild: Stable for arm, wrt bug #474404 diff --git a/net-misc/badvpn/badvpn-1.999.128.ebuild b/net-misc/badvpn/badvpn-1.999.128.ebuild new file mode 100644 index 000000000000..8cb03ec0cde6 --- /dev/null +++ b/net-misc/badvpn/badvpn-1.999.128.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/badvpn/badvpn-1.999.128.ebuild,v 1.1 2013/11/21 21:07:48 hasufell Exp $ + +EAPI=5 +inherit eutils cmake-utils user toolchain-funcs systemd + +MY_P=${PN}-${PV/_rc/rc} +DESCRIPTION="Peer-to-peer VPN, NCD scripting language, tun2socks proxifier" +HOMEPAGE="http://code.google.com/p/badvpn/" +SRC_URI="http://badvpn.googlecode.com/files/${MY_P}.tar.bz2" + +LICENSE="BSD" +KEYWORDS="~amd64 ~arm ~x86" +SLOT="0" +TARGETS="+client +ncd +server +tun2socks +udpgw" +IUSE="${TARGETS} debug" +# tests are only ncd related +RESTRICT="!ncd? ( test )" + +COMMON_DEPEND=" + client? ( + dev-libs/nspr + dev-libs/nss + dev-libs/openssl + ) + server? ( + dev-libs/nspr + dev-libs/nss + dev-libs/openssl + ) + ncd? ( + dev-libs/openssl + )" +RDEPEND="${COMMON_DEPEND} + ncd? ( + sys-apps/iproute2 + >=virtual/udev-171 + )" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig" +# we need at least one target +REQUIRED_USE="|| ( ${TARGETS//+/} )" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + enewuser ${PN} +} + +src_prepare() { + # allow user to easily apply patches + epatch_user +} + +src_configure() { + local mycmakeargs=( + -DBUILD_NOTHING_BY_DEFAULT=1 + $(cmake-utils_use_build client CLIENT) + $(cmake-utils_use_build server SERVER) + $(cmake-utils_use_build ncd NCD) + $(cmake-utils_use_build tun2socks TUN2SOCKS) + $(cmake-utils_use_build udpgw UDPGW) + ) + + cmake-utils_src_configure +} + +src_test() { + # OOHMSA: do this on portage level? + tc-is-cross-compiler && die "these tests do not work when cross compiling!" + + einfo "Running NCD tests" + cd "${S}"/ncd/tests || die + bash ./run_tests "${CMAKE_BUILD_DIR}/ncd/badvpn-ncd" \ + || die "one or more tests failed" +} + +src_install() { + cmake-utils_src_install + dodoc ChangeLog + + if use server; then + newinitd "${FILESDIR}"/${PN}-server.init ${PN}-server + newconfd "${FILESDIR}"/${PN}-server.conf ${PN}-server + fi + + if use ncd; then + newinitd "${FILESDIR}"/${PN}-1.999.127-ncd.init ${PN}-ncd + newconfd "${FILESDIR}"/${PN}-ncd.conf ${PN}-ncd + systemd_dounit "${FILESDIR}"/badvpn-ncd.service + fi +} -- cgit v1.2.3-65-gdbad