PORTNAME= htmldoc
PORTVERSION= 1.8.28
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= textproc
MASTER_SITES= https://github.com/michaelrsweet/htmldoc/releases/download/release-${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
* it is the best we can do (on others, this seed isn't even used...)
*/
+#define CUPS_RAND() arc4random()
+#define CUPS_SRAND(v) arc4random_stir()
+#define CUPS_SRAND(v)
CUPS_SRAND(time(NULL));
PORTNAME= ${SAMBA4_BASENAME}48
PORTVERSION= ${SAMBA4_VERSION}
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES?= net
MASTER_SITES= SAMBA/samba/stable SAMBA/samba/rc
DISTNAME= ${SAMBA4_DISTNAME}
--- source4/heimdal/lib/roken/rand.c.orig 2018-01-14 12:41:58.000000000 -0800
+++ source4/heimdal/lib/roken/rand.c 2018-08-22 22:11:26.937151714 -0700
@@ -37,7 +37,6 @@
rk_random_init(void)
{
#if defined(HAVE_ARC4RANDOM)
- arc4random_stir();
#elif defined(HAVE_SRANDOMDEV)
srandomdev();
#elif defined(HAVE_RANDOM)
PORTNAME= heimdal
PORTVERSION= 7.5.0
CATEGORIES= security ipv6
MASTER_SITES= https://github.com/heimdal/heimdal/releases/download/${DISTNAME}/
--- lib/roken/rand.c.orig 2016-12-20 14:23:06 UTC
+++ lib/roken/rand.c
@@ -42,7 +42,6 @@ void ROKEN_LIB_FUNCTION
PORTNAME= exim
PORTVERSION?= ${EXIM_VERSION}
PORTREVISION= 2
CATEGORIES= mail ipv6
MASTER_SITES= EXIM:exim
MASTER_SITE_SUBDIR= /exim4/:exim \
--- OS/os.h-FreeBSD.orig 2018-04-14 23:18:10 UTC
+++ OS/os.h-FreeBSD
@@ -12,6 +12,14 @@
#define SIOCGIFCONF_GIVES_ADDR
#define HAVE_SRANDOMDEV
#define HAVE_ARC4RANDOM
+/* Applications should not call arc4random_stir() explicitly after
+ FreeBSD r227520 (approximately 1000002).
+ Set NOT_HAVE_ARC4RANDOM_STIR if the version released is past
+ that point. */
+#include <sys/param.h>
+#if __FreeBSD_version >= 1000002
+# define NOT_HAVE_ARC4RANDOM_STIR
+#endif
typedef struct flock flock_t;
PORTNAME= nsupdate
PORTVERSION= 9.8.6
CATEGORIES= dns net ipv6
MASTER_SITES= ISC/bind9/${ISCVERSION}
PKGNAMEPREFIX= samba-
--- lib/isc/random.c.orig 2013-09-05 05:19:53 UTC
+++ lib/isc/random.c
@@ -68,7 +68,9 @@ isc_random_seed(isc_uint32_t seed)
#ifndef HAVE_ARC4RANDOM
srand(seed);
#else
+#ifdef arc4random_addrandom
arc4random_addrandom((u_char *) &seed, sizeof(isc_uint32_t));
#endif
}
PORTNAME= gtk-gnutella
PORTVERSION= 1.1.13
CATEGORIES= net-p2p ipv6
MASTER_SITES= SF
--- src/lib/arc4random.c.orig 2017-10-22 16:12:09 UTC
+++ src/lib/arc4random.c
@@ -298,9 +298,11 @@ arc4random64(void)
void G_COLD
arc4random_stir_once(void)
+#ifdef arc4random_stir
static once_flag_t done;
once_flag_run(&done, arc4random_stir);
/***
PORTNAME= relayd
PORTVERSION= 5.5.20140810
CATEGORIES= net
MAINTAINER= mm@FreeBSD.org
--- relayd/relayd.c.orig 2014-08-10 20:08:47 UTC
+++ relayd/relayd.c
@@ -241,8 +241,7 @@ main(int argc, char *argv[])
log_info("startup");
#ifdef __FreeBSD__
-#if __FreeBSD_version > 800040
+#if __FreeBSD_version > 1000002
arc4random_buf(rnd, sizeof(rnd));
RAND_seed(rnd, sizeof(rnd));