diff --git a/sys-apps/clrngd/clrngd-1.0.3-r3.ebuild b/sys-apps/clrngd/clrngd-1.0.3-r3.ebuild new file mode 100644 index 0000000000000..2ef253f34cf26 --- /dev/null +++ b/sys-apps/clrngd/clrngd-1.0.3-r3.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Clock randomness gathering daemon" +HOMEPAGE="http://echelon.pl/pubs/" +SRC_URI="http://echelon.pl/pubs/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}"/${PN}-1.0.3-implicit-func-declaration.patch + "${FILESDIR}"/${P}-sighandler.patch +) + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + econf --bindir="${EPREFIX}"/usr/sbin +} + +src_install() { + default + + newinitd "${FILESDIR}"/${PN}-init.d-r2 ${PN} + newconfd "${FILESDIR}"/${PN}-conf.d ${PN} +} diff --git a/sys-apps/clrngd/files/clrngd-1.0.3-sighandler.patch b/sys-apps/clrngd/files/clrngd-1.0.3-sighandler.patch new file mode 100644 index 0000000000000..b215b5a54e6e9 --- /dev/null +++ b/sys-apps/clrngd/files/clrngd-1.0.3-sighandler.patch @@ -0,0 +1,14 @@ +https://bugs.gentoo.org/944035 +It is correct to replace no-argument non-variadic function +with ignored argument, so it matches prototype. +--- a/truerand.c ++++ b/truerand.c +@@ -143,7 +143,7 @@ + bufflen truly random bytes. It returns 0 on success and -1 + on failure. */ + static void +-interrupt () ++interrupt (int) + { + gQuit = 1; + }