From 0ebcd2cbf178600b5eb36b2f24cdbb3d2f4a9000 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 13 Jun 2024 00:08:30 +0100 Subject: gentoo auto-resync : 13:06:2024 - 00:08:29 --- app-containers/Manifest.gz | Bin 8740 -> 8737 bytes app-containers/apptainer/Manifest | 4 +- app-containers/apptainer/apptainer-1.3.1.ebuild | 92 ------------------------ app-containers/apptainer/apptainer-1.3.2.ebuild | 92 ++++++++++++++++++++++++ app-containers/earthly/Manifest | 6 +- app-containers/earthly/earthly-0.8.14.ebuild | 71 ++++++++++++++++++ app-containers/earthly/earthly-0.8.8.ebuild | 77 -------------------- 7 files changed, 168 insertions(+), 174 deletions(-) delete mode 100644 app-containers/apptainer/apptainer-1.3.1.ebuild create mode 100644 app-containers/apptainer/apptainer-1.3.2.ebuild create mode 100644 app-containers/earthly/earthly-0.8.14.ebuild delete mode 100644 app-containers/earthly/earthly-0.8.8.ebuild (limited to 'app-containers') diff --git a/app-containers/Manifest.gz b/app-containers/Manifest.gz index b8ae5b0bf50d..58a7c7740dd7 100644 Binary files a/app-containers/Manifest.gz and b/app-containers/Manifest.gz differ diff --git a/app-containers/apptainer/Manifest b/app-containers/apptainer/Manifest index 12fb0e11028a..97740a608dcb 100644 --- a/app-containers/apptainer/Manifest +++ b/app-containers/apptainer/Manifest @@ -1,6 +1,6 @@ AUX apptainer-1.0.2-trim_upstream_cflags.patch 1142 BLAKE2B 7238229b70a8ac37f3401a163d19dc705adb6a4ab6355e4eaa386ad5c639bfc1443cf61507112a53b66816399ca5fe2c32de964dd602ea16c5dfbf9003343f8c SHA512 1351ee000274567bb5a63aa740fbc43510d84ccad42c9af0c555943b99d93d86a2b036801c1681b93548a874bda1bab3304c2bf0da83bbca102a71e82574a032 DIST apptainer-1.3.0.tar.gz 17103544 BLAKE2B ed42b763a20b2b71cce6081b903697dc506073f91f9d928d49801165289d15c1416044af8fcedddcbd2a260c17a2e6488ed3d06b1edb4fb5f5ca5e9d14a14312 SHA512 a72afcac8e783f43732517314a94ffe039ab8f29027bcc398295fed97b123e6777039c016b6655a3cefbcba7e69832f62f3418b11e1bbd0452edc702ecaef69e -DIST apptainer-1.3.1.tar.gz 17131707 BLAKE2B 08b25f188c8c0b3b72dd692ce9bb21ee5b40ad599170c12ec18b485a05a9b7309215ad17d2b2d15086f35864bf1d09dfd0834b7e2c8c54c5b175bb5989328022 SHA512 da24d7aac8b4a66c665f5d01a293a6de6ea214011a4f1b728c10fff03ee1e94beb648f3be04df072011dbac920624927ddbe2cf7c13a9aba424b463c51d2df64 +DIST apptainer-1.3.2.tar.gz 17129103 BLAKE2B a2c15d408dc956a4bc8cb154dadfe0e60aa8b4216277ff4afd508058f9425722fb66200e7d4ab33cf5a73aee34761ac198e7b31439ab69dfaceebb9f768b58e6 SHA512 c3112c8254c995f83e3ae424ecf734e8ca9583c34cd8b0e56fdde2a7ef8d5145ac68a7a2c9575b071515a2cb681d11423fe57a5a3910750d3bc697c85c15585d EBUILD apptainer-1.3.0.ebuild 2462 BLAKE2B 497f8306a9cf565584cf8b0aeca3b4dd39a3bacb78b1373257aca172bebf9ce25bd58273970687ad2ef8f5e52886cae5e35191767ca95f064c3f92325d2a4346 SHA512 cfb415e29601c5b0a2c86f67bb5cf4b89cbc5ca933707d606c09f227014a7a925f0a2482be4e06ef1701a35c94a5df015bda2850d4fbf1ae2c96450fbb91ab6a -EBUILD apptainer-1.3.1.ebuild 2463 BLAKE2B 0ac11be5ab4bbf1fe0cf770c416e8f79efd95c5b998aa8a1457d27f5a38310b29298538c120a20f51f47f56732beb3c8884ac3012c75cf602891dd7c97ff1640 SHA512 f8ca6ec4ee64adb10398874120946a25852130b8ed27d415668990fe3144655c619e041ce2a7a59026580fa9f5842e34b9e1089f24f1b915557cb5533c8041ad +EBUILD apptainer-1.3.2.ebuild 2463 BLAKE2B 0ac11be5ab4bbf1fe0cf770c416e8f79efd95c5b998aa8a1457d27f5a38310b29298538c120a20f51f47f56732beb3c8884ac3012c75cf602891dd7c97ff1640 SHA512 f8ca6ec4ee64adb10398874120946a25852130b8ed27d415668990fe3144655c619e041ce2a7a59026580fa9f5842e34b9e1089f24f1b915557cb5533c8041ad MISC metadata.xml 454 BLAKE2B 7891b6acae30424b8b6877166b856c1113a13e40ebec9051935df10a0650bf941f52d75bdb6a4258795e07b080082979469b8b8242d2ddd56c52f9c5b6759f0e SHA512 ef53c2dee45734f36403ab71549494f3c24707bc183353e4bd9c548a97b3ab5d7877f4fc9d311d9e86ab249cbdb379f0a1a211ee36afda99fd552f0a5cac30bb diff --git a/app-containers/apptainer/apptainer-1.3.1.ebuild b/app-containers/apptainer/apptainer-1.3.1.ebuild deleted file mode 100644 index 144ecd780c6e..000000000000 --- a/app-containers/apptainer/apptainer-1.3.1.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit linux-info toolchain-funcs - -DESCRIPTION="The container system for secure high-performance computing" -HOMEPAGE="https://apptainer.org/" -SRC_URI="https://github.com/apptainer/${PN}/releases/download/v${PV}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux" -IUSE="examples +network suid systemd" - -# Do not complain about CFLAGS etc. since go projects do not use them. -QA_FLAGS_IGNORED='.*' - -DEPEND="app-crypt/gpgme - >=dev-lang/go-1.20.0 - dev-libs/openssl - sys-apps/util-linux - sys-fs/cryptsetup - sys-fs/squashfs-tools - sys-libs/libseccomp - !suid? ( - sys-fs/e2fsprogs[fuse] - sys-fs/squashfuse - )" -RDEPEND="${DEPEND} - !sys-cluster/singularity" -BDEPEND="virtual/pkgconfig" - -CONFIG_CHECK="~SQUASHFS" - -PATCHES=( - "${FILESDIR}"/${PN}-1.0.2-trim_upstream_cflags.patch -) - -DOCS=( README.md CONTRIBUTORS.md CONTRIBUTING.md ) - -src_configure() { - local myconfargs=( - -c "$(tc-getBUILD_CC)" \ - -x "$(tc-getBUILD_CXX)" \ - -C "$(tc-getCC)" \ - -X "$(tc-getCXX)" \ - --prefix="${EPREFIX}"/usr \ - --sysconfdir="${EPREFIX}"/etc \ - --runstatedir="${EPREFIX}"/run \ - --localstatedir="${EPREFIX}"/var \ - $(usex network "" "--without-network") \ - $(use_with suid) - ) - ./mconfig -v ${myconfargs[@]} || die "Error invoking mconfig" -} - -src_compile() { - emake -C builddir -} - -src_install() { - emake DESTDIR="${D}" -C builddir install - keepdir /var/${PN}/mnt/session - - if use systemd; then - sed -i -e '/systemd cgroups/ s/no/yes/' "${ED}"/etc/${PN}/${PN}.conf \ - || die "Failed to enable systemd use in configuration" - else - sed -i -e '/systemd cgroups/ s/yes/no/' "${ED}"/etc/${PN}/${PN}.conf \ - || die "Failed to disable systemd use in configuration" - fi - - einstalldocs - if use examples; then - dodoc -r examples - fi -} - -pkg_postinst() { - if ! use suid; then - local oldver - for oldver in ${REPLACING_VERSIONS}; do - if ver_test "${oldver}" -lt 1.1.0; then - ewarn "Since version 1.1.0 ${PN} no longer installs setuid-root components by default, relying on unprivileged user namespaces instead. For details, see https://apptainer.org/docs/admin/main/user_namespace.html" - ewarn "Make sure user namespaces (possibly except network ones for improved security) are enabled on your system, or re-enable installation of setuid root components by passing USE=suid to ${CATEGORY}/${PN}" - break - fi - done - fi -} diff --git a/app-containers/apptainer/apptainer-1.3.2.ebuild b/app-containers/apptainer/apptainer-1.3.2.ebuild new file mode 100644 index 000000000000..144ecd780c6e --- /dev/null +++ b/app-containers/apptainer/apptainer-1.3.2.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info toolchain-funcs + +DESCRIPTION="The container system for secure high-performance computing" +HOMEPAGE="https://apptainer.org/" +SRC_URI="https://github.com/apptainer/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="examples +network suid systemd" + +# Do not complain about CFLAGS etc. since go projects do not use them. +QA_FLAGS_IGNORED='.*' + +DEPEND="app-crypt/gpgme + >=dev-lang/go-1.20.0 + dev-libs/openssl + sys-apps/util-linux + sys-fs/cryptsetup + sys-fs/squashfs-tools + sys-libs/libseccomp + !suid? ( + sys-fs/e2fsprogs[fuse] + sys-fs/squashfuse + )" +RDEPEND="${DEPEND} + !sys-cluster/singularity" +BDEPEND="virtual/pkgconfig" + +CONFIG_CHECK="~SQUASHFS" + +PATCHES=( + "${FILESDIR}"/${PN}-1.0.2-trim_upstream_cflags.patch +) + +DOCS=( README.md CONTRIBUTORS.md CONTRIBUTING.md ) + +src_configure() { + local myconfargs=( + -c "$(tc-getBUILD_CC)" \ + -x "$(tc-getBUILD_CXX)" \ + -C "$(tc-getCC)" \ + -X "$(tc-getCXX)" \ + --prefix="${EPREFIX}"/usr \ + --sysconfdir="${EPREFIX}"/etc \ + --runstatedir="${EPREFIX}"/run \ + --localstatedir="${EPREFIX}"/var \ + $(usex network "" "--without-network") \ + $(use_with suid) + ) + ./mconfig -v ${myconfargs[@]} || die "Error invoking mconfig" +} + +src_compile() { + emake -C builddir +} + +src_install() { + emake DESTDIR="${D}" -C builddir install + keepdir /var/${PN}/mnt/session + + if use systemd; then + sed -i -e '/systemd cgroups/ s/no/yes/' "${ED}"/etc/${PN}/${PN}.conf \ + || die "Failed to enable systemd use in configuration" + else + sed -i -e '/systemd cgroups/ s/yes/no/' "${ED}"/etc/${PN}/${PN}.conf \ + || die "Failed to disable systemd use in configuration" + fi + + einstalldocs + if use examples; then + dodoc -r examples + fi +} + +pkg_postinst() { + if ! use suid; then + local oldver + for oldver in ${REPLACING_VERSIONS}; do + if ver_test "${oldver}" -lt 1.1.0; then + ewarn "Since version 1.1.0 ${PN} no longer installs setuid-root components by default, relying on unprivileged user namespaces instead. For details, see https://apptainer.org/docs/admin/main/user_namespace.html" + ewarn "Make sure user namespaces (possibly except network ones for improved security) are enabled on your system, or re-enable installation of setuid root components by passing USE=suid to ${CATEGORY}/${PN}" + break + fi + done + fi +} diff --git a/app-containers/earthly/Manifest b/app-containers/earthly/Manifest index 7e6fda8b807e..42ddb83d0af1 100644 --- a/app-containers/earthly/Manifest +++ b/app-containers/earthly/Manifest @@ -6,14 +6,14 @@ DIST earthly-0.8.12-deps.tar.xz 163755972 BLAKE2B 6d5e7e2d157b54818bebca7cc0b57b DIST earthly-0.8.12.tar.gz 8090651 BLAKE2B ce916a50b23bc5567b4174ad88a5a52b9c728b4ee215239f46680fe5574f0cabe353d5a336e395f7eec42c86a726bb0d0da4b5204dcc9654c76a8a8cd3366fb4 SHA512 7cc62cc3af6aef039f8059e04564a181dd9b497cb51f15b6a49f2aad4a975147aa30d9109eb1c33cfc74a6f354eae77904d5c0e15e63172cb7ee20874b9bc05e DIST earthly-0.8.13-deps.tar.xz 163750220 BLAKE2B 995ed748f99b7d4c4ca90cdd1964c295270963e55462bfa3bdd830209a90303d67c91fed66e7d52984993ef58b1d060e140694fdc8931ca2181dd88701d8f6dd SHA512 ab3ee4fef9a87dab9009ffd4e31d00a256c8ad88096c8573a5a2fb782079392415752024821240da60549d260c9dcfe3d6f1457fb3fbc8cc8a1f2602bb875aee DIST earthly-0.8.13.tar.gz 8082676 BLAKE2B cf6d5c6d397951a60302e5492ad219d3d673cce9bf2e06696a3cd8719dcf1d755644413171c7db1b27c60d6cbe0d85facf2d6a5d150c26dc5530c07d1255b742 SHA512 f3abd814c0c57f485a37c83e322d9a8478236ae4220baf455330a6a28d98a8cb7806fb4cee9525c9b27c51bc0ed8780872f51ece7194059658defd54cce1a6b5 -DIST earthly-0.8.8-deps.tar.zst 180214607 BLAKE2B f407dcc4cb8daee7ac53433af830b6c872b0c9e1e05004b2bc4c8706eb98b65e457f7bea2b221e6c4cf4dfe8bb218a5ca60e85beb1f7839cb0ffaadaf8110ad3 SHA512 6a9d0eb7a69b36cca2f79d3f92e21f9f97d858451308f7151e4810c479105b7dad3fe2ad1b8a90a6ca9f0c7d3d06a8f89cd3eab4fde54e10fae2e3ea98fbb7bb -DIST earthly-0.8.8.tar.gz 8069650 BLAKE2B 05dca12e206a22c522d36711cb960525bb20c51439dd73c8ec4a96151c306022483ade55ebe80f30d85acba3c1531b0c9b97115702c6bfc96daa615d9b798d31 SHA512 9a19ddfcaa40720b1cbab166e40a6300a79d38245074bd111082eaa04206ae8020c7596ad5801f3048e3a411cbcd88b161d8c01375e4b00192b8cf2b23e62e77 +DIST earthly-0.8.14-deps.tar.xz 163777848 BLAKE2B 0615db6d874a0d490666df6517581763315c44a67662d1c8c630d59983849c3a1c10bdee4d626f9ded02a58f7eb037e24cca6b22dfc7eadf79d4e735a33306c5 SHA512 ac062ae77e98ec36f9bba1a73430080d2f2c7bed3ad8c48af8bb1da4a6f006a4285fca8f4d85363652ec3db9df78e76befdfc838971684d704512d795d672414 +DIST earthly-0.8.14.tar.gz 8079338 BLAKE2B c3da74c39b77f671656ba51f7e8a82b77476650e986e5665e1df86fd1674e808b79edcc0b8f616891b6749ec034de45268fb48df519c5fdf54c1e3e583eab5a6 SHA512 566e6bdd6f026baa99bad33128e3a843ef20dacc15efdccaf19af648440c8ee7b445bed80f33102b9fc419d211dc6dea38a66655247549f1eaf17837c6687105 DIST earthly-0.8.9-deps.tar.zst 180210180 BLAKE2B 8d48677c9dac4571efadb41c882520ba6f92bfc4a6f36ae55f6ce54c258f16dbd693412d1a25b4467d078c2b9b039b96d934236c3a071f1f64040b2da5a3d848 SHA512 f504567855830d8027d830372f8e365b8f9893d3625b94b2e91294985f65be3d276cdceba9913ef37a6e1a45debcd8fb393e6ea0d16615c06a188862b33d8a1d DIST earthly-0.8.9.tar.gz 8070633 BLAKE2B 3ed83bf57654f89d0b579ec9df64a9025d9fae1da755018c83cfd6ac03e70da176de564185a2ad1f68383ff0c6a2e26132568cb451bc1b474b87c4852dc2266b SHA512 e1fccfafa845b1964f824850c05fa39904e2804f8145f24342ee86e6c9f1a8ffbb30b1a822744343f59ba9dc4b1e4788020d0cc6b954d9f62eeeb43a594bd326 EBUILD earthly-0.8.10.ebuild 1873 BLAKE2B 7c1ea309aed992babc0f8127d2a4df9797d50c96e32dbb0d6c84f8b58245ca470b9faa2fc3284c0afef9580ba3f09d8fe6dfe820b8efddb4a1e67748a8591922 SHA512 242fd126574b5f0785526cd495c5fdece4f9eed947c54f111c076df9fb8adac01dd47c844dbac4755f77886e0f5aef40bfe1f5b87497c7ae3d8734e716a5e02c EBUILD earthly-0.8.11.ebuild 1877 BLAKE2B 6fc911dc914dd7ec94547b1e5e16dad19bde6e3ec77594b6eb5c4f9de064a6fa7adf3e2fd6b8b43f88831f28560f35b4bbf8c34dfecf7946fc763c4005c96bac SHA512 87b227258225147c8e8d250df51d6b6d985684b3eee0d094032ed5d03e853b3d0b79562deccae34a863a2c7ca1f052d852689924765f2d70f057a63e67c2122c EBUILD earthly-0.8.12.ebuild 1796 BLAKE2B 9d90d9f6e3887215fca65f86fbc1f4fe67349d8d34b1b2a1bc1e81aa758f53c3de49027c4f970f905b8827ea5d2b7d2da55af8bdad743490b0f7a10fa32bd4c1 SHA512 4f40f488c2c726ff5e3eb4fbe4d9b7c9aee4d172e0f8f66e62cfde6dafdcace729cfe3f61bbef1487fbc52b318df857c2ae4287b7ac181869cd3254bc00fabce EBUILD earthly-0.8.13.ebuild 1796 BLAKE2B 146155eec0dd7ba5d88bd8f1df5584b04d67374561a4fde80043b933740d1bc9ca1dfd7a3676598b4932e21fac63f3e8b233f465919d2ad884d5c426586c0eaf SHA512 ae06695aa894ebd27248ae4dbf2c0912150d8028180716da33733efad908006af3ae6e19a766035576ed78f8f8fe2ce2fb5ea69c67f2e7584e43ca70c3f12426 -EBUILD earthly-0.8.8.ebuild 1862 BLAKE2B 9332cbe6ec6b56140dc6ff634f4f86eb43961db3749546aa19e02c835e763bde698d2a58762859c99851c30ac1a9b2131492a0435b86c64cd2b2f19eef500322 SHA512 42ed4b6b318f112205c75fc61a098d5ba329420a7018f4b890c1a07d515b99c66b65c08d3e2fddfd98cfd8f531a90d54f516d1a7138f7e921863797322b2e278 +EBUILD earthly-0.8.14.ebuild 1796 BLAKE2B 5ac0a172fa7878f74725796849d265199e2f20f43dc7438d14e98810d01e5333d5099e4722bf8a44cc1898d8da90539ac6ccb0ce55618c729fc4279625cbc34d SHA512 53aa3669b41c6e938fa68c627e005b696092bbf8dc64da291fe0ed6b6ad6cd605d7b233db54accbdafa45945185cd741a6aaa51dd0d9e57b48076559fb7074f3 EBUILD earthly-0.8.9.ebuild 1871 BLAKE2B 7beff59ec371e6939461329c555e7c8df218a619ce4ddf06c51c90c3b63ea3c141762e7ae631f1429d83989a2e1eb2b4dc6d3ad63715fb7e0e40b7fc6bf362ce SHA512 b767a6b99c1f471812ee9b0b7aed8f3602eaa87cbcd65d521ff3e2c418a3495ab315bb54d10547c482b4fcb1230f2d80d5c20dce263380ee905dec4d89562015 MISC metadata.xml 927 BLAKE2B b7d5184df16f39603bf6df8b503e701d737fec188d1d97673e4ca59babd990c1b872784c91db04c74d9a08dbffa76f4e7530d8b021cbbe9ae51fd9966f709522 SHA512 f7f49eb583b2b5a9939c26e9eaff3917392525c3a94e5f8274c89b69e172547ad02fa4ed1b078e7d778f765659e1b9a7cf99d88042034cfbfbef54e685c8b6dd diff --git a/app-containers/earthly/earthly-0.8.14.ebuild b/app-containers/earthly/earthly-0.8.14.ebuild new file mode 100644 index 000000000000..170592ca9cd4 --- /dev/null +++ b/app-containers/earthly/earthly-0.8.14.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Git commit SHA is needed at runtime by earthly to pull and bootstrap images. +if [[ "${PV}" == "0.8.14" ]] ; then + COMMIT_SHA="6b41f8409d7ffef0d25072c2c04250074b6e3c72" +else + die 'Could not detect "COMMIT_SHA", please update the ebuild.' +fi + +inherit go-module + +DESCRIPTION="Build automation tool that executes in containers" +HOMEPAGE="https://earthly.dev/ + https://github.com/earthly/earthly/" +SRC_URI=" + https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz + https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-deps.tar.xz +" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + || ( + app-containers/docker + app-containers/podman + ) +" + +DOCS=( CHANGELOG.md CONTRIBUTING.md README.md ) + +src_compile() { + local -r go_tags="dfrunmount,dfrunsecurity,dfsecrets,dfssh,dfrunnetwork,dfheredoc,forceposix" + local -r go_ldflags=" + -X main.DefaultBuildkitdImage=docker.io/earthly/buildkitd:v${PV} + -X main.GitSha=${COMMIT_SHA} + -X main.Version=v${PV} + " + local -a -r go_buildargs=( + -tags "${go_tags}" + -ldflags "${go_ldflags}" + -o ./bin/ + ) + ego build "${go_buildargs[@]}" ./cmd/... +} + +src_install() { + exeinto /usr/bin + doexe bin/earthly + newexe bin/debugger earthly-debugger + + einstalldocs +} + +pkg_postinst() { + if has_version "app-containers/podman" ; then + ewarn "Podman is supported but not recommended." + ewarn "If issues arise, then please try running earthly with docker." + fi + + if has_version "app-containers/podman[rootless]" ; then + ewarn "Running podman in rootless mode is not supported because" + ewarn "earthly/dind and earthly/buildkit require privileged access." + ewarn "For more info see: https://docs.earthly.dev/docs/guides/podman/" + fi +} diff --git a/app-containers/earthly/earthly-0.8.8.ebuild b/app-containers/earthly/earthly-0.8.8.ebuild deleted file mode 100644 index 3b21126221a9..000000000000 --- a/app-containers/earthly/earthly-0.8.8.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# Git commit SHA is needed at runtime by earthly to pull and bootstrap images. -if [[ "${PV}" == 0.8.8 ]] ; then - COMMIT_SHA=2718b793272cf8f80fa61071b41fec8469a7427b -else - die 'Could not detect "COMMIT_SHA", please update the ebuild.' -fi - -inherit go-module unpacker - -DESCRIPTION="Build automation tool that executes in containers" -HOMEPAGE="https://earthly.dev/ - https://github.com/earthly/earthly/" -SRC_URI=" - https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz - -> ${P}.tar.gz - https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-deps.tar.zst -" - -LICENSE="MPL-2.0" -SLOT="0" -KEYWORDS="amd64 ~x86" - -RDEPEND=" - || ( - app-containers/docker - app-containers/podman - ) -" - -DOCS=( CHANGELOG.md CONTRIBUTING.md README.md ) - -src_unpack() { - unpacker "${P}-deps.tar.zst" - - go-module_src_unpack -} - -src_compile() { - local go_tags="dfrunmount,dfrunsecurity,dfsecrets,dfssh,dfrunnetwork,dfheredoc,forceposix" - local go_ldflags=" - -X main.DefaultBuildkitdImage=docker.io/earthly/buildkitd:v${PV} - -X main.GitSha=${COMMIT_SHA} - -X main.Version=v${PV} - " - local -a go_buildargs=( - -tags "${go_tags}" - -ldflags "${go_ldflags}" - -o ./bin/ - ) - ego build "${go_buildargs[@]}" ./cmd/... -} - -src_install() { - exeinto /usr/bin - doexe bin/earthly - newexe bin/debugger earthly-debugger - - einstalldocs -} - -pkg_postinst() { - if has_version "app-containers/podman" ; then - ewarn "Podman is supported but not recommended." - ewarn "If issues arise, then please try running earthly with docker." - fi - - if has_version "app-containers/podman[rootless]" ; then - ewarn "Running podman in rootless mode is not supported because" - ewarn "earthly/dind and earthly/buildkit require privileged access." - ewarn "For more info see: https://docs.earthly.dev/docs/guides/podman/" - fi -} -- cgit v1.2.3