diff options
author | Julian Ospald <hasufell@gentoo.org> | 2015-08-18 02:03:28 +0200 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2015-08-20 01:19:17 +0200 |
commit | 075dde0b1b7c2cb3d64f0c07766829b66392031d (patch) | |
tree | 9ab064d04ead435a4d031fcf31959d0b4c14af5d /net-misc/badvpn | |
parent | games-engines/renpy: version bump to 6.99.6 (diff) | |
download | gentoo-075dde0b1b7c2cb3d64f0c07766829b66392031d.tar.gz gentoo-075dde0b1b7c2cb3d64f0c07766829b66392031d.tar.bz2 gentoo-075dde0b1b7c2cb3d64f0c07766829b66392031d.zip |
net-misc/badvpn: version bump to 1.3.0
Further changes:
* rm ambrop as proxy-maintainer as requested
* rm explicit epatch_user, because cmake-utils_src_prepare already does
that
* rm obsolete openssl dep on ncd USE flag
* fix openssl SLOTs to :0
Diffstat (limited to 'net-misc/badvpn')
-rw-r--r-- | net-misc/badvpn/Manifest | 1 | ||||
-rw-r--r-- | net-misc/badvpn/badvpn-1.999.130.ebuild | 85 | ||||
-rw-r--r-- | net-misc/badvpn/metadata.xml | 6 |
3 files changed, 86 insertions, 6 deletions
diff --git a/net-misc/badvpn/Manifest b/net-misc/badvpn/Manifest index c96b0ff33736..fe9006ebe8b9 100644 --- a/net-misc/badvpn/Manifest +++ b/net-misc/badvpn/Manifest @@ -3,3 +3,4 @@ DIST badvpn-1.999.126.tar.bz2 936233 SHA256 188440a6d2fa575162f65baf4b8a2645d6fd DIST badvpn-1.999.127.tar.bz2 962224 SHA256 d20c79d69a7aa9eac1e0bf9a52fb9c9cdca78be123b6d17d59ff277f282e7943 SHA512 7484a817795392a52b44d3bf68765652739029aae8c16965b433bbfb4ca67ea70048f76376ba445196aac07a8f19f97696917ad24fe2bcb34025adda1f18a9fb WHIRLPOOL a3030691d50add2f76854b3a4c3cd1a66c3d3c53b0780c592e0a7337907c7d253a4ea552c57c26e03abc0adf5c4d2f416b18a3e74bc3a6af9b9182927cd721f5 DIST badvpn-1.999.128.tar.bz2 1000636 SHA256 d6b28d5d566470dd1b0584b14b7ffab8159e4f604c1facbf9ef3a3ddbc0c9bfc SHA512 7d59e8365c10e7164c6c74b95d5f212ae0c480870bea31a6fb4ed25883f28bb6365e09a9271a9ecedccccd886e5f5e50a6f6df406ee3c40fad40031bbd3f049b WHIRLPOOL 5541a8d91a48f69fb5646451c276d0dd8844e508f9a33d553f08c5aabbe2c6d5bab8bd6073829641facec861d507cfce7c346497bc3f321033dd46c036f719d9 DIST badvpn-1.999.129.tar.gz 1327123 SHA256 f4fd6fef72203acee10af7d7a6198f6f5fdfc00d9607f0924f6ebae84d570f1d SHA512 7a305198d7b4aaa31e567ff1f1bf23e0a65070d8eae78e7ed6be1a3a3b7bce7fcba32c0eb8ae549ef1851a61675afc1770f52dedf131658036b7b6414fdd4e4e WHIRLPOOL 821a4228ff1f3e2fbc5af7db07536ffeeed7c35ad6a9238948f3c9b350ddf556fbc69e036ce08ed2bc9c7c805b653ff1532c336b37b67acb40ccf41e7bacb6a2 +DIST badvpn-1.999.130.tar.gz 1340372 SHA256 bfd4bbfebd7274bcec792558c9a2fd60e39cd92e04673825ade5d04154766109 SHA512 958d6f3b7a8074fa7ba2f26812c9b2c39272b75d762a12a821ad2d0db9cdc9b9307338d77ca0dcadcf57b81fa4632362e67524de4246d01829951e8924a89770 WHIRLPOOL 77bf158eb4624301a7ecc3f17583faf3525d8ff165478535d6f9d33b42d4e50906ede42a8dea4454bb06b6845a20aa3127649ba0ceaf08e0e04fe9839de7184c diff --git a/net-misc/badvpn/badvpn-1.999.130.ebuild b/net-misc/badvpn/badvpn-1.999.130.ebuild new file mode 100644 index 000000000000..1dede91d5c49 --- /dev/null +++ b/net-misc/badvpn/badvpn-1.999.130.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="https://github.com/ambrop72/badvpn https://code.google.com/p/badvpn/" +SRC_URI="https://github.com/ambrop72/badvpn/archive/${PV}.tar.gz -> ${P}.tar.gz" + +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:0 + ) + server? ( + dev-libs/nspr + dev-libs/nss + dev-libs/openssl:0 + )" +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_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 +} diff --git a/net-misc/badvpn/metadata.xml b/net-misc/badvpn/metadata.xml index 417e9d2734ed..e8f7e856c837 100644 --- a/net-misc/badvpn/metadata.xml +++ b/net-misc/badvpn/metadata.xml @@ -1,16 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <herd>proxy-maintainers</herd> <maintainer> <email>williamh@gentoo.org</email> <description>backup Maintainer, CC him on bugs</description> </maintainer> - <maintainer> - <email>ambrop7@gmail.com</email> - <name>Ambroz Bizjak</name> - <description>Proxy maintainer. CC him on bugs</description> - </maintainer> <upstream> <maintainer status="active"> <email>ambrop7@gmail.com</email> |