summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2014-09-21 00:09:24 +0000
committerdholland <dholland@pkgsrc.org>2014-09-21 00:09:24 +0000
commitbe9a8fa9cb7796fff69e11721cae76e5a8120a29 (patch)
tree679965058b9389562fe67dd3811eed57444ff58f /mail
parentb37319c668cd58fc76cef6ae3f2b4c50a7471de0 (diff)
downloadpkgsrc-be9a8fa9cb7796fff69e11721cae76e5a8120a29.tar.gz
The configure script checks for arc4random(), but the program uses
arc4random_buf(); netbsd-5 (and presumably earlier) has the one but not the other. Just disable it, because all it's using the randomness for is message-ids. Fixes the netbsd-5 build.
Diffstat (limited to 'mail')
-rw-r--r--mail/nmh/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/mail/nmh/Makefile b/mail/nmh/Makefile
index 387d2b77c24..ea798b30894 100644
--- a/mail/nmh/Makefile
+++ b/mail/nmh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.85 2014/09/20 23:15:03 dholland Exp $
+# $NetBSD: Makefile,v 1.86 2014/09/21 00:09:24 dholland Exp $
DISTNAME= nmh-1.6
CATEGORIES= mail
@@ -77,6 +77,14 @@ CONF_FILES= # empty
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor
+# The configure script checks for arc4random(), but the program uses
+# arc4random_buf(); netbsd-5 (and presumably earlier) has the one but
+# not the other. Just disable it, because all it's using the
+# randomness for is message-ids.
+.if !empty(MACHINE_PLATFORM:MNetBSD-[1-5].*-*)
+CONFIGURE_ENV+= ac_cv_func_arc4random=no
+.endif
+
post-install:
${INSTALL_DATA} ${FILESDIR}/mhn.defaults.dist \
${DESTDIR}${EGDIR}/mhn.defaults