net-misc/FORT-validator: Backporting ::guru ebuild improvements
Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
parent
fcf5470f8c
commit
f950785fce
|
@ -5,12 +5,12 @@ EAPI=7
|
||||||
|
|
||||||
inherit autotools fcaps systemd
|
inherit autotools fcaps systemd
|
||||||
|
|
||||||
|
MY_PN="fort"
|
||||||
|
|
||||||
DESCRIPTION="FORT validator is an open source RPKI validator"
|
DESCRIPTION="FORT validator is an open source RPKI validator"
|
||||||
HOMEPAGE="https://fortproject.net/validator?2"
|
HOMEPAGE="https://fortproject.net/validator?2"
|
||||||
SRC_URI="https://github.com/NICMx/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/NICMx/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
MY_PN="fort"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64 ~x86"
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
@ -33,11 +33,12 @@ BDEPEND="
|
||||||
sys-devel/automake
|
sys-devel/automake
|
||||||
"
|
"
|
||||||
|
|
||||||
PATCHES="${FILESDIR}/${PN}-skip-online-test.patch"
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
|
# Don't strip CFLAGS
|
||||||
|
sed -i 's/fort_CFLAGS =/fort_CFLAGS = ${CFLAGS} /' src/Makefile.am || die
|
||||||
|
# Don't test network
|
||||||
|
sed -i '/http/d' test/Makefile.am || die
|
||||||
eautoreconf
|
eautoreconf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +46,7 @@ src_install() {
|
||||||
newinitd "${FILESDIR}/${MY_PN}-1.4-initd" ${MY_PN}
|
newinitd "${FILESDIR}/${MY_PN}-1.4-initd" ${MY_PN}
|
||||||
newconfd "${FILESDIR}/${MY_PN}-1.4-confd" ${MY_PN}
|
newconfd "${FILESDIR}/${MY_PN}-1.4-confd" ${MY_PN}
|
||||||
|
|
||||||
emake DESTDIR="${D}" install
|
emake DESTDIR="${ED}" install
|
||||||
insinto /usr/share/${MY_PN}/
|
insinto /usr/share/${MY_PN}/
|
||||||
insopts -m0644 -o "${MY_PN}"
|
insopts -m0644 -o "${MY_PN}"
|
||||||
diropts -m0755 -o "${MY_PN}"
|
diropts -m0755 -o "${MY_PN}"
|
||||||
|
|
|
@ -5,12 +5,12 @@ EAPI=7
|
||||||
|
|
||||||
inherit autotools fcaps systemd
|
inherit autotools fcaps systemd
|
||||||
|
|
||||||
|
MY_PN="fort"
|
||||||
|
|
||||||
DESCRIPTION="FORT validator is an open source RPKI validator"
|
DESCRIPTION="FORT validator is an open source RPKI validator"
|
||||||
HOMEPAGE="https://fortproject.net/validator?2"
|
HOMEPAGE="https://fortproject.net/validator?2"
|
||||||
SRC_URI="https://github.com/NICMx/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/NICMx/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
MY_PN="fort"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64 ~x86"
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
@ -33,11 +33,12 @@ BDEPEND="
|
||||||
sys-devel/automake
|
sys-devel/automake
|
||||||
"
|
"
|
||||||
|
|
||||||
PATCHES="${FILESDIR}/${PN}-skip-online-test.patch"
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
|
# Don't strip CFLAGS
|
||||||
|
sed -i 's/fort_CFLAGS =/fort_CFLAGS = ${CFLAGS} /' src/Makefile.am || die
|
||||||
|
# Don't test network
|
||||||
|
sed -i '/http/d' test/Makefile.am || die
|
||||||
eautoreconf
|
eautoreconf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +46,7 @@ src_install() {
|
||||||
newinitd "${FILESDIR}/${MY_PN}-1.5-initd" ${MY_PN}
|
newinitd "${FILESDIR}/${MY_PN}-1.5-initd" ${MY_PN}
|
||||||
newconfd "${FILESDIR}/${MY_PN}-1.5-confd" ${MY_PN}
|
newconfd "${FILESDIR}/${MY_PN}-1.5-confd" ${MY_PN}
|
||||||
|
|
||||||
emake DESTDIR="${D}" install
|
emake DESTDIR="${ED}" install
|
||||||
insinto /usr/share/${MY_PN}/
|
insinto /usr/share/${MY_PN}/
|
||||||
insopts -m0644 -o "${MY_PN}"
|
insopts -m0644 -o "${MY_PN}"
|
||||||
diropts -m0755 -o "${MY_PN}"
|
diropts -m0755 -o "${MY_PN}"
|
||||||
|
|
Loading…
Reference in a new issue