From 5b28e4887a9d824cc340ea88dfb1e4ad1ff72df0 Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sun, 28 May 2023 23:40:43 +0200 Subject: [PATCH] app-containers/dnsname: Add package version 1.3.0_p20230526 This package is a dependency of app-containers/podman-compose. Signed-off-by: Nils Freydank --- app-containers/dnsname/Manifest | 2 + .../dnsname/dnsname-1.3.0_p20230526.ebuild | 56 +++++++++++++++++++ app-containers/dnsname/metadata.xml | 14 +++++ 3 files changed, 72 insertions(+) create mode 100644 app-containers/dnsname/Manifest create mode 100644 app-containers/dnsname/dnsname-1.3.0_p20230526.ebuild create mode 100644 app-containers/dnsname/metadata.xml diff --git a/app-containers/dnsname/Manifest b/app-containers/dnsname/Manifest new file mode 100644 index 0000000..d8a124b --- /dev/null +++ b/app-containers/dnsname/Manifest @@ -0,0 +1,2 @@ +DIST dnsname-1.3.0_p20230526-deps.tar.xz 34752452 BLAKE2B c6f49ab5b29ce597d15158c2c91a6e5db424f492e07cca278475d2755276d3135d60b7ccead6de2ee040e32c5e3b9693b6dfc02f909a146648f50cb51ead6ffd SHA512 8724a728f8b13f19a3a4bb3a74748d7f4afe90822447da2a90997bd0eed20e6ee6567d41462eaebcb9dc474678ff7892e86c4d6e3ba7d32c62290dcb128517ec +DIST dnsname-1.3.0_p20230526.gh.tar.gz 2525496 BLAKE2B fb61c16a9a58203423df93a32b4fd2e89df8f73db0f44f91215c73d29763fac36a6b06f03c963f821c143c4d298ff7ec34410529d336db4c779ac5cd12caff30 SHA512 1f240cd7333976f619289a4b97f202deeaab526358fe77c752e87f57a2f9f21c035de1141e10a5d082b042df635434c3a215154b957cd77be8acb1318c2bae85 diff --git a/app-containers/dnsname/dnsname-1.3.0_p20230526.ebuild b/app-containers/dnsname/dnsname-1.3.0_p20230526.ebuild new file mode 100644 index 0000000..77eafbc --- /dev/null +++ b/app-containers/dnsname/dnsname-1.3.0_p20230526.ebuild @@ -0,0 +1,56 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" +EGO_PN="github.com/containers/dnsname" +inherit go-module +COMMIT_ID="6685f68dbc13a95b73b9394b304927c6f518021c" + +DESCRIPTION="Name resolution for contaienrs" +HOMEPAGE="https://github.com/containers/dnsname" + +if [[ ${PV} == *_p* ]]; then + SRC_URI="https://${EGO_PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.gh.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT_ID}" +else + SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +fi +# Add the manually vendored tarball. +# Compress the tarball with: xz -9kT0 --memlimit-decompress=256M +SRC_URI+=" https://files.holgersson.xyz/gentoo/distfiles/${P}-deps.tar.xz" + +KEYWORDS="~amd64" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="+encryption" + +DEPEND="encryption? ( dev-libs/olm )" +RDEPEND="${DEPEND}" +BDEPEND="" +DOCS=( + README.md + README_PODMAN.md + RELEASE_NOTES.md + SECURITY.md + CODE-OF-CONDUCT.md + OWNERS +) + +src_compile() { + # Flags -w, -s: Omit debugging information to reduce binary size, + # see https://golang.org/cmd/link/. + local mygobuildargs=( + -ldflags="-X ${EGO_PN}/config.GitCommit=${GIT_COMMIT} -w -s" + -mod=vendor -v -work -x + ) + + use encryption || export CGO_ENABLED=0 + go build "${mygobuildargs[@]}" "${EGO_PN}/plugins/meta/dnsname" \ + || die "go build failed" +} + +src_install() { + dobin "${PN}" + + dodoc "${DOCS[@]}" +} diff --git a/app-containers/dnsname/metadata.xml b/app-containers/dnsname/metadata.xml new file mode 100644 index 0000000..2ed1721 --- /dev/null +++ b/app-containers/dnsname/metadata.xml @@ -0,0 +1,14 @@ + + + + + containers/dnsname + + + holgersson@posteo.de + Nils Freydank + + + Enable encryption using dev-libs/olm + +