SwordArMor-gentoo-overlay/net-misc/rpki-client/rpki-client-7.0.ebuild
Alarig Le Lay 80dc55780c
net-misc/rpki-client: New versions
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr
2021-05-06 15:04:09 +02:00

45 lines
869 B
Bash

# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PV="${PV/_p/p}"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="Portability shim for OpenBSD's rpki-client"
HOMEPAGE="https://rpki-client.org/"
SRC_URI="mirror://openbsd/${PN}/${PN}-${MY_PV}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="
acct-group/_rpki-client
acct-user/_rpki-client
dev-libs/libretls
"
RDEPEND="${DEPEND}"
BDEPEND="
sys-devel/libtool
"
S="${WORKDIR}/${MY_P}"
src_configure() {
local myeconfargs=(
--with-rsync=rsync
--with-base-dir="/var/cache/${PN}"
--with-output-dir="/var/db/${PN}"
)
econf "${myeconfargs[@]}"
}
src_install() {
emake DESTDIR="${D}" BINDIR="/usr/bin" MANDIR="/usr/share/man" install
insinto /etc/rpki
doins *.tal
keepdir "/var/db/${PN}/"
fowners -R _rpki-client "/var/db/${PN}/"
}