diff options
author | kris <kris@FreeBSD.org> | 2001-08-23 15:03:56 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-08-23 15:03:56 +0800 |
commit | 4e4808a6d89948b27cc4a60b3148ff819669dce3 (patch) | |
tree | 9f550ab6b8c060b91964a964d40fd6b37d30e99f /security/ppgen | |
parent | 4b36c2dff734e8f04a2918b7ea5b24a4492d24ca (diff) | |
download | freebsd-ports-graphics-4e4808a6d89948b27cc4a60b3148ff819669dce3.tar.gz freebsd-ports-graphics-4e4808a6d89948b27cc4a60b3148ff819669dce3.tar.zst freebsd-ports-graphics-4e4808a6d89948b27cc4a60b3148ff819669dce3.zip |
Add ppgen 1.0, a program to generate random passphrases from dictionary
words, with a desired amount of entropy.
Obtained from: OpenBSD
Diffstat (limited to 'security/ppgen')
-rw-r--r-- | security/ppgen/Makefile | 25 | ||||
-rw-r--r-- | security/ppgen/distinfo | 2 | ||||
-rw-r--r-- | security/ppgen/files/patch-ppg_random_c | 11 | ||||
-rw-r--r-- | security/ppgen/files/patch-ppgen_c | 10 | ||||
-rw-r--r-- | security/ppgen/pkg-comment | 1 | ||||
-rw-r--r-- | security/ppgen/pkg-descr | 14 | ||||
-rw-r--r-- | security/ppgen/pkg-plist | 3 |
7 files changed, 66 insertions, 0 deletions
diff --git a/security/ppgen/Makefile b/security/ppgen/Makefile new file mode 100644 index 00000000000..4aed1ea8249 --- /dev/null +++ b/security/ppgen/Makefile @@ -0,0 +1,25 @@ +# Ports collection makefile for: ppgen +# Date created: 22 Aug 2001 +# Whom: Kris Kennaway <kris@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= ppgen +PORTVERSION= 1.0 +CATEGORIES= security +MASTER_SITES= ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/ppgen/ +DISTFILES= ${DISTNAME}.tar.gz en.gz +EXTRACT_ONLY= ${DISTNAME}.tar.gz + +MAINTAINER= kris@FreeBSD.org + +GNU_CONFIGURE= yes + +MAN1= ppgen.1 + +post-install: + ${MKDIR} ${PREFIX}/share/ppgen + ${GZIP_CMD} -dc ${DISTDIR}/en.gz > ${PREFIX}/share/ppgen/en + +.include <bsd.port.mk> diff --git a/security/ppgen/distinfo b/security/ppgen/distinfo new file mode 100644 index 00000000000..00f0780ea3f --- /dev/null +++ b/security/ppgen/distinfo @@ -0,0 +1,2 @@ +MD5 (en.gz) = 2a84c2d569c334dee1770e49de14455b +MD5 (ppgen-1.0.tar.gz) = 7544cda944428cfc2d17432adda25dc3 diff --git a/security/ppgen/files/patch-ppg_random_c b/security/ppgen/files/patch-ppg_random_c new file mode 100644 index 00000000000..517f94d07b9 --- /dev/null +++ b/security/ppgen/files/patch-ppg_random_c @@ -0,0 +1,11 @@ +--- ppg_random.c.orig Tue Aug 29 04:19:01 1995 ++++ ppg_random.c Sat Aug 12 20:14:39 2000 +@@ -109,7 +109,7 @@ pgp_rand_really_init() + + int i; + +- SRAND(time(NULL)^getpid()); ++ srandomdev(); + + for (i = 0; i < cachesize; i++) { + /* Conservatively, take what RAND() returns and fold it down diff --git a/security/ppgen/files/patch-ppgen_c b/security/ppgen/files/patch-ppgen_c new file mode 100644 index 00000000000..e282f1fc7c3 --- /dev/null +++ b/security/ppgen/files/patch-ppgen_c @@ -0,0 +1,10 @@ +--- ppgen.c.orig Tue Aug 29 05:10:45 1995 ++++ ppgen.c Sat Aug 12 19:55:51 2000 +@@ -29,6 +29,7 @@ + #else + char *optarg; + #endif ++#include <errno.h> + + #include "ppg_random.h" + diff --git a/security/ppgen/pkg-comment b/security/ppgen/pkg-comment new file mode 100644 index 00000000000..e6c745e33b1 --- /dev/null +++ b/security/ppgen/pkg-comment @@ -0,0 +1 @@ +Secure passphrase generator diff --git a/security/ppgen/pkg-descr b/security/ppgen/pkg-descr new file mode 100644 index 00000000000..0285d4c9879 --- /dev/null +++ b/security/ppgen/pkg-descr @@ -0,0 +1,14 @@ +From the author (Michael Shields <shields@tembel.org>): + +ppgen generates passphrases using strings of words, long enough to have +an arbitrary level of entropy. It can use any dictionary and the best +available source of randomness, including PGP's cryptographic RNG if you +have version 2.6.2. It is written in portable C, and it is fairly fast. + +You can use ppgen to generate passphrases whenever you have a program that +accepts long passwords. I use it for Kerberos and for local passwords +(I use the FreeBSD MD5-based crypt(3), not the standard limited Unix one), +and for my PGP keyring. + +Because ppgen is so simple, it can also easily be used by passwd(1) +or adduser(1) programs to choose passwords for users. diff --git a/security/ppgen/pkg-plist b/security/ppgen/pkg-plist new file mode 100644 index 00000000000..cbbd7627cda --- /dev/null +++ b/security/ppgen/pkg-plist @@ -0,0 +1,3 @@ +bin/ppgen +share/ppgen/en +@dirrm share/ppgen |