Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 671298 | Differences between
and this patch

Collapse All | Expand All

(-)a/net-misc/zerotier/files/zerotier-1.2.12-fix-iproute2-path.patch (+13 lines)
Line 0 Link Here
1
diff --git a/osdep/ManagedRoute.cpp b/osdep/ManagedRoute.cpp
2
index 324fada0..77697784 100644
3
--- a/osdep/ManagedRoute.cpp
4
+++ b/osdep/ManagedRoute.cpp
5
@@ -62,7 +62,7 @@
6
 #include "ManagedRoute.hpp"
7
 
8
 #define ZT_BSD_ROUTE_CMD "/sbin/route"
9
-#define ZT_LINUX_IP_COMMAND "/sbin/ip"
10
+#define ZT_LINUX_IP_COMMAND "/bin/ip"
11
 #define ZT_LINUX_IP_COMMAND_2 "/usr/sbin/ip"
12
 
13
 namespace ZeroTier {
(-)a/net-misc/zerotier/zerotier-1.2.12-r1.ebuild (-1 / +46 lines)
Line 0 Link Here
0
- 
1
# Copyright 1999-2018 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=6
5
6
inherit flag-o-matic systemd toolchain-funcs
7
8
HOMEPAGE="https://www.zerotier.com/"
9
DESCRIPTION="A software-based managed Ethernet switch for planet Earth"
10
SRC_URI="https://github.com/zerotier/ZeroTierOne/archive/${PV}.tar.gz -> ${P}.tar.gz"
11
12
LICENSE="GPL-3"
13
SLOT="0"
14
KEYWORDS="~amd64 ~x86"
15
16
S="${WORKDIR}/ZeroTierOne-${PV}"
17
18
RDEPEND="
19
	dev-libs/json-glib:=
20
	net-libs/http-parser:=
21
	net-libs/libnatpmp:=
22
	net-libs/miniupnpc:="
23
24
DEPEND="${RDEPEND}"
25
26
DOCS=( README.md AUTHORS.md )
27
28
PATCHES=( "${FILESDIR}/${P}-fix-iproute2-path.patch" )
29
30
src_compile() {
31
	append-ldflags -Wl,-z,noexecstack
32
	emake CXX="$(tc-getCXX)" STRIP=: one
33
}
34
35
src_test() {
36
	emake selftest
37
	./zerotier-selftest || die
38
}
39
40
src_install() {
41
	default
42
43
	newinitd "${FILESDIR}/${PN}".init "${PN}"
44
	systemd_dounit "${FILESDIR}/${PN}".service
45
	doman doc/zerotier-{cli.1,idtool.1,one.8}
46
}

Return to bug 671298