public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: app-containers/dnsname-cni-plugin/
@ 2022-05-23  0:43 Randall Vasquez
  0 siblings, 0 replies; 3+ messages in thread
From: Randall Vasquez @ 2022-05-23  0:43 UTC (permalink / raw
  To: gentoo-commits

commit:     c748f23439bd1572005fab064e66c45b84b782c7
Author:     Randall T. Vasquez <ran.dall <AT> icloud <DOT> com>
AuthorDate: Mon May 23 00:41:07 2022 +0000
Commit:     Randall Vasquez <ran.dall <AT> icloud <DOT> com>
CommitDate: Mon May 23 00:41:07 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c748f234

app-containers/dnsname-cni-plugin: move dnsname-cni-plugin to app-container

The commits moves dnsname-cni-plugin to app-container from net-misc.

Signed-off-by: Randall T. Vasquez <ran.dall <AT> icloud.com>

 app-containers/dnsname-cni-plugin/Manifest         |  4 ++
 .../dnsname-cni-plugin-1.3.0.ebuild                | 72 ++++++++++++++++++++++
 .../dnsname-cni-plugin-1.3.1.ebuild                | 70 +++++++++++++++++++++
 .../dnsname-cni-plugin-9999.ebuild                 | 69 +++++++++++++++++++++
 app-containers/dnsname-cni-plugin/metadata.xml     | 14 +++++
 5 files changed, 229 insertions(+)

diff --git a/app-containers/dnsname-cni-plugin/Manifest b/app-containers/dnsname-cni-plugin/Manifest
new file mode 100644
index 000000000..b3ea30966
--- /dev/null
+++ b/app-containers/dnsname-cni-plugin/Manifest
@@ -0,0 +1,4 @@
+DIST dnsname-cni-plugin-1.3.0-deps.tar.xz 21020340 BLAKE2B 59f1bf713d464193dea3ff0e02cf6b82d1d9edf882186fbdf53959c3f70b2fb5a6a73bfbdf4c910613f6253c9f7f1c1c19e87f8586ee59a3e501c96931171936 SHA512 53322b89eccd639e1bde14496542f335ff10bbea711ea395ab36807d2d204f811cb051a07120f54679e3d61da2e3271983a36724fa91db5d5e52c7d3cc736b59
+DIST dnsname-cni-plugin-1.3.0.tar.gz 2526598 BLAKE2B 0a17998c61c72e858d8f7a13d31c54e2b6e3495c61a2cbaaeadbade863361a468aaaf1c291fd073e77df3ff83f231d168208551143009400ad60a25f921f9bf2 SHA512 df48c4715582f098c41d45533163632ac1953621ce91fc78e88cc84e61d8a0a537e6da5aabab2be18cbddccd8e4c867670ae1fbc5ff7b6473bf7f4b464cb6ee2
+DIST dnsname-cni-plugin-1.3.1-deps.tar.xz 21051388 BLAKE2B 39393408677061355f04995d12df11bb53260f5cee5309f44d99719fa61d1ab29032a7cee931e4277098b5bb98d051587ac585c69b4a19633a79085106744d25 SHA512 4ea0249b7ba747cbe10162725abc56282ee3453213d9f590a53d2d8475c071c0ffabfa50b919bb119fff37a85d3d40d544e94d008fe9969100cac9c3d60039fe
+DIST dnsname-cni-plugin-1.3.1.tar.gz 2526593 BLAKE2B 1fd7ced187ee25a6b31746ed7c73eba412f74c809adcf531aa9a03ed53e5c1b14f065dcc81eac28eff56d1c213583e931c861d31743abe164290867e84b1b95a SHA512 ebebbe62394b981e86cd21fa8b92639a6d67e007a18c576ffdbac8067084a4cffdc9d077213bf7c9ee1e2731c7d69e4d4c02465f2340556c8723b6e302238aad

diff --git a/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.0.ebuild b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.0.ebuild
new file mode 100644
index 000000000..01ce66053
--- /dev/null
+++ b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.0.ebuild
@@ -0,0 +1,72 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+EGIT_COMMIT="dc59f285546a0b0d8b8f20033e1637ea82587840"
+MY_PN=${PN//-cni-plugin}
+MY_P=${MY_PN}-${PV}
+
+inherit flag-o-matic go-module
+
+DESCRIPTION="name resolution for containers"
+HOMEPAGE="https://github.com/containers/dnsname"
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/containers/dnsname.git"
+	RESTRICT="fetch mirror test"
+else
+	SRC_URI="https://github.com/containers/dnsname/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+	SRC_URI+=" https://github.com/ran-dall/portage-deps/raw/master/${P}-deps.tar.xz"
+	KEYWORDS="~amd64 ~arm64"
+	RESTRICT="mirror test"
+	S="${WORKDIR}"/${MY_P}
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+DEPEND="
+	app-containers/podman
+	net-misc/cni-plugins
+	net-dns/dnsmasq
+"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+	default
+	if [[ ${PV} == *9999 ]]; then
+		git-r3_fetch
+		git-r3_checkout
+		pushd ${P}/plugins/meta/dnsname || die "location change for module building failed"
+		ego get
+		popd || die "location reset from module building failed"
+	fi
+}
+
+src_prepare() {
+	default
+	rm LICENSE || die "removal of unneeded LICENSE failed"
+	rm CODE-OF-CONDUCT.md || die "removal of unneeded CODE-OF-CONDUCT.md failed"
+	rm RELEASE_NOTES.md || die "removal of unneeded RELEASE_NOTES.md failed"
+	rm OWNERS || die "a removal of an unneeded documentation file failed"
+}
+
+src_compile() {
+	local git_commit=${EGIT_COMMIT}
+	# Disable LDFLAGS to avoid complation error; fixed in v1.3.1.
+	filter-ldflags ${LDFLAGS}
+	export -n GOCACHE GOPATH XDG_CACHE_HOME
+	GOBIN="${S}/bin" \
+	emake all \
+		GIT_BRANCH=master \
+		GIT_BRANCH_CLEAN=master \
+		COMMIT_NO="${git_commit}" \
+		GIT_COMMIT="${git_commit}"
+}
+
+src_install() {
+	exeinto /opt/cni/bin
+	doexe bin/*
+	dodoc README.md README_PODMAN.md SECURITY.md
+}

diff --git a/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.1.ebuild b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.1.ebuild
new file mode 100644
index 000000000..393eba1ff
--- /dev/null
+++ b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+EGIT_COMMIT="18822f9a4fb35d1349eb256f4cd2bfd372474d84"
+MY_PN=${PN//-cni-plugin}
+MY_P=${MY_PN}-${PV}
+
+inherit go-module
+
+DESCRIPTION="name resolution for containers"
+HOMEPAGE="https://github.com/containers/dnsname"
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/containers/dnsname.git"
+	RESTRICT="fetch mirror test"
+else
+	SRC_URI="https://github.com/containers/dnsname/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+	SRC_URI+=" https://github.com/ran-dall/portage-deps/raw/master/${P}-deps.tar.xz"
+	KEYWORDS="~amd64 ~arm64"
+	RESTRICT="mirror test"
+	S="${WORKDIR}"/${MY_P}
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+DEPEND="
+	app-containers/podman
+	net-misc/cni-plugins
+	net-dns/dnsmasq
+"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+	default
+	if [[ ${PV} == *9999 ]]; then
+		git-r3_fetch
+		git-r3_checkout
+		pushd ${MY_P}/plugins/meta/dnsname || die "location change for module building failed"
+		ego get
+		popd || die "location reset from module building failed"
+	fi
+}
+
+src_prepare() {
+	default
+	rm LICENSE || die "removal of unneeded LICENSE failed"
+	rm CODE-OF-CONDUCT.md || die "removal of unneeded CODE-OF-CONDUCT.md failed"
+	rm RELEASE_NOTES.md || die "removal of unneeded RELEASE_NOTES.md failed"
+	rm OWNERS || die "a removal of an unneeded documentation file failed"
+}
+
+src_compile() {
+	local git_commit=${EGIT_COMMIT}
+	export -n GOCACHE GOPATH XDG_CACHE_HOME
+	GOBIN="${S}/bin" \
+	emake all \
+		GIT_BRANCH=master \
+		GIT_BRANCH_CLEAN=master \
+		COMMIT_NO="${git_commit}" \
+		GIT_COMMIT="${git_commit}"
+}
+
+src_install() {
+	exeinto /opt/cni/bin
+	doexe bin/*
+	dodoc README.md README_PODMAN.md SECURITY.md
+}

diff --git a/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-9999.ebuild b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-9999.ebuild
new file mode 100644
index 000000000..ef5548ff1
--- /dev/null
+++ b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-9999.ebuild
@@ -0,0 +1,69 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+MY_PN=${PN//-cni-plugin}
+MY_P=${MY_PN}-${PV}
+
+inherit go-module
+
+DESCRIPTION="name resolution for containers"
+HOMEPAGE="https://github.com/containers/dnsname"
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/containers/dnsname.git"
+	RESTRICT="fetch mirror test"
+else
+	SRC_URI="https://github.com/containers/dnsname/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+	SRC_URI+=" ${P}-deps.tar.xz"
+	KEYWORDS="~amd64 ~arm64"
+	RESTRICT="mirror test"
+	S="${WORKDIR}"/${MY_P}
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+DEPEND="
+	app-containers/podman
+	net-misc/cni-plugins
+	net-dns/dnsmasq
+"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+	default
+	if [[ ${PV} == *9999 ]]; then
+		git-r3_fetch
+		git-r3_checkout
+		pushd ${P}/plugins/meta/dnsname || die "location change for module building failed"
+		ego get
+		popd || die "location reset from module building failed"
+	fi
+}
+
+src_prepare() {
+	default
+	rm LICENSE || die "removal of unneeded LICENSE failed"
+	rm CODE-OF-CONDUCT.md || die "removal of unneeded CODE-OF-CONDUCT.md failed"
+	rm RELEASE_NOTES.md || die "removal of unneeded RELEASE_NOTES.md failed"
+	rm OWNERS || die "a removal of an unneeded documentation file failed"
+}
+
+src_compile() {
+	local git_commit=${EGIT_COMMIT}
+	export -n GOCACHE GOPATH XDG_CACHE_HOME
+	GOBIN="${S}/bin" \
+	emake all \
+		GIT_BRANCH=master \
+		GIT_BRANCH_CLEAN=master \
+		COMMIT_NO="${git_commit}" \
+		GIT_COMMIT="${git_commit}"
+}
+
+src_install() {
+	exeinto /opt/cni/bin
+	doexe bin/*
+	dodoc README.md README_PODMAN.md SECURITY.md
+}

diff --git a/app-containers/dnsname-cni-plugin/metadata.xml b/app-containers/dnsname-cni-plugin/metadata.xml
new file mode 100644
index 000000000..5e4235484
--- /dev/null
+++ b/app-containers/dnsname-cni-plugin/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>ran.dall@icloud.com</email>
+    <name>Randall Vasquez</name>
+  </maintainer>
+  <longdescription lang="en">
+    This plugin sets up the use of dnsmasq on a given CNI network so that Pods can resolve each other by name. When configured, the pod and its IP address are added to a network specific hosts file that dnsmasq reads in.
+  </longdescription>
+  <upstream>
+    <remote-id type="github">containers/dnsname</remote-id>
+  </upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: app-containers/dnsname-cni-plugin/
@ 2022-05-28 21:16 Randall Vasquez
  0 siblings, 0 replies; 3+ messages in thread
From: Randall Vasquez @ 2022-05-28 21:16 UTC (permalink / raw
  To: gentoo-commits

commit:     92162b54a8aea7fd3a58ae642c8a35a4ba38b200
Author:     Randall T. Vasquez <ran.dall <AT> icloud <DOT> com>
AuthorDate: Sat May 28 21:15:13 2022 +0000
Commit:     Randall Vasquez <ran.dall <AT> icloud <DOT> com>
CommitDate: Sat May 28 21:15:13 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=92162b54

app-containers/dnsname-cni-plugin: tidy ebuilds

This commit tidys the dnsname-cni-plugin ebuilds further.

Signed-off-by: Randall T. Vasquez <ran.dall <AT> icloud.com>

 app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.0.ebuild | 3 +--
 app-containers/dnsname-cni-plugin/dnsname-cni-plugin-9999.ebuild  | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.0.ebuild b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.0.ebuild
index 01ce66053..ba02f5cfc 100644
--- a/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.0.ebuild
+++ b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.0.ebuild
@@ -36,8 +36,7 @@ RDEPEND="${DEPEND}"
 src_unpack() {
 	default
 	if [[ ${PV} == *9999 ]]; then
-		git-r3_fetch
-		git-r3_checkout
+		git-r3_src_unpack
 		pushd ${P}/plugins/meta/dnsname || die "location change for module building failed"
 		ego get
 		popd || die "location reset from module building failed"

diff --git a/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-9999.ebuild b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-9999.ebuild
index ef5548ff1..b3a5dfffd 100644
--- a/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-9999.ebuild
+++ b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-9999.ebuild
@@ -35,8 +35,7 @@ RDEPEND="${DEPEND}"
 src_unpack() {
 	default
 	if [[ ${PV} == *9999 ]]; then
-		git-r3_fetch
-		git-r3_checkout
+		git-r3_src_unpack
 		pushd ${P}/plugins/meta/dnsname || die "location change for module building failed"
 		ego get
 		popd || die "location reset from module building failed"


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: app-containers/dnsname-cni-plugin/
@ 2022-07-18 19:40 Randall Vasquez
  0 siblings, 0 replies; 3+ messages in thread
From: Randall Vasquez @ 2022-07-18 19:40 UTC (permalink / raw
  To: gentoo-commits

commit:     c1caec44d904f3bba5d8f93d02733635ffb401fb
Author:     Randall T. Vasquez <ran.dall <AT> icloud <DOT> com>
AuthorDate: Mon Jul 18 19:38:19 2022 +0000
Commit:     Randall Vasquez <ran.dall <AT> icloud <DOT> com>
CommitDate: Mon Jul 18 19:39:04 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c1caec44

app-containers/dnsname-cni-plugin: fix net-misc/cni-plugins to app-containers/cni-plugins

Signed-off-by: Randall T. Vasquez <ran.dall <AT> icloud.com>

 app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.0.ebuild | 2 +-
 app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.1.ebuild | 2 +-
 app-containers/dnsname-cni-plugin/dnsname-cni-plugin-9999.ebuild  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.0.ebuild b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.0.ebuild
index ba02f5cfc..5fa23b379 100644
--- a/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.0.ebuild
+++ b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.0.ebuild
@@ -28,7 +28,7 @@ SLOT="0"
 
 DEPEND="
 	app-containers/podman
-	net-misc/cni-plugins
+	app-containers/cni-plugins
 	net-dns/dnsmasq
 "
 RDEPEND="${DEPEND}"

diff --git a/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.1.ebuild b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.1.ebuild
index 393eba1ff..003c8c05f 100644
--- a/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.1.ebuild
+++ b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-1.3.1.ebuild
@@ -28,7 +28,7 @@ SLOT="0"
 
 DEPEND="
 	app-containers/podman
-	net-misc/cni-plugins
+	app-containers/cni-plugins
 	net-dns/dnsmasq
 "
 RDEPEND="${DEPEND}"

diff --git a/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-9999.ebuild b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-9999.ebuild
index b3a5dfffd..977f58374 100644
--- a/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-9999.ebuild
+++ b/app-containers/dnsname-cni-plugin/dnsname-cni-plugin-9999.ebuild
@@ -27,7 +27,7 @@ SLOT="0"
 
 DEPEND="
 	app-containers/podman
-	net-misc/cni-plugins
+	app-containers/cni-plugins
 	net-dns/dnsmasq
 "
 RDEPEND="${DEPEND}"


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-18 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-28 21:16 [gentoo-commits] repo/proj/guru:dev commit in: app-containers/dnsname-cni-plugin/ Randall Vasquez
  -- strict thread matches above, loose matches on Subject: below --
2022-07-18 19:40 Randall Vasquez
2022-05-23  0:43 Randall Vasquez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox