mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
@@ -1 +1,2 @@
|
||||
DIST haveged-1.9.21.tar.gz 517051 BLAKE2B da2120d82eb4d46c60cb9383084d09360bdb3f5e65ff3bb94a77e26bb545d3d22bc9630d464823769cfd1227acb4c11f2129fd763e5fe480015dd573a80e4687 SHA512 6c8f746fa71a0eefcf8e14711cb038891041fb3e313e9d8e51184f18c731fef0f126696dc981212e0cadecb89f026c121b4d8feb188870a336404362adf2b726
|
||||
DIST haveged-1.9.26.tar.gz 521215 BLAKE2B a92d5db92c3196e6f4eeec3b619e5d4797dd9989a202eb94942f39c1a0d710a7e43f41bc10a5a86b17ae2543a1d46c6fdabfd9bf063351d05e7a67e729657f56 SHA512 72e1d0499e0fdaa61811418b67342a4da3ba7e5a8d122b15e78b5514016d89034c9ca159f1f6f69a07ea8879c5491f789130f41600a3a0fb924e896e7ec57992
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit systemd
|
||||
|
||||
DESCRIPTION="A simple entropy daemon using the HAVEGE algorithm"
|
||||
HOMEPAGE="https://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"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~x86"
|
||||
IUSE="selinux static-libs threads"
|
||||
|
||||
RDEPEND="
|
||||
!<sys-apps/openrc-0.11.8
|
||||
selinux? ( sec-policy/selinux-entropyd )
|
||||
"
|
||||
|
||||
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
|
||||
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
}
|
||||
Reference in New Issue
Block a user