Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/AQtion/
Date: Thu, 29 Aug 2019 04:55:49
Message-Id: 1567054519.e59d3db09e943fd24403d4313d76c8f586a55b07.chutzpah@gentoo
1 commit: e59d3db09e943fd24403d4313d76c8f586a55b07
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 29 04:54:38 2019 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 29 04:55:19 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e59d3db0
7
8 net-misc/AQtion: New package
9
10 Package-Manager: Portage-2.3.73, Repoman-2.3.17
11 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
12
13 net-misc/AQtion/AQtion-2.2.7.ebuild | 49 +++++++++++++++++++++++++++++++++++++
14 net-misc/AQtion/Manifest | 1 +
15 net-misc/AQtion/metadata.xml | 24 ++++++++++++++++++
16 3 files changed, 74 insertions(+)
17
18 diff --git a/net-misc/AQtion/AQtion-2.2.7.ebuild b/net-misc/AQtion/AQtion-2.2.7.ebuild
19 new file mode 100644
20 index 00000000000..157bb239def
21 --- /dev/null
22 +++ b/net-misc/AQtion/AQtion-2.2.7.ebuild
23 @@ -0,0 +1,49 @@
24 +# Copyright 2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +inherit linux-mod
30 +
31 +DESCRIPTION="Aquantia AQC multigigabit NIC linux driver (atlantic) - development preview"
32 +HOMEPAGE="https://github.com/Aquantia/AQtion"
33 +
34 +COMMIT_ID="e024a859ea828ced78db310328db90dbedea837a"
35 +SRC_URI="https://github.com/Aquantia/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
36 +
37 +LICENSE="GPL-2"
38 +SLOT="0"
39 +KEYWORDS="~amd64"
40 +IUSE="lro"
41 +
42 +DEPEND="virtual/linux-sources"
43 +
44 +S="${WORKDIR}/${PN}-${COMMIT_ID}"
45 +
46 +MODULE_NAMES="atlantic(drivers/net/ethernet/aquantia/atlantic:${S})"
47 +BUILD_TARGETS="all"
48 +CONFIG_CHECK="~!AQTION ~PTP_1588_CLOCK ~CRC_ITU_T"
49 +
50 +DOCS=(
51 + README.md
52 + README.txt
53 +)
54 +
55 +pkg_setup() {
56 + use lro && CONFIG_CHECK+=" ~!CONFIG_BRIDGE"
57 + linux-mod_pkg_setup
58 +}
59 +
60 +src_prepare() {
61 + default
62 +
63 + if ! use lro; then
64 + sed -r -i -e 's/(#define AQ_CFG_IS_LRO_DEF[[:space:]]+)[[:digit:]]+([[:alpha:]]*)/\10\2/' \
65 + aq_cfg.h || die
66 + fi
67 +}
68 +
69 +src_install() {
70 + linux-mod_src_install
71 + dodoc "${DOCS[@]}"
72 +}
73
74 diff --git a/net-misc/AQtion/Manifest b/net-misc/AQtion/Manifest
75 new file mode 100644
76 index 00000000000..78d41b07f85
77 --- /dev/null
78 +++ b/net-misc/AQtion/Manifest
79 @@ -0,0 +1 @@
80 +DIST AQtion-2.2.7.tar.gz 122679 BLAKE2B 9d4e2d4d4b26a191551e2cfd30c2a8ce4e4bde01b7ab1e9beb9564abdfd1093b63f94713570fe2c949943037b649c55a9f448b0333fcdcc7227849330d466f92 SHA512 d3ba78acbe5d85d1017d5460fa7d916ffa59eeb137aa1817da215f08b994a10336a9f865c9b84a16b8cef7238d4fd87785bc17d6e3eac577210bf321538cbda3
81
82 diff --git a/net-misc/AQtion/metadata.xml b/net-misc/AQtion/metadata.xml
83 new file mode 100644
84 index 00000000000..62085b44d7b
85 --- /dev/null
86 +++ b/net-misc/AQtion/metadata.xml
87 @@ -0,0 +1,24 @@
88 +<?xml version="1.0" encoding="UTF-8"?>
89 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
90 +<pkgmetadata>
91 + <maintainer type="person">
92 + <email>chutzpah@g.o</email>
93 + <name>Patrick McLean</name>
94 + </maintainer>
95 + <upstream>
96 + <remote-id type="github">Aquantia/AQtion</remote-id>
97 + </upstream>
98 + <use>
99 + <flag name="lro">
100 + Enable/disable Large Receive Offload. This MUST be disabled for
101 + bridging or forwarding.
102 + </flag>
103 + </use>
104 + <longdescription>
105 + Latest development preview of aquantia's atlantic linux kernel
106 + driver for AQtion family of multigigabit adapters.
107 +
108 + These drivers are UNSUPPORTED by the vendor, use at your own
109 + risk.
110 + </longdescription>
111 +</pkgmetadata>