mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
app-misc/infnoise: new package, add 0.3.3
Signed-off-by: Milan Bartos <gentoo@bartos.fi>
This commit is contained in:
1
app-misc/infnoise/Manifest
Normal file
1
app-misc/infnoise/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST infnoise-0.3.3.tar.gz 25531663 BLAKE2B f0d72df3dfd53f1f13f4a5c3f96cb911f4dad6268e3c6faf7772294019ab9f959edcbe2d30be387afdc41087e83a201df5aa8c6d0558c8d75dbd8a8f08c530a1 SHA512 dd3cdaa122c494b6fd26439c490dca47e431926ea52b5d2b302d345fb53fce5ed4ea4d54b4b8b0487b244e6673cbd22cafaa9b37b97733b90b86b8aa949fa6d3
|
||||
9
app-misc/infnoise/files/infnoise.initd
Normal file
9
app-misc/infnoise/files/infnoise.initd
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
description="infinite noise TRNG program daemon"
|
||||
pidfile="/run/infnoise.pid"
|
||||
command="/sbin/infnoise"
|
||||
command_args="-R -d -p /run/infnoise.pid"
|
||||
supervisor="supervise-daemon"
|
||||
|
||||
|
||||
53
app-misc/infnoise/infnoise-0.3.3.ebuild
Normal file
53
app-misc/infnoise/infnoise-0.3.3.ebuild
Normal file
@@ -0,0 +1,53 @@
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="infinite noise TRNG program"
|
||||
HOMEPAGE="https://github.com/leetronics/infnoise"
|
||||
SRC_URI="https://github.com/leetronics/infnoise/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="CC0-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="dev-embedded/libftdi"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
inherit udev
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i 's|PREFIX = $(DESTDIR)/usr/local|PREFIX=${DESTDIR}|' "${S}/software/Makefile.linux"
|
||||
sed -i '/^GIT_/d' "${S}/software/Makefile.linux"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local ftdi_cflags
|
||||
local ftdi_ldflags
|
||||
|
||||
ftdi_cflags=$(pkg-config --cflags libftdi1)
|
||||
ftdi_ldflags=$(pkg-config --libs libftdi1)
|
||||
|
||||
origCFLAGS="-fPIC -std=c99 -DLINUX -I Keccak -DGIT_VERSION=\\\"\\\" -DGIT_COMMIT=\\\"\\\" -DGIT_DATE=\\\"\\\""
|
||||
|
||||
cd "${S}"/software
|
||||
emake -f Makefile.linux CFLAGS="${CFLAGS} ${origCFLAGS} ${ftdi_cflags}" LDFLAGS="${LDFLAGS}\
|
||||
${ftdi_ldflags}" -j$(nproc)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newinitd "${FILESDIR}"/infnoise.initd infnoise
|
||||
|
||||
cd "${S}"/software
|
||||
export DESTDIR="${D}"
|
||||
emake -f Makefile.linux install DESTDIR="${D}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
}
|
||||
11
app-misc/infnoise/metadata.xml
Normal file
11
app-misc/infnoise/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>Milan Bartos</name>
|
||||
<email>gentoo@bartos.fi</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">leetronics/infnoise</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user