dev-libs/x509cert - 0.5 (lanodanOverlay)

Search

Install

Install this version:

emerge -a =dev-libs/x509cert-0.5

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-libs/x509cert-0.5

Or alternatively:

emerge --autounmask-write -a =dev-libs/x509cert-0.5

Package Information

Description:
tool and library for generating X.509 certificates and certificate requests
Homepage:
https://sr.ht/~mcf/x509cert
License:
ISC

Ebuild Details

Version EAPI Keywords Slot
0.5 8 ~amd64 0
View Raw Ebuild
# Copyright 2024-2026 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="tool and library for generating X.509 certificates and certificate requests"
HOMEPAGE="https://sr.ht/~mcf/x509cert"
SRC_URI="https://git.sr.ht/~mcf/x509cert/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	>=dev-libs/bearssl-0.6_p20241009:=
"
DEPEND="${RDEPEND}"

src_configure() {
	tc-export CC AR PKG_CONFIG

	export CFLAGS="$CFLAGS $(${PKG_CONFIG} --cflags bearssl)" || die

	local ldlibs="$(${PKG_CONFIG} --libs bearssl)" || die
	cat >config.mk <<-EOF
	PREFIX=${EPREFIX}/usr
	LIBDIR=${EPREFIX}/usr/$(get_libdir)/

	LDLIBS=${ldlibs}
EOF
	[ 0 -eq $? ] || die

	sed -i \
		-e '/^Libs:/s,-lbearssl,,' \
		-e '$aRequires: bearssl' \
		x509cert.pc.in || die
}

Inherited Eclasses

Dependencies

DEPEND

	>=dev-libs/bearssl-0.6_p20241009:=

RDEPEND

	>=dev-libs/bearssl-0.6_p20241009:=

Manifest for 0.5

Type File Size Source URLs
DIST x509cert-0.5.tar.gz 15202 bytes https://git.sr.ht/~mcf/x509cert/archive/0.5.tar.gz