commit:     05f1a2d074df8ebd956a11cce984be27d4310077
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 25 17:01:58 2022 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Thu Aug 25 17:02:16 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05f1a2d0

sys-apps/mount-idmapped: new package, add 0.0_pre20220825

Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 sys-apps/mount-idmapped/Manifest                   |  1 +
 sys-apps/mount-idmapped/metadata.xml               |  8 +++++
 .../mount-idmapped-0.0_pre20220825.ebuild          | 37 ++++++++++++++++++++++
 3 files changed, 46 insertions(+)

diff --git a/sys-apps/mount-idmapped/Manifest b/sys-apps/mount-idmapped/Manifest
new file mode 100644
index 000000000000..e548f09d8534
--- /dev/null
+++ b/sys-apps/mount-idmapped/Manifest
@@ -0,0 +1 @@
+DIST mount-idmapped-0.0_pre20220825.gh.tar.gz 15022 BLAKE2B 
f31077a6dc1f1da1797a4b1b233d74a85d268a768f1bd6691a02f8aecaa38ae669eaa214d5fbf116277206b367a0c02a820847c277aee5bbe4a50ec023fa5dea
 SHA512 
9b1ea2927f60f0c807310da9594b1fc489e64c3e322122fbeaa5d18be46a87787cc5458ecc0c90164ff8fdb80464e65d27942a2d9d280b4b55b6a090685ef874

diff --git a/sys-apps/mount-idmapped/metadata.xml 
b/sys-apps/mount-idmapped/metadata.xml
new file mode 100644
index 000000000000..bd6443d4a375
--- /dev/null
+++ b/sys-apps/mount-idmapped/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Patrick McLean</name>
+       </maintainer>
+</pkgmetadata>

diff --git a/sys-apps/mount-idmapped/mount-idmapped-0.0_pre20220825.ebuild 
b/sys-apps/mount-idmapped/mount-idmapped-0.0_pre20220825.ebuild
new file mode 100644
index 000000000000..afb4f187870b
--- /dev/null
+++ b/sys-apps/mount-idmapped/mount-idmapped-0.0_pre20220825.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+COMMIT_HASH="71a9e8bae308aed5aa59e02875122a728cdb5dba"
+
+DESCRIPTION="A tiny tool to allow the creation of idmapped mounts"
+HOMEPAGE="https://github.com/brauner/mount-idmapped";
+SRC_URI="https://github.com/brauner/mount-idmapped/archive/${COMMIT_HASH}.tar.gz
 -> ${P}.gh.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT_HASH}"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+       >=sys-kernel/linux-headers-5.12
+"
+
+src_configure() {
+       tc-export CC
+}
+
+src_compile() {
+       "${CC}" ${CFLAGS} ${LDFLAGS} ${PN}.c -o "${PN}" || die
+}
+
+src_install() {
+       local -a DOCS=(
+               README.md
+       )
+       default
+       dobin ${PN}
+}

Reply via email to