Hi ports,
I sent an email to the maintainer but no answer, so i send it to you.
Update to pwgen version 2.06: add new options (like -y to add symbols
to password) and some bug corrections.
Tested on @i386 and @amd64.
Tests, comments are welcome. Commit ?
Regards,
Pea
Index: Makefile
===================================================================
RCS file: /cvs/ports/security/pwgen/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- Makefile 2007/09/15 23:30:00 1.5
+++ Makefile 2007/12/03 08:34:15
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.5 2007/09/15 23:30:00 merdely Exp $
+# $OpenBSD $
COMMENT= simple password generator
-DISTNAME= pwgen-2.03
+DISTNAME= pwgen-2.06
CATEGORIES= security
MAINTAINER= Robert Nagy <[EMAIL PROTECTED]>
@@ -24,7 +24,6 @@ MAKE_FLAGS= WALL_OPTS=""
NO_REGRESS= Yes
-pre-configure:
- @rm ${WRKSRC}/config.cache
+
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/security/pwgen/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo 2007/04/05 17:26:09 1.3
+++ distinfo 2007/12/03 08:34:15
@@ -1,5 +1,5 @@
-MD5 (pwgen-2.03.tar.gz) = GnNlegoQ88PQCTMDY2nnAg==
-RMD160 (pwgen-2.03.tar.gz) = kAmmr4Sdf1le9iWD3Ap5huT6xIg=
-SHA1 (pwgen-2.03.tar.gz) = wK9aM/LcnmJFc3zgZSS/uGranUc=
-SHA256 (pwgen-2.03.tar.gz) = O5ER5f+hMdb7cL6+p6MybaclsX8ByvCURf2vE51mf0c=
-SIZE (pwgen-2.03.tar.gz) = 23367
+MD5 (pwgen-2.06.tar.gz) = k1rry+YQ+8negSXnt9cSlw==
+RMD160 (pwgen-2.06.tar.gz) = 37MNDBXs1eNpMJy5+wAjxq0fXzI=
+SHA1 (pwgen-2.06.tar.gz) = Q9xPvmw735auJLINRMSkWE35PY4=
+SHA256 (pwgen-2.06.tar.gz) = YVmMnjoPfrLnNn1OzHFSLE8Wp9Qe0x2ynjr+6NmENFQ=
+SIZE (pwgen-2.06.tar.gz) = 30952
Index: patches/patch-configure_in
===================================================================
RCS file: /cvs/ports/security/pwgen/patches/patch-configure_in,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-configure_in
--- patches/patch-configure_in 2003/12/03 02:18:44 1.1.1.1
+++ patches/patch-configure_in 2007/12/03 08:34:15
@@ -1,6 +1,6 @@
-$OpenBSD: patch-configure_in,v 1.1.1.1 2003/12/03 02:18:44 naddy Exp $
---- configure.in.orig 2003-12-03 02:06:27.000000000 +0100
-+++ configure.in 2003-12-03 02:06:39.000000000 +0100
+$OpenBSD$
+--- configure.in.orig Thu Jul 5 01:42:19 2007
++++ configure.in Mon Dec 3 09:15:48 2007
@@ -6,6 +6,6 @@ AC_PATH_PROG(MV, mv, mv)
AC_PATH_PROG(RM, rm, rm)
AC_PATH_PROG(SED, sed, sed)
Index: patches/patch-randnum_c
===================================================================
RCS file: /cvs/ports/security/pwgen/patches/patch-randnum_c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-randnum_c
--- patches/patch-randnum_c 2003/12/03 02:18:44 1.1.1.1
+++ patches/patch-randnum_c 2007/12/03 08:34:15
@@ -1,6 +1,6 @@
-$OpenBSD: patch-randnum_c,v 1.1.1.1 2003/12/03 02:18:44 naddy Exp $
---- randnum.c.orig 2003-12-03 02:06:51.000000000 +0100
-+++ randnum.c 2003-12-03 02:09:07.000000000 +0100
+$OpenBSD$
+--- randnum.c.orig Thu Jul 5 01:42:19 2007
++++ randnum.c Mon Dec 3 09:15:48 2007
@@ -17,6 +17,15 @@
#include "pwgen.h"
@@ -17,7 +17,7 @@ $OpenBSD: patch-randnum_c,v 1.1.1.1 2003
#ifdef HAVE_DRAND48
extern double drand48(void);
#endif
-@@ -90,3 +99,4 @@ int pw_random_number(int max_num)
+@@ -93,3 +102,4 @@ int pw_random_number(max_num)
return ((int) (random() / ((float) RAND_MAX) * max_num));
#endif
}
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/security/pwgen/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST 2004/08/03 13:46:27 1.2
+++ pkg/PLIST 2007/12/03 08:34:15
@@ -1,3 +1,3 @@
[EMAIL PROTECTED] $OpenBSD: PLIST,v 1.2 2004/08/03 13:46:27 robert Exp $
[EMAIL PROTECTED] $OpenBSD$
bin/pwgen
@man man/man1/pwgen.1