2019-12-07 18:10:14 +01:00
|
|
|
# Copyright 2019 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit eutils user
|
|
|
|
|
2019-12-14 16:37:44 +01:00
|
|
|
VERSION="VERSION_${PV//./_}"
|
2019-12-12 19:19:40 +01:00
|
|
|
|
2019-12-07 18:10:14 +01:00
|
|
|
DESCRIPTION="RPKI client implementation"
|
|
|
|
HOMEPAGE="https://github.com/kristapsdz/rpki-client"
|
2019-12-12 19:19:40 +01:00
|
|
|
SRC_URI="https://github.com/kristapsdz/${PN}/archive/${VERSION}.tar.gz -> ${P}.tar.gz"
|
2019-12-07 18:10:14 +01:00
|
|
|
|
|
|
|
LICENSE="ISC"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
BDEPEND=""
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
./configure CPPFLAGS="`pkg-config --cflags openssl`" \
|
|
|
|
LDFLAGS="`pkg-config --libs-only-L openssl`"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
2019-12-12 19:19:40 +01:00
|
|
|
mv ${WORKDIR}/${PN}-${VERSION} ${S}
|
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
2019-12-07 18:10:14 +01:00
|
|
|
eapply -p0 "${FILESDIR}/${P}-Makefile.patch"
|
2019-12-12 19:19:40 +01:00
|
|
|
eapply_user
|
2019-12-07 18:10:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
enewgroup _rpki-client
|
|
|
|
enewuser _rpki-client
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" BINDIR="/usr/bin" MANDIR="/usr/share/man" install
|
2019-12-12 19:19:40 +01:00
|
|
|
insinto /usr/share/${PN}
|
|
|
|
doins tals/*
|
2019-12-14 16:37:44 +01:00
|
|
|
keepdir /var/cache/${PN}/
|
2019-12-12 19:19:40 +01:00
|
|
|
fowners -R _rpki-client /var/cache/${PN}/
|
2019-12-07 18:10:14 +01:00
|
|
|
}
|