2020-10-20 20:17:26 +02:00
|
|
|
# Copyright 2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
MY_PV="${PV/_p/p}"
|
2020-10-20 20:42:18 +02:00
|
|
|
MY_P="${PN}-${MY_PV}"
|
2020-10-20 20:17:26 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Portability shim for OpenBSD's rpki-client"
|
|
|
|
HOMEPAGE="https://rpki-client.org/"
|
2020-10-20 20:42:18 +02:00
|
|
|
SRC_URI="mirror://openbsd/${PN}/${PN}-${MY_PV}.tar.gz"
|
2020-10-20 20:17:26 +02:00
|
|
|
|
|
|
|
LICENSE="ISC"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
acct-group/_rpki-client
|
|
|
|
acct-user/_rpki-client
|
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
2020-10-20 20:42:18 +02:00
|
|
|
BDEPEND="
|
|
|
|
sys-devel/libtool
|
|
|
|
"
|
2020-10-20 20:17:26 +02:00
|
|
|
|
|
|
|
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}/"
|
|
|
|
}
|