SwordArMor-gentoo-overlay/net-misc/FORT-validator/FORT-validator-1.1.3.ebuild

55 lines
1,019 B
Bash
Raw Normal View History

2020-02-16 22:38:09 +01:00
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools fcaps
2020-02-16 22:38:09 +01:00
DESCRIPTION="FORT validator is an open source RPKI validator."
HOMEPAGE="https://fortproject.net/validator?2"
SRC_URI="https://github.com/NICMx/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
MY_PN="fort"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="caps libressl"
DEPEND="
acct-group/fort
acct-user/fort
2020-02-16 22:38:09 +01:00
caps? ( sys-libs/libcap )
dev-libs/jansson
libressl? ( dev-libs/libressl:0= )
!libressl? ( dev-libs/openssl:0= )
2020-02-16 22:38:09 +01:00
net-misc/rsync
"
RDEPEND="${DEPEND}"
BDEPEND="
sys-devel/autoconf
sys-devel/automake
"
src_prepare() {
default
2020-02-16 22:38:09 +01:00
eautoreconf
}
src_install() {
newinitd "${FILESDIR}/${MY_PN}-initd" ${MY_PN}
newconfd "${FILESDIR}/${MY_PN}-confd" ${MY_PN}
emake DESTDIR="${D}" install
insinto /usr/share/${MY_PN}/tal
doins tal/*
insinto /etc/fort
newins "${FILESDIR}/fort-config.json" config.json
2020-02-16 22:38:09 +01:00
}
pkg_postinst() {
fcaps cap_net_bind_service usr/bin/fort
}