From ead5ab0eae9e2149ab271315b22d053195b267aa Mon Sep 17 00:00:00 2001 From: Lon Willett Date: Sat, 9 Sep 2017 22:43:25 +0200 Subject: [PATCH] rng-tools: update to version 6 Note that this update required a minor patch for compilation with musl, and that the upstream location has moved. Also note the command line options for rngd have changed. --- srcpkgs/rng-tools/INSTALL.msg | 2 ++ .../patches/musl-needs-limits_h-include.patch | 12 ++++++++++++ srcpkgs/rng-tools/template | 18 ++++++++++++------ 3 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 srcpkgs/rng-tools/INSTALL.msg create mode 100644 srcpkgs/rng-tools/patches/musl-needs-limits_h-include.patch diff --git a/srcpkgs/rng-tools/INSTALL.msg b/srcpkgs/rng-tools/INSTALL.msg new file mode 100644 index 00000000000..c06e0e0bf4b --- /dev/null +++ b/srcpkgs/rng-tools/INSTALL.msg @@ -0,0 +1,2 @@ +Note that version 6 of rng-tools has modified the rngd options, so if +you have a custom /etc/sv/rngd/conf file, then it may need to be changed. diff --git a/srcpkgs/rng-tools/patches/musl-needs-limits_h-include.patch b/srcpkgs/rng-tools/patches/musl-needs-limits_h-include.patch new file mode 100644 index 00000000000..5a1d9005357 --- /dev/null +++ b/srcpkgs/rng-tools/patches/musl-needs-limits_h-include.patch @@ -0,0 +1,12 @@ +See https://github.com/nhorman/rng-tools/issues/11 + +--- rngd.c 2017-09-09 21:28:33.134525565 +0200 ++++ rngd.c 2017-09-09 21:34:36.535633815 +0200 +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/srcpkgs/rng-tools/template b/srcpkgs/rng-tools/template index d5a1a68eb29..d104496dd2d 100644 --- a/srcpkgs/rng-tools/template +++ b/srcpkgs/rng-tools/template @@ -1,15 +1,17 @@ # Template file for 'rng-tools' pkgname=rng-tools -version=5 -revision=5 +version=6 +revision=1 +wrksrc=rng-tools-${pkgname}-${version} build_style=gnu-configure -makedepends="libgcrypt-devel" +makedepends="libgcrypt-devel libsysfs-devel" +hostmakedepends="automake" short_desc="Random number generator related utilities" maintainer="Andrea Brancaleoni " license="GPL-3" -homepage="http://sourceforge.net/projects/gkernel" -distfiles="${SOURCEFORGE_SITE}/gkernel/${pkgname}-${version}.tar.gz" -checksum=60a102b6603bbcce2da341470cad42eeaa9564a16b4490e7867026ca11a3078e +homepage="https://github.com/nhorman/rng-tools/releases" +distfiles="https://github.com/nhorman/rng-tools/archive/${pkgname}-${version}.tar.gz" +checksum=6d9c3f72824d1ea15dd2a80bfcf71f6a73c8843c6344f7f774a97a4ca7641b4c configure_args="--sbindir=/usr/bin" case "$XBPS_TARGET_MACHINE" in @@ -17,6 +19,10 @@ case "$XBPS_TARGET_MACHINE" in ;; esac +pre_configure() { + sh autogen.sh +} + do_build() { case "$XBPS_TARGET_MACHINE" in *-musl)