Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

6
security/prngd/DESCR Normal file
View File

@@ -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.

28
security/prngd/MESSAGE Normal file
View File

@@ -0,0 +1,28 @@
===========================================================================
$NetBSD: MESSAGE,v 1.2 2005/09/28 14:15:49 rillig 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.
===========================================================================

36
security/prngd/Makefile Normal file
View File

@@ -0,0 +1,36 @@
# $NetBSD: Makefile,v 1.13 2013/04/08 11:17:22 rodent Exp $
DISTNAME= prngd-0.9.29
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=prngd/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://prngd.sourceforge.net/
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 ${PKGMANDIR}/man1 share/doc/prngd share/examples/prngd
SUBST_CLASSES+= path
SUBST_STAGE.path= pre-install
SUBST_MESSAGE.path= Fixing paths in man page.
SUBST_FILES.path= prngd.man
SUBST_SED.path= -e 's,/usr/local,${PREFIX},g'
SUBST_SED.path+= -e 's,/var,${VARBASE},g'
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/prngd ${DESTDIR}${PREFIX}/bin/prngd
${INSTALL_DATA} ${WRKSRC}/00README ${DESTDIR}${PREFIX}/share/doc/prngd
${INSTALL_DATA} ${WRKSRC}/00README.gatherers ${DESTDIR}${PREFIX}/share/doc/prngd
${INSTALL_DATA} ${WRKSRC}/00DESIGN ${DESTDIR}${PREFIX}/share/doc/prngd
${INSTALL_DATA} ${WRKSRC}/contrib/NetBSD1/prngd.conf.netbsd ${DESTDIR}${PREFIX}/share/examples/prngd
${INSTALL_MAN} ${WRKSRC}/prngd.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/prngd.1
.include "../../mk/bsd.pkg.mk"

7
security/prngd/PLIST Normal file
View File

@@ -0,0 +1,7 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:13:36 joerg 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

6
security/prngd/distinfo Normal file
View File

@@ -0,0 +1,6 @@
$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

View File

@@ -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 */