summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2019-06-17 14:28:37 +0200
committerAlexis Ballier <aballier@gentoo.org>2019-06-26 16:23:27 +0200
commitdb45e1e5dea565143d38b85571efe1d020080718 (patch)
tree9f8b31cee23df1ee83b3b57bf6f176417d49eb7c /net-vpn/freelan
parentnet-vpn/tor: alpha branch bumped to 0.4.1.3_alpha, drop older (diff)
downloadgentoo-db45e1e5dea565143d38b85571efe1d020080718.tar.gz
gentoo-db45e1e5dea565143d38b85571efe1d020080718.tar.bz2
gentoo-db45e1e5dea565143d38b85571efe1d020080718.zip
net-vpn/freelan: bump to 2.2
Package-Manager: Portage-2.3.67, Repoman-2.3.14 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'net-vpn/freelan')
-rw-r--r--net-vpn/freelan/Manifest1
-rw-r--r--net-vpn/freelan/freelan-2.2.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/net-vpn/freelan/Manifest b/net-vpn/freelan/Manifest
index d901ce7acc22..e8c739dd0f85 100644
--- a/net-vpn/freelan/Manifest
+++ b/net-vpn/freelan/Manifest
@@ -1 +1,2 @@
DIST freelan-2.1.tar.gz 4340411 BLAKE2B 78365f8f4d6334313abd824a68a06470a34e6e62b17fae1f32e3d655c1210892ccbb17ba81b02930e1554d73adbaea171562365dcda091677513d15506f631fe SHA512 f01f0021ab54450be8cf81b3ee58a74ff02e421ccc0e6b7a3733bbd721dedb14a0bf8c6a9e01d20f000e4b232c89fc358834e696211e239c899e4926e6682e1a
+DIST freelan-2.2.tar.gz 3071919 BLAKE2B d63cc4133e6c4a55a966d605150c30566b23c3ca69d8eb2df2cd7dd23e2b6325a3b809c4d3c1c6db649988643ab5dd294f11ef90b5b849ad3f9c4c6f4789083f SHA512 e44ffcec6d85f8d2e46ed29267e0b198589009b0bc131bc6fcaa35f21e47b5db13d6ebeb83d7fee7f5baa9c91bd709d37039fd4e66f8f1720521a82d9241dfc0
diff --git a/net-vpn/freelan/freelan-2.2.ebuild b/net-vpn/freelan/freelan-2.2.ebuild
new file mode 100644
index 000000000000..05ad4196bc2e
--- /dev/null
+++ b/net-vpn/freelan/freelan-2.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2019 Gentoo Authors
+# 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
+}