You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
48 lines
1.0 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
inherit systemd
|
||
|
|
||
|
DESCRIPTION="A simple entropy daemon using the HAVEGE algorithm"
|
||
|
HOMEPAGE="http://www.issihosts.com/haveged/"
|
||
|
SRC_URI="https://github.com/jirka-h/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-3+"
|
||
|
SLOT="0"
|
||
4 years ago
|
KEYWORDS="amd64 arm ~arm64 ~hppa ~ppc ~ppc64 x86"
|
||
5 years ago
|
IUSE="selinux static-libs threads"
|
||
|
|
||
|
RDEPEND="
|
||
|
!<sys-apps/openrc-0.11.8
|
||
|
selinux? ( sec-policy/selinux-entropyd )
|
||
|
"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}/${PN}-1.9.8c-threads_build_fix.patch"
|
||
|
)
|
||
|
|
||
|
src_configure() {
|
||
|
local myeconfargs=(
|
||
|
$(use_enable static-libs static)
|
||
|
$(use_enable threads)
|
||
|
--bindir=/usr/sbin
|
||
|
--enable-nistest
|
||
|
)
|
||
|
econf "${myeconfargs[@]}"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
|
# Install gentoo ones instead
|
||
|
newinitd "${FILESDIR}"/haveged-init.d.3 haveged
|
||
|
newconfd "${FILESDIR}"/haveged-conf.d haveged
|
||
|
|
||
|
systemd_newunit "${FILESDIR}"/service.gentoo ${PN}.service
|
||
|
insinto /etc
|
||
|
doins "${FILESDIR}"/haveged.conf
|
||
3 years ago
|
|
||
|
find "${ED}" -type f -name "*.la" -delete || die
|
||
5 years ago
|
}
|