summaryrefslogtreecommitdiff
path: root/security/prngd
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-12-08 17:46:16 +0000
committerjoerg <joerg@pkgsrc.org>2005-12-08 17:46:16 +0000
commita0b5618c74c5ead5b5dc00f894b5d73e638ecca9 (patch)
treece89dff84727b1bbdcdcae4960bf163ed2667923 /security/prngd
parent82b7232a7020220bd15a4341ac8e002ee1cd9f8a (diff)
downloadpkgsrc-a0b5618c74c5ead5b5dc00f894b5d73e638ecca9.tar.gz
Use FreeBSD config.h fragment on FreeBSD and DragonFly.
Diffstat (limited to 'security/prngd')
-rw-r--r--security/prngd/distinfo3
-rw-r--r--security/prngd/patches/patch-aa28
2 files changed, 30 insertions, 1 deletions
diff --git a/security/prngd/distinfo b/security/prngd/distinfo
index f8c7d362c62..135fc719a71 100644
--- a/security/prngd/distinfo
+++ b/security/prngd/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 13:10:12 agc Exp $
+$NetBSD: distinfo,v 1.3 2005/12/08 17:46:16 joerg Exp $
SHA1 (prngd-0.9.29.tar.gz) = 72e82928b99a94e11fe379159d5fe3a5ddab4112
RMD160 (prngd-0.9.29.tar.gz) = 08a61c80ce18782e5accd5e7e7b7fd6482120eab
Size (prngd-0.9.29.tar.gz) = 76392 bytes
+SHA1 (patch-aa) = af3891375f135a69d3da14e6095d68d6554e83d8
diff --git a/security/prngd/patches/patch-aa b/security/prngd/patches/patch-aa
new file mode 100644
index 00000000000..52870bc2e6a
--- /dev/null
+++ b/security/prngd/patches/patch-aa
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.1 2005/12/08 17:46:16 joerg Exp $
+
+--- config.h.orig 2005-12-08 17:41:53.000000000 +0000
++++ config.h
+@@ -169,12 +169,13 @@ int getrusage(int who, struct rusage *ru
+ #define PATH_SYSLOG "/private/var/log/system.log"
+ #endif
+
+-#ifdef FREEBSD
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ #define HAVE_GETRUSAGE
+ /* not yet supported */
+ #define O_RSYNC 0
+ #ifndef O_SYNC
+ #define O_SYNC O_FSYNC
++#endif
+ #define PATH_TMP "/tmp"
+ #define PATH_VAR_TMP "/var/tmp"
+ #define PATH_PASSWD "/etc/passwd"
+@@ -183,8 +184,6 @@ int getrusage(int who, struct rusage *ru
+ #define PATH_SYSLOG "/var/log/messages"
+ #endif
+
+-#endif
+-
+ #ifdef NEXTSTEP
+ #define HAVE_GETRUSAGE
+ /* not supported */