summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahil Bhimjiani <rahil3108@gmail.com>2023-09-28 11:25:41 +0530
committerZac Medico <zmedico@gentoo.org>2023-09-28 19:54:31 -0700
commita1bea972ea0dcad5a7ea19a86074bfae519e12a8 (patch)
tree3d97423deafc39e853820ea6b1e5389d36f0043a /app-containers/netavark
parentapp-containers/aardvark-dns: Fix Manifest (diff)
downloadgentoo-a1bea972ea0dcad5a7ea19a86074bfae519e12a8.tar.gz
gentoo-a1bea972ea0dcad5a7ea19a86074bfae519e12a8.tar.bz2
gentoo-a1bea972ea0dcad5a7ea19a86074bfae519e12a8.zip
app-containers/netavark: add 1.8.0, live, proxy-maint
rewrote to be in more align with upsteam's instructions Signed-off-by: Rahil Bhimjiani <rahil3108@gmail.com> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-containers/netavark')
-rw-r--r--app-containers/netavark/Manifest2
-rw-r--r--app-containers/netavark/metadata.xml10
-rw-r--r--app-containers/netavark/netavark-1.8.0.ebuild51
-rw-r--r--app-containers/netavark/netavark-9999.ebuild51
4 files changed, 114 insertions, 0 deletions
diff --git a/app-containers/netavark/Manifest b/app-containers/netavark/Manifest
index 3de8fe7fbc7d..63f51788c95c 100644
--- a/app-containers/netavark/Manifest
+++ b/app-containers/netavark/Manifest
@@ -158,6 +158,8 @@ DIST multimap-0.8.3.crate 13518 BLAKE2B 7e00324be2944f3ca38bf02bfe37f47313aa501f
DIST netavark-1.4.0.crate 81129 BLAKE2B 489d4c5a3af254869dbd777a19342c9e77166ab80e22f882d89a5c3d023db4fca996a1e24ebbd215db6479cb3680c05091e9d9252dd9e8852d16e1e3b8eed9d1 SHA512 1e5a609d1bcc8d7b7c7ebc2bbb3cb3c7ef54ad6dce4927b11576581de65dbfb00bc3a8cce78769554a1c517cd37a9a6dec1b4f4fbcf5d8e03f6d64ca65f43a44
DIST netavark-1.6.0.crate 124778 BLAKE2B faa702392cf6952ed410a67f0a2e4a92cf2da002c53ddd3d7533e5236940a5c35a72e6bcb167c5e3c8ab2eb823bdd8971da131cb41cf3e704d909a0ec5f405c9 SHA512 c2764b9bdd71e6eba864b52044ddce3b5f67a945ee58e237d9c951189ace14200885a8f8678377b416b9254fa8f5b74b67f80e338646918cf9b0aeeebe9c95da
DIST netlink-packet-core-0.4.2.crate 13702 BLAKE2B 3f1119ba40688111bd6d65622d0bdb1cfa0400649cb448e24bb5947151bcb7c42e683209b1f1b12753efd087c1a67b26428fc8494d07c027797b16e9bfeb02ea SHA512 b6023e4b9b703af6834406327978507eeccad4d80e9b584ffbe108bec06cc730607ce4fc65ff48912b5a350a761da8077da46c64f826563b414d0caf47286f61
+DIST netavark-1.8.0.crate 132651 BLAKE2B 3659cc97d784c7575d9ce4602461d151ba53ebf998ee9f819a05ab796d24d582f20700fd4f1810219245af118cc885c74c176777b147b1d175b68e1465063f48 SHA512 0094e2831ec3a0d92d18e7efb0ba6972ab4b5ddafaf0465f990e9ac07e8e8952233d8ddd2cad6c1fd450144714fc5e92c6aa079d415764ab1d1e3a6db5b789b9
+DIST netavark-v1.8.0-vendor.tar.gz 44454969 BLAKE2B ad13f7b80d9f1d7ae82cbf39e45244e7609f7881474637eb64ad765e00c01566b72cb4e88d0c58c60e638ce7a400b59bdbb1aba5ff68e1ebf53103a1945e203b SHA512 2d35baceda02c44a2d5393caab5391f4dbf27c92c18ca464fe06922656ed9ceefe32475b49948e76a20a77463ae7bd441a3962f062dc91aedd67ef1334fc8551
DIST netlink-packet-core-0.5.0.crate 14989 BLAKE2B 3a432de3545ad7f203d6e27e4587171bfec781dd86695acf124b0672e29bd1f6966e3ab66fad2e56a507d8377db6df2b8de8f3a13612dab39a73d8ad9459690e SHA512 e4ccc75964be99251d1bce7267711f57167b39219ee6b9bbd4c184def0a323c136b82ca93bce5a0cdcc7e842d23435a042e23556e69e91452d74d3292f65deda
DIST netlink-packet-generic-0.3.2.crate 13590 BLAKE2B 9c7971c5711e390533933b08022c4253e98851097d7c702a486f96b58b55de1dedff17e12bac1d2cd4b8bce9d0bb41b7dd812482ba064f057bde212d57b7c142 SHA512 648ade4cf4423b76fd849fff9f9cacb8b87c4930e0963b516f03622f830b55a8e9bfe3e9d656f63432a22ddaf6f3a5d884820d16f9b0e4c654e52cfd81ac0d59
DIST netlink-packet-route-0.13.0.crate 103036 BLAKE2B a24beb72e9004ce6925ada2f2287d65104d78806dec4c8e904d996e4d025db27006a8c213798cb30fb4232147816233dfa6d57280fbb886a077686268ed7a2d1 SHA512 b61f0af8e24191509af9ddb43539b71fa3585694d370c8796ec532b5d379fc16bb2da7c2a0b7343ca2b9188193891261fec82c3054d406102db66f7ee946f6bb
diff --git a/app-containers/netavark/metadata.xml b/app-containers/netavark/metadata.xml
index eea13aef673b..8773ef136e32 100644
--- a/app-containers/netavark/metadata.xml
+++ b/app-containers/netavark/metadata.xml
@@ -5,6 +5,14 @@
<email>zmedico@gentoo.org</email>
<name>Zac Medico</name>
</maintainer>
+ <maintainer type="person" proxied="yes">
+ <email>rahil3108@gmail.com</email>
+ <name>Rahil Bhimjiani</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
<longdescription lang="en">
Netavark is a rust based network stack for containers. It is
being designed to work with Podman but is also applicable for
@@ -12,5 +20,7 @@
</longdescription>
<upstream>
<remote-id type="github">containers/netavark</remote-id>
+ <bugs-to>https://github.com/containers/netavark/issues</bugs-to>
+ <doc>https://github.com/containers/netavark/blob/main/README.md</doc>
</upstream>
</pkgmetadata>
diff --git a/app-containers/netavark/netavark-1.8.0.ebuild b/app-containers/netavark/netavark-1.8.0.ebuild
new file mode 100644
index 000000000000..5f386537d124
--- /dev/null
+++ b/app-containers/netavark/netavark-1.8.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+[[ ${PV} == *9999* ]] || CRATES="${PN}@${PV}"
+
+inherit cargo systemd
+
+DESCRIPTION="A container network stack"
+HOMEPAGE="https://github.com/containers/netavark"
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/containers/netavark.git"
+else
+ SRC_URI="${CARGO_CRATE_URIS} https://github.com/containers/netavark/releases/download/v${PV}/${PN}-v${PV}-vendor.tar.gz"
+ KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
+fi
+LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 MIT Unicode-DFS-2016 Unlicense ZLIB"
+SLOT="0"
+BDEPEND="dev-go/go-md2man
+ dev-libs/protobuf"
+
+QA_PRESTRIPPED="
+ usr/libexec/podman/${PN}"
+
+ECARGO_VENDOR="${WORKDIR}/vendor"
+
+src_unpack() {
+ if [[ ${PV} == *9999* ]]; then
+ git-r3_src_unpack
+ cargo_live_src_unpack
+ else
+ cargo_src_unpack
+ fi
+}
+
+src_prepare() {
+ default
+ sed -i -e "s|m0755 bin|m0755 target/$(usex debug debug release)|g;" Makefile || die
+}
+
+src_compile() {
+ cargo_src_compile
+ export PREFIX="${EPREFIX}"/usr SYSTEMDDIR="$(systemd_get_systemunitdir)"
+ emake docs
+}
+
+src_install() {
+ default
+}
diff --git a/app-containers/netavark/netavark-9999.ebuild b/app-containers/netavark/netavark-9999.ebuild
new file mode 100644
index 000000000000..5f386537d124
--- /dev/null
+++ b/app-containers/netavark/netavark-9999.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+[[ ${PV} == *9999* ]] || CRATES="${PN}@${PV}"
+
+inherit cargo systemd
+
+DESCRIPTION="A container network stack"
+HOMEPAGE="https://github.com/containers/netavark"
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/containers/netavark.git"
+else
+ SRC_URI="${CARGO_CRATE_URIS} https://github.com/containers/netavark/releases/download/v${PV}/${PN}-v${PV}-vendor.tar.gz"
+ KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
+fi
+LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 MIT Unicode-DFS-2016 Unlicense ZLIB"
+SLOT="0"
+BDEPEND="dev-go/go-md2man
+ dev-libs/protobuf"
+
+QA_PRESTRIPPED="
+ usr/libexec/podman/${PN}"
+
+ECARGO_VENDOR="${WORKDIR}/vendor"
+
+src_unpack() {
+ if [[ ${PV} == *9999* ]]; then
+ git-r3_src_unpack
+ cargo_live_src_unpack
+ else
+ cargo_src_unpack
+ fi
+}
+
+src_prepare() {
+ default
+ sed -i -e "s|m0755 bin|m0755 target/$(usex debug debug release)|g;" Makefile || die
+}
+
+src_compile() {
+ cargo_src_compile
+ export PREFIX="${EPREFIX}"/usr SYSTEMDDIR="$(systemd_get_systemunitdir)"
+ emake docs
+}
+
+src_install() {
+ default
+}