diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
commit | 623ee73d661e5ed8475cb264511f683407d87365 (patch) | |
tree | 993eb27c93ec7a2d2d19550300d888fc1fed9e69 /sys-apps/haveged/haveged-1.9.8.ebuild | |
parent | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff) |
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'sys-apps/haveged/haveged-1.9.8.ebuild')
-rw-r--r-- | sys-apps/haveged/haveged-1.9.8.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sys-apps/haveged/haveged-1.9.8.ebuild b/sys-apps/haveged/haveged-1.9.8.ebuild new file mode 100644 index 000000000000..c792e4bd61fa --- /dev/null +++ b/sys-apps/haveged/haveged-1.9.8.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2020 Gentoo Authors +# 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" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +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 +} |