diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-28 10:32:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-28 10:32:42 +0100 |
commit | 5d1fadfaf82053fc45d6120cb990be1ffb05fc8d (patch) | |
tree | 8d36fff15d7c7ebb6834f324a115e82f24cdbaf2 /app-containers/buildah | |
parent | 5684fb5128e63f45e3c4a58a58ba9b2a124a2a28 (diff) |
gentoo auto-resync : 28:10:2023 - 10:32:42
Diffstat (limited to 'app-containers/buildah')
-rw-r--r-- | app-containers/buildah/Manifest | 4 | ||||
-rw-r--r-- | app-containers/buildah/buildah-1.32.1.ebuild | 118 | ||||
-rw-r--r-- | app-containers/buildah/buildah-9999.ebuild | 102 |
3 files changed, 168 insertions, 56 deletions
diff --git a/app-containers/buildah/Manifest b/app-containers/buildah/Manifest index db1c2bc800e3..3ea8a3fcc0a8 100644 --- a/app-containers/buildah/Manifest +++ b/app-containers/buildah/Manifest @@ -1,8 +1,10 @@ DIST buildah-1.29.1.tar.gz 15594930 BLAKE2B 71b87352062b3a5df67389897fd0d82c2491c48cffbda808b30e2767a1e290eccfd726be26dbd57fd8d08cfacb74f313058179c40600225d863a9340b772df1e SHA512 ea78aacee9b5cc10e299789d739e7086579e67719ab72b84f6ea5acbaf31d443284387ac92e7c5c1c3da9bd6523f43e2d9c7e2ea5698c251cb5458a384f41b04 DIST buildah-1.30.0.tar.gz 15623786 BLAKE2B e0b2f6d26827cfe40f88a9915f12b6acb385fbd576fa227d4fee02c162077e9c6fe0591c7171405f5645cd06e4068f26e17c2cb963898e38cfbdd61abe68dae2 SHA512 185fd98a59fa8d86fe9f1eadc9b7591e5053674464be10538a7581d8e1f6a25e5032a354c821c32a167e2864acea010243efbbe4f5a4205d8eaa2894f062a25b DIST buildah-1.32.0.tar.gz 18445843 BLAKE2B d7471e3f0733bc626f665c592701666ba41732eb53bf4679da7e9e28dad388532ab8c88e86db553790ced7822168fd6388dc08121e1456404f18a5d96017da60 SHA512 7c61141e43ea2f968a50b4c5ae6b69c2b9734a19774c7ca48bc942b900ca55ec381ac93fdf04f08061640a457551a9e03a45a37d22cb94b34cecded192dced8f +DIST buildah-1.32.1.tar.gz 18452695 BLAKE2B b4f3644a046d0dd96555b810e488ea78dc396692e539978856fbc2b22010bce3ed9f578949e8de02579325fa59e00fba59908724952b8c323889c816ae4f1af6 SHA512 e5c59f158b786809c89465361a662211bbef6bb4c27c79490604923d924c2030398a0878b122b246b02ae246bd977b7ccffdc6de4f06e80f096c2921c34bf04a EBUILD buildah-1.29.1.ebuild 1194 BLAKE2B 585ad9104367142c5e3ade8d9418c23cafd752be0c000ca4079ac912d2f42b462e2ffba14c422362fee09146b73eacb409ad942cdba54751a21a31ed3e54ab89 SHA512 1ee657db211bfe245dd94fdb297d2f09bc03a70a35a460b3dabe77f0aa098bf9e5597387d2ff7125515e4610979f7587b7634c8d0f776c9ec25d676c4332e6a8 EBUILD buildah-1.30.0.ebuild 1196 BLAKE2B eefce023ce7e2662b1598fb3f6d5b885816d54a6397a788e10851b7ccc174ae6d9e4fa4ec387d3a21a7fdff4670ee68bfb59e9171e76032c3c28882d164cc446 SHA512 3c139484015e3e85c8f891babb375c560c3fc3e1827a44862eb262f95b8654a2c8d2a3c4102d3081c3a3677f20c0c5371a6579e9c0e1adfa339e5198475c357b EBUILD buildah-1.32.0.ebuild 1958 BLAKE2B 20b9c0182b44e0a96891dc95f3ecb36a1a0bfc217c41eac2d8e613e35d54533ee3aa3bfc6314998350d5460f3a924282fab0b537dcc1fa3c9bef43be3a687819 SHA512 26cb4c1a9545c53a4c29021f672d844dd4ca6861aa0fc25b57b128798b2d19b72739ba77c6cc13c89a63f9089a7e56833dfb407e28de44b4cd0b19b9e70f4bdf -EBUILD buildah-9999.ebuild 2938 BLAKE2B 0fd87b31771c1c2cfd2e9fc7e23eac32847edb52813f2d3c3110c624fb14536cb998376b6fd239a1bded8910e930cb0dfa467f05cfe24e9cc5579ac795c8fbd3 SHA512 083f0a8a64b2817c18d983ad28bb85aa47afb91e4722b23f902d3dded6ee2ad854e6c80b34500e73a5cad78ec3780ad4b998d934c589a2d0a42abb40df8f9079 +EBUILD buildah-1.32.1.ebuild 2734 BLAKE2B 4b6d0c38e38efeb505f56e3e4b59a770d1d068d01021aa27b4b968d857ae18e8f052dd28e8369cd2d44f5e1e1c5f7256f554aec723ae322152b46bac9a950169 SHA512 0480b51867415728f852e3f3714f037361f54d1a98ebd5be60d2d69b0ba652aee63538ec648f833679394f96c3e02cdcf914b77e094e2773e7cd18f3eed1658a +EBUILD buildah-9999.ebuild 2644 BLAKE2B 01da3ffcabeb85bb21ed6289010f9f71a26f6210baf95e6b6e6798fb1e73dd0b44e09ba0114ee2d067c93625ed0a5758914e41ec0c044583a0939e98a7bd9f9e SHA512 e3dacf5eb4f657401dd1f33b11373cfa8e9c45569b54b355ee696418d48588b725eff17af9915677289f4a528ae74134b1a9c6439bffb53115ab3309adcb233e MISC metadata.xml 721 BLAKE2B 3ad3d8a1726282f73f0fdae72e1f970dfbfbc9fcbde5f589fb7285273312682af51ea04e49c70ccf83434640e9acd68ca8d1352ea28a41ce67134d4d8c5de304 SHA512 0a88ddaee2b20b157e2ab5a584a2f265f45aab2807e10dfc46a79cf1573cf7e2db56611dad8de425650d042606dc7ddfa52e758b08b710199c72986aa93e9dbd diff --git a/app-containers/buildah/buildah-1.32.1.ebuild b/app-containers/buildah/buildah-1.32.1.ebuild new file mode 100644 index 000000000000..ffbc1878df1b --- /dev/null +++ b/app-containers/buildah/buildah-1.32.1.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module linux-info + +DESCRIPTION="A tool that facilitates building OCI images" +HOMEPAGE="https://github.com/containers/buildah" +# main pkg +LICENSE="Apache-2.0" +# deps +LICENSE+=" BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0" + +SLOT="0" +IUSE="apparmor btrfs +seccomp systemd doc test" +RESTRICT="test" +EXTRA_DOCS=( + "CHANGELOG.md" + "CONTRIBUTING.md" + "install.md" + "troubleshooting.md" + "docs/tutorials" +) + +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/containers/buildah.git" +else + SRC_URI="https://github.com/containers/buildah/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64" +fi + +RDEPEND=" + systemd? ( sys-apps/systemd ) + btrfs? ( sys-fs/btrfs-progs ) + seccomp? ( sys-libs/libseccomp:= ) + apparmor? ( sys-libs/libapparmor:= ) + app-crypt/gpgme:= + dev-libs/libgpg-error:= + dev-libs/libassuan:= + sys-apps/shadow:= +" +DEPEND="${RDEPEND}" + +export COMMIT_NO=bfd436d159059b45d770a0fc62386c9e0b9bdbb1 +export GIT_COMMIT=${COMMIT_NO} + +pkg_pretend() { + local CONFIG_CHECK="" + use btrfs && CONFIG_CHECK+=" ~BTRFS_FS" + check_extra_config + + linux_config_exists || ewarn "Cannot determine configuration of your kernel." +} + +src_prepare() { + default + + # ensure all necessary files are there + local file + for file in docs/Makefile hack/libsubid_tag.sh hack/apparmor_tag.sh \ + hack/systemd_tag.sh btrfs_installed_tag.sh btrfs_tag.sh; do + [[ -f "${file}" ]] || die + done + + sed -i -e "s|/usr/local|${EPREFIX}/usr|g" Makefile docs/Makefile || die + echo -e '#!/usr/bin/env bash\necho libsubid' > hack/libsubid_tag.sh || die + + cat <<-EOF > hack/apparmor_tag.sh || die + #!/usr/bin/env bash + $(usex apparmor 'echo apparmor' echo) + EOF + + use seccomp || { + cat <<-'EOF' > "${T}/disable_seccomp.patch" + --- a/Makefile + +++ b/Makefile + @@ -5 +5 @@ + -SECURITYTAGS ?= seccomp $(APPARMORTAG) + +SECURITYTAGS ?= $(APPARMORTAG) + EOF + eapply "${T}/disable_seccomp.patch" || die + } + + cat <<-EOF > hack/systemd_tag.sh || die + #!/usr/bin/env bash + $(usex systemd 'echo systemd' echo) + EOF + + echo -e "#!/usr/bin/env bash\n echo" > btrfs_installed_tag.sh || die + cat <<-EOF > btrfs_tag.sh || die + #!/usr/bin/env bash + $(usex btrfs echo 'echo exclude_graphdriver_btrfs btrfs_noversion') + EOF + + use test || { + cat <<-'EOF' > "${T}/disable_tests.patch" + --- a/Makefile + +++ b/Makefile + @@ -54 +54 @@ + -all: bin/buildah bin/imgtype bin/copy bin/tutorial docs + +all: bin/buildah docs + EOF + eapply "${T}/disable_tests.patch" || die + } + +} + +src_test() { + emake test-unit +} + +src_install() { + emake DESTDIR="${D}" install install.completions + einstalldocs + use doc && dodoc -r "${EXTRA_DOCS[@]}" +} diff --git a/app-containers/buildah/buildah-9999.ebuild b/app-containers/buildah/buildah-9999.ebuild index 8ca21b070f70..4c03a24b3508 100644 --- a/app-containers/buildah/buildah-9999.ebuild +++ b/app-containers/buildah/buildah-9999.ebuild @@ -7,7 +7,10 @@ inherit go-module linux-info DESCRIPTION="A tool that facilitates building OCI images" HOMEPAGE="https://github.com/containers/buildah" -LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0" +# main pkg +LICENSE="Apache-2.0" +# deps +LICENSE+=" BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0" SLOT="0" IUSE="apparmor btrfs +seccomp systemd doc test" @@ -15,22 +18,20 @@ RESTRICT="test" EXTRA_DOCS=( "CHANGELOG.md" "CONTRIBUTING.md" - "README.md" "install.md" "troubleshooting.md" "docs/tutorials" ) -if [[ ${PV} == *9999* ]]; then +if [[ ${PV} == 9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/containers/buildah.git" else SRC_URI="https://github.com/containers/buildah/archive/v${PV}.tar.gz -> ${P}.tar.gz" - GIT_COMMIT=2326d49 KEYWORDS="~amd64 ~arm64" fi -DEPEND=" +RDEPEND=" systemd? ( sys-apps/systemd ) btrfs? ( sys-fs/btrfs-progs ) seccomp? ( sys-libs/libseccomp:= ) @@ -40,7 +41,7 @@ DEPEND=" dev-libs/libassuan:= sys-apps/shadow:= " -RDEPEND="${DEPEND}" +DEPEND="${RDEPEND}" pkg_pretend() { local CONFIG_CHECK="" @@ -53,71 +54,62 @@ pkg_pretend() { src_prepare() { default - sed -i -e "s|/usr/local|${EPREFIX}/usr|g" Makefile docs/Makefile || die + # ensure all necessary files are there + local file + for file in docs/Makefile hack/libsubid_tag.sh hack/apparmor_tag.sh \ + hack/systemd_tag.sh btrfs_installed_tag.sh btrfs_tag.sh; do + [[ -f "${file}" ]] || die + done - [[ -f hack/libsubid_tag.sh ]] && echo -e '#!/usr/bin/env bash\necho libsubid' > hack/libsubid_tag.sh || die + sed -i -e "s|/usr/local|${EPREFIX}/usr|g" Makefile docs/Makefile || die + echo -e '#!/usr/bin/env bash\necho libsubid' > hack/libsubid_tag.sh || die - [[ -f hack/apparmor_tag.sh ]] || die - if use apparmor; then - echo -e '#!/usr/bin/env bash\necho apparmor' > hack/apparmor_tag.sh || die - else - echo -e '#!/usr/bin/env bash\necho' > hack/apparmor_tag.sh || die - fi + cat <<-EOF > hack/apparmor_tag.sh || die + #!/usr/bin/env bash + $(usex apparmor 'echo apparmor' echo) + EOF use seccomp || { - cat << 'EOF' > "${T}/disable_seccomp.patch" ---- Makefile -+++ Makefile -@@ -5 +5 @@ --SECURITYTAGS ?= seccomp $(APPARMORTAG) -+SECURITYTAGS ?= $(APPARMORTAG) -EOF - eapply -p0 "${T}/disable_seccomp.patch" || die + cat <<-'EOF' > "${T}/disable_seccomp.patch" + --- a/Makefile + +++ b/Makefile + @@ -5 +5 @@ + -SECURITYTAGS ?= seccomp $(APPARMORTAG) + +SECURITYTAGS ?= $(APPARMORTAG) + EOF + eapply "${T}/disable_seccomp.patch" || die } - [[ -f hack/systemd_tag.sh ]] || die - if use systemd; then - echo -e '#!/usr/bin/env bash\necho systemd' > hack/systemd_tag.sh || die - else - echo -e '#!/usr/bin/env bash\necho' > hack/systemd_tag.sh || die - fi - - [[ -f btrfs_installed_tag.sh && -f btrfs_tag.sh ]] || die - if use btrfs; then - echo -e '#!/usr/bin/env bash\necho btrfs_noversion' > btrfs_tag.sh || die - echo -e '#!/usr/bin/env bash\necho' > btrfs_installed_tag.sh || die - else - echo -e '#!/usr/bin/env bash\necho exclude_graphdriver_btrfs' > btrfs_installed_tag.sh || die - echo -e '#!/usr/bin/env bash\necho' > btrfs_tag.sh || die - fi + cat <<-EOF > hack/systemd_tag.sh || die + #!/usr/bin/env bash + $(usex systemd 'echo systemd' echo) + EOF + + echo -e "#!/usr/bin/env bash\n echo" > btrfs_installed_tag.sh || die + cat <<-EOF > btrfs_tag.sh || die + #!/usr/bin/env bash + $(usex btrfs echo 'echo exclude_graphdriver_btrfs btrfs_noversion') + EOF use test || { - cat << 'EOF' > "${T}/disable_tests.patch" ---- Makefile -+++ Makefile -@@ -54 +54 @@ --all: bin/buildah bin/imgtype bin/copy bin/tutorial docs -+all: bin/buildah docs -EOF - eapply -p0 "${T}/disable_tests.patch" || die + cat <<-'EOF' > "${T}/disable_tests.patch" + --- a/Makefile + +++ b/Makefile + @@ -54 +54 @@ + -all: bin/buildah bin/imgtype bin/copy bin/tutorial docs + +all: bin/buildah docs + EOF + eapply "${T}/disable_tests.patch" || die } } -src_compile() { - if [[ ${PV} == *9999* ]]; then - emake all - else - emake GIT_COMMIT=${GIT_COMMIT} all - fi -} - src_test() { emake test-unit } src_install() { - default - emake DESTDIR="${D}" install.completions + emake DESTDIR="${D}" install install.completions + einstalldocs use doc && dodoc -r "${EXTRA_DOCS[@]}" } |