diff options
author | Alexis Ballier <aballier@gentoo.org> | 2018-01-13 12:50:52 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2018-01-13 13:16:26 +0100 |
commit | 53ceae977c5d38878a85a82e3a9b470f67efd866 (patch) | |
tree | 02fd09cfe1ba08a124745f7f5f277c6f4ee524d8 /net-vpn | |
parent | media-libs/libv4l: fixup sysmacros includes with recent glibc (diff) | |
download | gentoo-53ceae977c5d38878a85a82e3a9b470f67efd866.tar.gz gentoo-53ceae977c5d38878a85a82e3a9b470f67efd866.tar.bz2 gentoo-53ceae977c5d38878a85a82e3a9b470f67efd866.zip |
net-vpn/freelan: bump to 2.1
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'net-vpn')
-rw-r--r-- | net-vpn/freelan/Manifest | 1 | ||||
-rw-r--r-- | net-vpn/freelan/freelan-2.1.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/net-vpn/freelan/Manifest b/net-vpn/freelan/Manifest index ec48ed3848af..5fa81975f8e8 100644 --- a/net-vpn/freelan/Manifest +++ b/net-vpn/freelan/Manifest @@ -1 +1,2 @@ DIST freelan-2.0.tar.gz 4330112 BLAKE2B 2b900f8b04b4eb19334d4a7bac29b024ff59e37d66df533cbc84d346049994e022ffb71eae8b5c418a727bb01fc4bcdc190ffed7c49023df98aa60a2437cf0af SHA512 72e5381fdad4d413f4f85c4789ad78c38360a300da6f49a3e8119fe2cacb7a7b05ce16ddcbfcdc008e1c2848c535648967e92f082338fdfb2c1b8e43f53291cc +DIST freelan-2.1.tar.gz 4340411 BLAKE2B 78365f8f4d6334313abd824a68a06470a34e6e62b17fae1f32e3d655c1210892ccbb17ba81b02930e1554d73adbaea171562365dcda091677513d15506f631fe SHA512 f01f0021ab54450be8cf81b3ee58a74ff02e421ccc0e6b7a3733bbd721dedb14a0bf8c6a9e01d20f000e4b232c89fc358834e696211e239c899e4926e6682e1a diff --git a/net-vpn/freelan/freelan-2.1.ebuild b/net-vpn/freelan/freelan-2.1.ebuild new file mode 100644 index 000000000000..aa9b0303c450 --- /dev/null +++ b/net-vpn/freelan/freelan-2.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit scons-utils toolchain-funcs + +DESCRIPTION="Peer-to-peer VPN software that abstracts a LAN over the Internet" +HOMEPAGE="http://www.freelan.org/" +SRC_URI="https://github.com/freelan-developers/freelan/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="debug" + +DEPEND=" + dev-libs/boost:=[threads] + dev-libs/openssl:0= + net-misc/curl:= + virtual/libiconv + net-libs/miniupnpc:= +" +RDEPEND="${DEPEND}" + +src_prepare() { + export FREELAN_NO_GIT=1 + export FREELAN_NO_GIT_VERSION=${PV} + + sed -e "s/CXXFLAGS='-O3'/CXXFLAGS=''/" \ + -e "s/CXXFLAGS=\['-Werror'\]/CXXFLAGS=[]/" \ + -e "s/CXXFLAGS=\['-pedantic'\]/CXXFLAGS=[]/" \ + -i SConstruct || die + default +} + +src_compile() { + tc-export CXX CC AR + export LINK="$(tc-getCXX)" + + local MYSCONS=( + "--mode=$(usex debug debug release)" + prefix="${EPREFIX:-/}" + bin_prefix="/usr" + apps + ) + escons "${MYSCONS[@]}" +} + +src_install() { + DESTDIR="${D}" escons --mode=release install prefix="${EPREFIX:-/}" bin_prefix="/usr" + dobin build/release/bin/freelan + dodoc CONTRIBUTING.md README.md + + newinitd "${FILESDIR}/openrc/freelan.initd" freelan +} |