public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/nss-docker-ng/
Date: Sun, 05 Jan 2025 17:46:55 +0000 (UTC)	[thread overview]
Message-ID: <1736099196.74dc9447cdf0757265cca4a19ba5a494ceae36dd.arthurzam@gentoo> (raw)

commit:     74dc9447cdf0757265cca4a19ba5a494ceae36dd
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  5 17:46:19 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Jan  5 17:46:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74dc9447

sys-auth/nss-docker-ng: new package, add 1.0.7

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 sys-auth/nss-docker-ng/Manifest                   |  2 +
 sys-auth/nss-docker-ng/metadata.xml               | 11 +++++
 sys-auth/nss-docker-ng/nss-docker-ng-1.0.7.ebuild | 49 +++++++++++++++++++++++
 3 files changed, 62 insertions(+)

diff --git a/sys-auth/nss-docker-ng/Manifest b/sys-auth/nss-docker-ng/Manifest
new file mode 100644
index 000000000000..f7e7001c6d1a
--- /dev/null
+++ b/sys-auth/nss-docker-ng/Manifest
@@ -0,0 +1,2 @@
+DIST nss-docker-ng-1.0.7-crates.tar.xz 12977172 BLAKE2B 972681146d84873ca03b29aaac8a183d74c158735a54b248de62a26446e11df1d7fa5a008d256562c52e261b50913c03701787f482fe9150603710e6945cb1e9 SHA512 d689983ee307ee224b00ac654da794ee64b4e7206c7e4858adefd856f91a4bd3a120f9fe86d4eae820de8b2763bf4bb3c70a947134910fc345b8b79f6b8b2a77
+DIST nss-docker-ng-1.0.7.tar.gz 15285 BLAKE2B 7fa82aab354d928842bea0ed7362842009ce4aedc20eaf5de5ba0a27ce1dca8ae2659e3ac67f9a271c1f48d93ae157089f5285a4ba4cf09e942beef6b43e28c1 SHA512 928604ac2d318cbee78ed6133f68bb641c0b44aefeeb4f5e0ebfeb584ba3eff5fccdd7a8827f37149a64848acaa18387b09d65af30bf114981775c8011b2a588

diff --git a/sys-auth/nss-docker-ng/metadata.xml b/sys-auth/nss-docker-ng/metadata.xml
new file mode 100644
index 000000000000..dc105c2f2d94
--- /dev/null
+++ b/sys-auth/nss-docker-ng/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>arthurzam@gentoo.org</email>
+		<name>Arthur Zamarin</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">petski/nss-docker-ng</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/sys-auth/nss-docker-ng/nss-docker-ng-1.0.7.ebuild b/sys-auth/nss-docker-ng/nss-docker-ng-1.0.7.ebuild
new file mode 100644
index 000000000000..ff0dbc73974d
--- /dev/null
+++ b/sys-auth/nss-docker-ng/nss-docker-ng-1.0.7.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Autogenerated by pycargoebuild 0.13.3
+
+EAPI=8
+
+CRATES=""
+
+inherit cargo readme.gentoo-r1
+
+DESCRIPTION="NSS plugin for finding Docker containers by their ID or name"
+HOMEPAGE="https://github.com/petski/nss-docker-ng"
+SRC_URI="https://github.com/petski/nss-docker-ng/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+if [[ ${PKGBUMPING} != ${PVR} ]]; then
+	SRC_URI+=" https://dev.gentoo.org/~arthurzam/distfiles/sys-auth/${PN}/${P}-crates.tar.xz"
+fi
+
+LICENSE="MIT"
+# Dependent crate licenses
+LICENSE+=" Apache-2.0 LGPL-3 MIT MPL-2.0 Unicode-DFS-2016"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="dev-util/patchelf"
+
+QA_FLAGS_IGNORED="usr/lib.*/libnss_docker_ng.so*"
+
+DISABLE_AUTOFORMATTING=1
+DOC_CONTENTS='
+You must modify your name service switch lookup file to enable nss-docker-ng.
+To do so, add 'docker_ng' to the hosts line in /etc/nsswitch.conf
+
+An example hosts line looks like this:
+	hosts:      docker_ng resolve [!UNAVAIL=return] files myhostname dns
+'
+
+src_install() {
+	cd "$(cargo_target_dir)" || die
+	patchelf --set-soname libnss_docker_ng.so.2 libnss_docker_ng.so || die
+	mv libnss_docker_ng.so libnss_docker_ng.so.2 || die
+	ln -s libnss_docker_ng.so.2 libnss_docker_ng.so || die
+	dolib.so libnss_docker_ng.so*
+	readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+	readme.gentoo_print_elog
+}


             reply	other threads:[~2025-01-05 17:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-05 17:46 Arthur Zamarin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-17 13:38 [gentoo-commits] repo/gentoo:master commit in: sys-auth/nss-docker-ng/ Arthur Zamarin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1736099196.74dc9447cdf0757265cca4a19ba5a494ceae36dd.arthurzam@gentoo \
    --to=arthurzam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox