50 lines
1 KiB
Bash
50 lines
1 KiB
Bash
# Copyright 2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit eutils user
|
|
|
|
VERSION="VERSION_$(echo ${PV} | sed 's/\./_/g')"
|
|
|
|
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=""
|
|
|
|
DEPEND=""
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND=""
|
|
|
|
src_configure() {
|
|
./configure CPPFLAGS="`pkg-config --cflags openssl`" \
|
|
LDFLAGS="`pkg-config --libs-only-L openssl`"
|
|
}
|
|
|
|
src_unpack() {
|
|
unpack ${A}
|
|
mv ${WORKDIR}/${PN}-${VERSION} ${S}
|
|
}
|
|
|
|
src_prepare() {
|
|
eapply -p0 "${FILESDIR}/${P}-Makefile.patch"
|
|
eapply_user
|
|
}
|
|
|
|
pkg_setup() {
|
|
enewgroup _rpki-client
|
|
enewuser _rpki-client
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" BINDIR="/usr/bin" MANDIR="/usr/share/man" install
|
|
insinto /usr/share/${PN}
|
|
doins tals/*
|
|
keepdir /var/cache/${PN}/{rpki.afrinic.net,rpki.apnic.net,repository.lacnic.net,rpki.ripe.net}
|
|
fowners -R _rpki-client /var/cache/${PN}/
|
|
}
|