logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://anongit.hacktivis.me/git/overlay.git/
commit: 6f5f234ae133905c8e85cb1aa90505eaa54b12f8
parent e8a820489d5bda140b677ee81326f6c2242e60f0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 23 May 2025 20:48:22 +0200

sys-auth/skeud: add 0.1.1

Diffstat:

Asys-auth/skeud/Manifest2++
Asys-auth/skeud/skeud-0.1.1.ebuild69+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Msys-auth/skeud/skeud-9999.ebuild47+++++++++++++++++++++++++++++++++++++++++------
3 files changed, 112 insertions(+), 6 deletions(-)

diff --git a/sys-auth/skeud/Manifest b/sys-auth/skeud/Manifest @@ -0,0 +1,2 @@ +DIST skeud-0.1.1.tar.gz 12099 BLAKE2B f21c29bfef9d264c8220bf09add986a74f1bceeda84e676f7916637878d20788862beb23e6189e519980902166720f6dee8aa891af730b1b9a0825a85abacab7 SHA512 13ebd3af4f815176e222351060e77ba45324b93d4c752df5cd59574f2667220d1f6058ab6ac681d29f0987a7a5b732f0ca929bb074a28d053da28b14329c6472 +DIST skeud-0.1.1.tar.gz.sign 141 BLAKE2B a1537a789fbd158b6c5f25bc865922a4a24a8b8ef15f895101e7967b1cb7430d68bf596fa640d1963af2d6a77dfcc220fc9c31109875f6b7d48eacfcf4b0f43d SHA512 31f3f5984c753efffeed748b7af179b22b05c9dba8990096d244eedb00f1573d677a54cea54ff68810ecb8451da14925ab46f98ae745daf2b6d330c29ce44bcf diff --git a/sys-auth/skeud/skeud-0.1.1.ebuild b/sys-auth/skeud/skeud-0.1.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 2021-2025 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + + +DESCRIPTION="Simple and portable utilities to deal with user accounts (su, login)" +HOMEPAGE="https://hacktivis.me/git/skeud" +if [[ "${PV}" = *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://anongit.hacktivis.me/git/skeud.git" +else + VERIFY_SIG_METHOD=signify + inherit verify-sig + + SRC_URI=" + https://distfiles.hacktivis.me/releases/${PN}/${P}.tar.gz + verify-sig? ( https://distfiles.hacktivis.me/releases/${PN}/${P}.tar.gz.sign ) + " + KEYWORDS="~amd64 ~arm64 ~riscv" +fi +LICENSE="MPL-2.0" +SLOT="0" +IUSE="static test" + +RESTRICT="!test? ( test )" + +DEPEND="virtual/libcrypt:=" +RDEPEND="${DEPEND}" +BDEPEND=" + test? ( + dev-libs/atf + dev-util/kyua + ) +" + +if [[ "${PV}" != 9999* ]] +then + BDEPEND="${BDEPEND} verify-sig? ( sec-keys/signify-keys-lanodan:2025 )" + VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/signify-keys-lanodan-2025.pub" + + src_unpack() { + if use verify-sig; then + # Too many levels of symbolic links workaround + cd "${WORKDIR}" || die + cp "${DISTDIR}/${P}.tar.gz" "${DISTDIR}/${P}.tar.gz.sign" "${WORKDIR}/" || die + verify-sig_verify_detached "${P}.tar.gz" "${P}.tar.gz.sign" + unpack "${WORKDIR}/${P}.tar.gz" + rm "${WORKDIR}/${P}.tar.gz" + else + default + fi + } +fi + +src_compile() { + use static && export LDSTATIC='-static' + default +} + +src_install() { + emake install DESTDIR="${D}" PREFIX='/opt/lanodan' SYS_BINDIR='/opt/lanodan/bin' + + # before 50baselayout + newenvd - 40skeud <<-EOF + PATH="/opt/lanodan/bin" + MANPATH="/opt/lanodan/share/man" + EOF +} diff --git a/sys-auth/skeud/skeud-9999.ebuild b/sys-auth/skeud/skeud-9999.ebuild @@ -1,21 +1,32 @@ -# Copyright 2021-2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Copyright 2021-2025 Haelwenn (lanodan) Monnier <contact@hacktivis.me> # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit git-r3 DESCRIPTION="Simple and portable utilities to deal with user accounts (su, login)" HOMEPAGE="https://hacktivis.me/git/skeud" -EGIT_REPO_URI="https://anongit.hacktivis.me/git/skeud.git" +if [[ "${PV}" = *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://anongit.hacktivis.me/git/skeud.git" +else + VERIFY_SIG_METHOD=signify + inherit verify-sig + + SRC_URI=" + https://distfiles.hacktivis.me/releases/${PN}/${P}.tar.gz + verify-sig? ( https://distfiles.hacktivis.me/releases/${PN}/${P}.tar.gz.sign ) + " + KEYWORDS="~amd64 ~arm64 ~riscv" +fi LICENSE="MPL-2.0" SLOT="0" -IUSE="test" +IUSE="static test" RESTRICT="!test? ( test )" -RDEPEND="virtual/libcrypt:=" -DEPEND="${RDEPEND}" +DEPEND="virtual/libcrypt:=" +RDEPEND="${DEPEND}" BDEPEND=" test? ( dev-libs/atf @@ -23,6 +34,30 @@ BDEPEND=" ) " +if [[ "${PV}" != 9999* ]] +then + BDEPEND="${BDEPEND} verify-sig? ( sec-keys/signify-keys-lanodan:2025 )" + VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/signify-keys-lanodan-2025.pub" + + src_unpack() { + if use verify-sig; then + # Too many levels of symbolic links workaround + cd "${WORKDIR}" || die + cp "${DISTDIR}/${P}.tar.gz" "${DISTDIR}/${P}.tar.gz.sign" "${WORKDIR}/" || die + verify-sig_verify_detached "${P}.tar.gz" "${P}.tar.gz.sign" + unpack "${WORKDIR}/${P}.tar.gz" + rm "${WORKDIR}/${P}.tar.gz" + else + default + fi + } +fi + +src_compile() { + use static && export LDSTATIC='-static' + default +} + src_install() { emake install DESTDIR="${D}" PREFIX='/opt/lanodan' SYS_BINDIR='/opt/lanodan/bin'