summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/prngd/DESCR6
-rw-r--r--security/prngd/MESSAGE28
-rw-r--r--security/prngd/Makefile44
-rw-r--r--security/prngd/PLIST9
-rw-r--r--security/prngd/distinfo4
5 files changed, 91 insertions, 0 deletions
diff --git a/security/prngd/DESCR b/security/prngd/DESCR
new file mode 100644
index 00000000000..ac19b93c211
--- /dev/null
+++ b/security/prngd/DESCR
@@ -0,0 +1,6 @@
+PRNGD is a Pseudo Random Number Generator Daemon. It is intended
+to replace EGD, and provides an EGD compatible interface to obtain
+random data and as an entropy source.
+
+PRNGD is never drained and can never block. And it has a seed-save
+file, so that it is immediately usable after system start.
diff --git a/security/prngd/MESSAGE b/security/prngd/MESSAGE
new file mode 100644
index 00000000000..c1c84b6374b
--- /dev/null
+++ b/security/prngd/MESSAGE
@@ -0,0 +1,28 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2004/07/15 23:10:35 recht Exp $
+
+- Edit the PRNGD configuration file ${PKG_SYSCONFDIR}/prngd.conf
+ (see ${PREFIX}/share/doc/prngd). An example conf file was installed in
+ ${PREFIX}/share/examples/prngd/prngd.conf.netbsd.
+
+-- Regarding entropy gathering commands in prngd.conf:
+
+The "rate" represents the number of bits of usuable entropy per byte of
+command output. Adjust the rates as you see fit, but be conservative.
+
+Depending on the usage of your system, some commands may not produce
+output that varies significantly over time. Keep in mind the usage of
+such commands will not produce considerably random data. Use commands
+whose output will gather decent entropy.
+
+- Add this example to /etc/rc.local for PRNGD to start on system boot:
+
+echo ''
+echo 'Starting PRNGD.'
+if [ -f /usr/pkg/bin/prngd ]; then
+ /usr/pkg/bin/prngd /var/run/egd-pool
+fi
+
+- Browse the manual, docs, and the PRNGD home page for more information.
+
+===========================================================================
diff --git a/security/prngd/Makefile b/security/prngd/Makefile
new file mode 100644
index 00000000000..108307229f0
--- /dev/null
+++ b/security/prngd/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/15 23:10:35 recht Exp $
+
+DISTNAME= prngd-0.9.29
+CATEGORIES= security
+MASTER_SITES= ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/related/prngd/ \
+ ftp://ftp.ayamura.org/pub/prngd/ \
+ ftp://ftp.win.ne.jp/pub/misc/prngd/ \
+ http://www.mirrors.wiretapped.net/security/cryptography/libraries/math/prng-and-entropy/prngd/ \
+ ftp://ftp.mirrors.wiretapped.net/pub/security/cryptography/libraries/math/prng-and-entropy/prngd/ \
+ http://planetmirror.com/pub/solaris-random/prngd/ \
+ ftp://planetmirror.com/pub/solaris-random/prngd/
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.aet.tu-cottbus.de/personen/jaenicke/postfix_tls/prngd.html
+COMMENT= Pseudo Random Number Generator Daemon
+
+MAKE_ENV+= DEFS="-DRANDSAVENAME=\\\"${VARBASE}/db/prngd-seed\\\" -DCONFIGFILE=\\\"${PKG_SYSCONFDIR}/prngd.conf\\\""
+
+EGDIR= ${PREFIX}/share/examples/prngd
+CONF_FILES= ${EGDIR}/prngd.conf.netbsd ${PKG_SYSCONFDIR}/prngd.conf
+
+INSTALLATION_DIRS= bin man/man1
+
+SUBST_CLASSES= path
+SUBST_STAGE.path= pre-install
+SUBST_FILES.path= prngd.man
+SUBST_SED.path= -e 's,/usr/local,${PREFIX},g'
+SUBST_SED.path+= -e 's,/var,${VARBASE},g'
+SUBST_MESSAGE.path= "Fixing paths in man page."
+
+do-build:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/prngd ${PREFIX}/bin/prngd
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/prngd
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/prngd
+ ${INSTALL_DATA} ${WRKSRC}/00README ${PREFIX}/share/doc/prngd
+ ${INSTALL_DATA} ${WRKSRC}/00README.gatherers ${PREFIX}/share/doc/prngd
+ ${INSTALL_DATA} ${WRKSRC}/00DESIGN ${PREFIX}/share/doc/prngd
+ ${INSTALL_DATA} ${WRKSRC}/contrib/NetBSD1/prngd.conf.netbsd ${PREFIX}/share/examples/prngd
+ ${INSTALL_MAN} ${WRKSRC}/prngd.man ${PREFIX}/man/man1/prngd.1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/prngd/PLIST b/security/prngd/PLIST
new file mode 100644
index 00000000000..15ef2a0ea52
--- /dev/null
+++ b/security/prngd/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/15 23:10:35 recht Exp $
+bin/prngd
+man/man1/prngd.1
+share/doc/prngd/00DESIGN
+share/doc/prngd/00README
+share/doc/prngd/00README.gatherers
+share/examples/prngd/prngd.conf.netbsd
+@dirrm share/examples/prngd
+@dirrm share/doc/prngd
diff --git a/security/prngd/distinfo b/security/prngd/distinfo
new file mode 100644
index 00000000000..ceb73640b36
--- /dev/null
+++ b/security/prngd/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/07/15 23:10:35 recht Exp $
+
+SHA1 (prngd-0.9.29.tar.gz) = 72e82928b99a94e11fe379159d5fe3a5ddab4112
+Size (prngd-0.9.29.tar.gz) = 76392 bytes