1 |
commit: 9d0ada5ce329c7d5e801ce3682887acfcd2e509e |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 31 01:16:45 2022 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 31 01:17:04 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d0ada5c |
7 |
|
8 |
net-misc/mptcpd: multipath TCP path management |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
net-misc/mptcpd/Manifest | 1 + |
14 |
net-misc/mptcpd/metadata.xml | 11 +++++++ |
15 |
net-misc/mptcpd/mptcpd-0.9.ebuild | 61 ++++++++++++++++++++++++++++++++++++++ |
16 |
net-misc/mptcpd/mptcpd-9999.ebuild | 61 ++++++++++++++++++++++++++++++++++++++ |
17 |
4 files changed, 134 insertions(+) |
18 |
|
19 |
diff --git a/net-misc/mptcpd/Manifest b/net-misc/mptcpd/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000000..bc4e09614710 |
22 |
--- /dev/null |
23 |
+++ b/net-misc/mptcpd/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST mptcpd-0.9.tar.gz 654063 BLAKE2B fd9e8bf5cec517c934b9d38a736a128d087b54b5e4db90816a8cf8c242195fec8e3c4cd28d2f6e5a93326cac311a6b29048313c722004cea39e19448dc467976 SHA512 4fd292304d6270351b865e86cc401c1f5cc9043606b171e852bd37b2472c5f80061d760be68e5cd965caccb2f25c03d9ceea6232a5a587016c81f85e68ca8882 |
26 |
|
27 |
diff --git a/net-misc/mptcpd/metadata.xml b/net-misc/mptcpd/metadata.xml |
28 |
new file mode 100644 |
29 |
index 000000000000..ed0b180f23fb |
30 |
--- /dev/null |
31 |
+++ b/net-misc/mptcpd/metadata.xml |
32 |
@@ -0,0 +1,11 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="person"> |
37 |
+ <email>candrews@g.o</email> |
38 |
+ <name>Craig Andrews</name> |
39 |
+ </maintainer> |
40 |
+ <upstream> |
41 |
+ <remote-id type="github">intel/mptcpd</remote-id> |
42 |
+ </upstream> |
43 |
+</pkgmetadata> |
44 |
|
45 |
diff --git a/net-misc/mptcpd/mptcpd-0.9.ebuild b/net-misc/mptcpd/mptcpd-0.9.ebuild |
46 |
new file mode 100644 |
47 |
index 000000000000..f337f9489235 |
48 |
--- /dev/null |
49 |
+++ b/net-misc/mptcpd/mptcpd-0.9.ebuild |
50 |
@@ -0,0 +1,61 @@ |
51 |
+# Copyright 1999-2022 Gentoo Authors |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI=8 |
55 |
+ |
56 |
+inherit autotools linux-info systemd |
57 |
+ |
58 |
+DESCRIPTION="Daemon that performs multipath TCP path management related operations." |
59 |
+HOMEPAGE="https://github.com/intel/mptcpd/" |
60 |
+ |
61 |
+LICENSE="GPL-2" |
62 |
+SLOT="0/${PV}" |
63 |
+IUSE="debug doc" |
64 |
+ |
65 |
+RDEPEND=" |
66 |
+ >=dev-libs/ell-0.30.0 |
67 |
+ elibc_musl? ( sys-libs/argp-standalone ) |
68 |
+ " |
69 |
+DEPEND=" |
70 |
+ ${RDEPEND} |
71 |
+ >=sys-kernel/linux-headers-5.6 |
72 |
+ " |
73 |
+BDEPEND=" |
74 |
+ app-doc/doxygen |
75 |
+ app-text/pandoc |
76 |
+ virtual/pkgconfig |
77 |
+ " |
78 |
+ |
79 |
+if [[ ${PV} == 9999* ]]; then |
80 |
+ inherit git-r3 |
81 |
+ EGIT_REPO_URI="https://github.com/intel/mptcpd.git" |
82 |
+else |
83 |
+ SRC_URI="https://github.com/intel/mptcpd/releases/download/v${PV}/${P}.tar.gz" |
84 |
+ KEYWORDS="~amd64" |
85 |
+fi |
86 |
+ |
87 |
+CONFIG_CHECK="MPTCP" |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ default |
91 |
+ [[ ${PV} == 9999* ]] && eautoreconf |
92 |
+} |
93 |
+ |
94 |
+src_configure() { |
95 |
+ local myeconfargs=( |
96 |
+ --with-kernel=upstream |
97 |
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
98 |
+ $(use_enable debug) |
99 |
+ ) |
100 |
+ |
101 |
+ econf "${myeconfargs[@]}" |
102 |
+} |
103 |
+ |
104 |
+src_compile() { |
105 |
+ emake |
106 |
+ use doc && emake doxygen-doc |
107 |
+} |
108 |
+ |
109 |
+src_test() { |
110 |
+ emake check |
111 |
+} |
112 |
|
113 |
diff --git a/net-misc/mptcpd/mptcpd-9999.ebuild b/net-misc/mptcpd/mptcpd-9999.ebuild |
114 |
new file mode 100644 |
115 |
index 000000000000..f337f9489235 |
116 |
--- /dev/null |
117 |
+++ b/net-misc/mptcpd/mptcpd-9999.ebuild |
118 |
@@ -0,0 +1,61 @@ |
119 |
+# Copyright 1999-2022 Gentoo Authors |
120 |
+# Distributed under the terms of the GNU General Public License v2 |
121 |
+ |
122 |
+EAPI=8 |
123 |
+ |
124 |
+inherit autotools linux-info systemd |
125 |
+ |
126 |
+DESCRIPTION="Daemon that performs multipath TCP path management related operations." |
127 |
+HOMEPAGE="https://github.com/intel/mptcpd/" |
128 |
+ |
129 |
+LICENSE="GPL-2" |
130 |
+SLOT="0/${PV}" |
131 |
+IUSE="debug doc" |
132 |
+ |
133 |
+RDEPEND=" |
134 |
+ >=dev-libs/ell-0.30.0 |
135 |
+ elibc_musl? ( sys-libs/argp-standalone ) |
136 |
+ " |
137 |
+DEPEND=" |
138 |
+ ${RDEPEND} |
139 |
+ >=sys-kernel/linux-headers-5.6 |
140 |
+ " |
141 |
+BDEPEND=" |
142 |
+ app-doc/doxygen |
143 |
+ app-text/pandoc |
144 |
+ virtual/pkgconfig |
145 |
+ " |
146 |
+ |
147 |
+if [[ ${PV} == 9999* ]]; then |
148 |
+ inherit git-r3 |
149 |
+ EGIT_REPO_URI="https://github.com/intel/mptcpd.git" |
150 |
+else |
151 |
+ SRC_URI="https://github.com/intel/mptcpd/releases/download/v${PV}/${P}.tar.gz" |
152 |
+ KEYWORDS="~amd64" |
153 |
+fi |
154 |
+ |
155 |
+CONFIG_CHECK="MPTCP" |
156 |
+ |
157 |
+src_prepare() { |
158 |
+ default |
159 |
+ [[ ${PV} == 9999* ]] && eautoreconf |
160 |
+} |
161 |
+ |
162 |
+src_configure() { |
163 |
+ local myeconfargs=( |
164 |
+ --with-kernel=upstream |
165 |
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
166 |
+ $(use_enable debug) |
167 |
+ ) |
168 |
+ |
169 |
+ econf "${myeconfargs[@]}" |
170 |
+} |
171 |
+ |
172 |
+src_compile() { |
173 |
+ emake |
174 |
+ use doc && emake doxygen-doc |
175 |
+} |
176 |
+ |
177 |
+src_test() { |
178 |
+ emake check |
179 |
+} |