diff options
-rw-r--r-- | net-misc/AQtion/AQtion-2.3.4.ebuild | 53 | ||||
-rw-r--r-- | net-misc/AQtion/Manifest | 1 |
2 files changed, 54 insertions, 0 deletions
diff --git a/net-misc/AQtion/AQtion-2.3.4.ebuild b/net-misc/AQtion/AQtion-2.3.4.ebuild new file mode 100644 index 000000000000..c9ff68cda4f9 --- /dev/null +++ b/net-misc/AQtion/AQtion-2.3.4.ebuild @@ -0,0 +1,53 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-mod + +DESCRIPTION="Aquantia AQC multigigabit NIC linux driver (atlantic) - development preview" +HOMEPAGE="https://github.com/Aquantia/AQtion" + +COMMIT_ID="3b96f1b5f29d844151bc2dc38443de7a9a2f0cf3" +SRC_URI="https://github.com/Aquantia/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="lro" + +DEPEND="virtual/linux-sources" + +S="${WORKDIR}/${PN}-${COMMIT_ID}" + +MODULE_NAMES="atlantic(drivers/net/ethernet/aquantia/atlantic:${S})" +BUILD_TARGETS="all" +CONFIG_CHECK="~!AQTION ~PTP_1588_CLOCK ~CRC_ITU_T" + +DOCS=( + README.md + README.txt +) + +pkg_setup() { + use lro && CONFIG_CHECK+=" ~!CONFIG_BRIDGE" + linux-mod_pkg_setup +} + +src_prepare() { + default + + if ! use lro; then + sed -r -i -e 's/(#define AQ_CFG_IS_LRO_DEF[[:space:]]+)[[:digit:]]+([[:alpha:]]*)/\10\2/' \ + aq_cfg.h || die + fi +} + +src_compile() { + KDIR="${KERNEL_DIR}" linux-mod_src_compile +} + +src_install() { + KDIR="${KERNEL_DIR}" linux-mod_src_install + dodoc "${DOCS[@]}" +} diff --git a/net-misc/AQtion/Manifest b/net-misc/AQtion/Manifest index 4ca2a12c2a89..d2d055ae3128 100644 --- a/net-misc/AQtion/Manifest +++ b/net-misc/AQtion/Manifest @@ -1,2 +1,3 @@ DIST AQtion-2.2.7.tar.gz 122679 BLAKE2B 9d4e2d4d4b26a191551e2cfd30c2a8ce4e4bde01b7ab1e9beb9564abdfd1093b63f94713570fe2c949943037b649c55a9f448b0333fcdcc7227849330d466f92 SHA512 d3ba78acbe5d85d1017d5460fa7d916ffa59eeb137aa1817da215f08b994a10336a9f865c9b84a16b8cef7238d4fd87785bc17d6e3eac577210bf321538cbda3 DIST AQtion-2.3.1.tar.gz 122884 BLAKE2B 46037acfdb3914eb2aac26795d923f22e34bf51ed31c993169803ea572108fe0bf98ef61bbadfa86b7027161aa5105c8b2cb4f19e1b12388ce9296f87f2f7c6d SHA512 929a4f208c041340d684e7732256511d68dac71d5204c34c8f0d6aa5832b0de0667bda7e1fa44a5486c7c34692f73c5de397655b0ba0efb12de8d4d76316e835 +DIST AQtion-2.3.4.tar.gz 123200 BLAKE2B 8427d7051625ad44a4478ad89c7bb7c079063f81a93c1704df25b6a033887eb93820b65d9ec46f5b3bd8a85544b94182f6e5d33e1dc60142c2292bad6fa054ce SHA512 b985214fc2ec31d0a71453a784b1467ac935265d8a6fd1f2f35a1602d288f4394deb178f29b4edbe4d962fadae942cb0c484a35ec3d02d3e6564e3cf5493314f |