pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/stund



Module Name:    pkgsrc
Committed By:   jmcneill
Date:           Wed Dec  6 15:43:48 UTC 2017

Modified Files:
        pkgsrc/net/stund: distinfo
Added Files:
        pkgsrc/net/stund/patches: patch-stun.cxx

Log Message:
Fix build on NetBSD


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/net/stund/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/stund/patches/patch-stun.cxx

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/stund/distinfo
diff -u pkgsrc/net/stund/distinfo:1.1 pkgsrc/net/stund/distinfo:1.2
--- pkgsrc/net/stund/distinfo:1.1       Mon Dec  4 23:59:20 2017
+++ pkgsrc/net/stund/distinfo   Wed Dec  6 15:43:48 2017
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1 2017/12/04 23:59:20 jmcneill Exp $
+$NetBSD: distinfo,v 1.2 2017/12/06 15:43:48 jmcneill Exp $
 
 SHA1 (stund-0.97.tgz) = 49bc35790e4b3facbb31ebcc1f1f8277a999fb0c
 RMD160 (stund-0.97.tgz) = 06672b39bb3fcac1c136a3496b875f05deafc647
 SHA512 (stund-0.97.tgz) = 8f32d4fadf7264967a8cdabf410b9cd495e1f4dc6198d5efe07559996697db088a8a6b1b5fd0814c1a04fe8c17c866256d6a59b719a153fd23c26939d3c6bc1a
 Size (stund-0.97.tgz) = 169558 bytes
+SHA1 (patch-stun.cxx) = 11fd1b3dc949cee1cd7c9192fb48b1b1020dcd6b
 SHA1 (patch-udp.h) = 0bc0c4254596fc9018f5bdc4d5dd96d6000bcbb6

Added files:

Index: pkgsrc/net/stund/patches/patch-stun.cxx
diff -u /dev/null pkgsrc/net/stund/patches/patch-stun.cxx:1.1
--- /dev/null   Wed Dec  6 15:43:48 2017
+++ pkgsrc/net/stund/patches/patch-stun.cxx     Wed Dec  6 15:43:48 2017
@@ -0,0 +1,19 @@
+$NetBSD: patch-stun.cxx,v 1.1 2017/12/06 15:43:48 jmcneill Exp $
+
+--- stun.cxx.orig      2012-01-26 11:02:46.000000000 +0000
++++ stun.cxx
+@@ -673,12 +673,10 @@ stunRand()
+       asm("rdtsc" : "=A" (tick));
+ #elif defined (__SUNPRO_CC) || defined( __sparc__ )   
+       tick = gethrtime();
+-#elif defined(__MACH__)  || defined(__linux)
+-      int fd=open("/dev/random",O_RDONLY);
++#else
++      int fd=open("/dev/urandom",O_RDONLY);
+       read(fd,&tick,sizeof(tick));
+       closesocket(fd);
+-#else
+-#     error Need some way to seed the random number generator 
+ #endif 
+       int seed = int(tick);
+ #ifdef WIN32



Home | Main Index | Thread Index | Old Index