1 |
commit: b05773a54f5ed6ebf7ff4b449976406fd807ca17 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 5 01:39:05 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 5 01:40:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b05773a5 |
7 |
|
8 |
app-containers/apptainer: add 1.0.0 |
9 |
|
10 |
This is a continuation of sys-cluster/singularity so keep the original |
11 |
keywords. |
12 |
|
13 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
14 |
|
15 |
app-containers/apptainer/Manifest | 1 + |
16 |
app-containers/apptainer/apptainer-1.0.0.ebuild | 63 +++++++++++++++++++++++++ |
17 |
app-containers/apptainer/metadata.xml | 15 ++++++ |
18 |
3 files changed, 79 insertions(+) |
19 |
|
20 |
diff --git a/app-containers/apptainer/Manifest b/app-containers/apptainer/Manifest |
21 |
new file mode 100644 |
22 |
index 000000000000..2a0979900d11 |
23 |
--- /dev/null |
24 |
+++ b/app-containers/apptainer/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST apptainer-1.0.0.tar.gz 11978144 BLAKE2B ca2444fedbd669e6da1a9bbc7c1561dfa8ddebcf82e14ce3233e7e4bbb743eb4b4289aeb1977afe4871ee3abc453ed61821fc25f5b28a0dbfe708253ec031fd9 SHA512 c772b9286d54b21112dba98b7361fac7e1661616643851dc12f58b2565a51d145806f8e5b5dc635b357526e5d270bea096498dcd6c40635530ec3beced6f582f |
27 |
|
28 |
diff --git a/app-containers/apptainer/apptainer-1.0.0.ebuild b/app-containers/apptainer/apptainer-1.0.0.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..9f711a070ada |
31 |
--- /dev/null |
32 |
+++ b/app-containers/apptainer/apptainer-1.0.0.ebuild |
33 |
@@ -0,0 +1,63 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+inherit linux-info toolchain-funcs |
40 |
+ |
41 |
+DESCRIPTION="The container system for secure high-performance computing" |
42 |
+HOMEPAGE="https://apptainer.org/" |
43 |
+SRC_URI="https://github.com/apptainer/${PN}/releases/download/v${PV}/${P}.tar.gz" |
44 |
+ |
45 |
+SLOT="0" |
46 |
+LICENSE="BSD" |
47 |
+KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux" |
48 |
+IUSE="examples +network +suid" |
49 |
+ |
50 |
+# Do not complain about CFLAGS etc. since go projects do not use them. |
51 |
+QA_FLAGS_IGNORED='.*' |
52 |
+ |
53 |
+DEPEND="app-crypt/gpgme |
54 |
+ >=dev-lang/go-1.17.6 |
55 |
+ dev-libs/openssl |
56 |
+ sys-apps/util-linux |
57 |
+ sys-fs/cryptsetup |
58 |
+ sys-fs/squashfs-tools |
59 |
+ sys-libs/libseccomp" |
60 |
+RDEPEND="${DEPEND} |
61 |
+ !sys-cluster/singularity" |
62 |
+BDEPEND="virtual/pkgconfig" |
63 |
+ |
64 |
+CONFIG_CHECK="~SQUASHFS" |
65 |
+ |
66 |
+DOCS=( README.md CONTRIBUTORS.md CONTRIBUTING.md ) |
67 |
+ |
68 |
+src_configure() { |
69 |
+ local myconfargs=( |
70 |
+ -c "$(tc-getBUILD_CC)" \ |
71 |
+ -x "$(tc-getBUILD_CXX)" \ |
72 |
+ -C "$(tc-getCC)" \ |
73 |
+ -X "$(tc-getCXX)" \ |
74 |
+ --prefix="${EPREFIX}"/usr \ |
75 |
+ --sysconfdir="${EPREFIX}"/etc \ |
76 |
+ --runstatedir="${EPREFIX}"/run \ |
77 |
+ --localstatedir="${EPREFIX}"/var \ |
78 |
+ $(usex network "" "--without-network") \ |
79 |
+ $(usex suid "" "--without-suid") |
80 |
+ ) |
81 |
+ ./mconfig -v ${myconfargs[@]} || die "Error invoking mconfig" |
82 |
+} |
83 |
+ |
84 |
+src_compile() { |
85 |
+ emake -C builddir |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ emake DESTDIR="${D}" -C builddir install |
90 |
+ keepdir /var/${PN}/mnt/session |
91 |
+ |
92 |
+ einstalldocs |
93 |
+ if use examples; then |
94 |
+ dodoc -r examples |
95 |
+ fi |
96 |
+} |
97 |
|
98 |
diff --git a/app-containers/apptainer/metadata.xml b/app-containers/apptainer/metadata.xml |
99 |
new file mode 100644 |
100 |
index 000000000000..069f7e2cb731 |
101 |
--- /dev/null |
102 |
+++ b/app-containers/apptainer/metadata.xml |
103 |
@@ -0,0 +1,15 @@ |
104 |
+<?xml version="1.0" encoding="UTF-8"?> |
105 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
106 |
+<pkgmetadata> |
107 |
+ <maintainer type="person"> |
108 |
+ <email>marecki@g.o</email> |
109 |
+ <name>Marek Szuba</name> |
110 |
+ </maintainer> |
111 |
+ <use> |
112 |
+ <flag name="network">Install network plug-ins</flag> |
113 |
+ <flag name="suid">Install SUID helper binary</flag> |
114 |
+ </use> |
115 |
+ <upstream> |
116 |
+ <remote-id type="github">apptainer/apptainer</remote-id> |
117 |
+ </upstream> |
118 |
+</pkgmetadata> |