2020-02-19 20:00:53 +01:00
|
|
|
# Copyright 2020 Gentoo Authors
|
2019-12-31 13:22:48 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2020-02-19 20:00:53 +01:00
|
|
|
inherit eutils
|
2019-12-31 13:22:48 +01:00
|
|
|
|
|
|
|
VERSION="VERSION_${PV//./_}"
|
|
|
|
|
|
|
|
DESCRIPTION="RPKI client implementation"
|
|
|
|
HOMEPAGE="https://github.com/kristapsdz/rpki-client"
|
|
|
|
SRC_URI="https://github.com/kristapsdz/${PN}/archive/${VERSION}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="ISC"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE=""
|
|
|
|
|
2020-02-19 20:00:53 +01:00
|
|
|
DEPEND="
|
|
|
|
acct-group/_rpki-client
|
|
|
|
acct-user/_rpki-client
|
|
|
|
"
|
2019-12-31 13:22:48 +01:00
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
BDEPEND=""
|
|
|
|
|
2020-05-06 22:53:14 +02:00
|
|
|
S="${WORKDIR}/${PN}-${VERSION}"
|
|
|
|
|
2019-12-31 13:22:48 +01:00
|
|
|
src_configure() {
|
|
|
|
./configure CPPFLAGS="`pkg-config --cflags openssl`" \
|
|
|
|
LDFLAGS="`pkg-config --libs-only-L openssl`" \
|
|
|
|
LDADD="`pkg-config --libs openssl` -lresolv"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" BINDIR="/usr/bin" MANDIR="/usr/share/man" install
|
|
|
|
insinto /usr/share/${PN}
|
|
|
|
doins tals/*
|
|
|
|
keepdir /var/cache/${PN}/
|
|
|
|
fowners -R _rpki-client /var/cache/${PN}/
|
|
|
|
}
|