1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Update to 0.2.0.

PR:		ports/87358
Submitted by:	maintainer, Kevin Dorne <kevin@catalyst.net.nz>
This commit is contained in:
Florent Thoumie 2005-10-13 11:35:07 +00:00
parent 6f30e0a0ee
commit 55fbdf9f62
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145243
3 changed files with 32 additions and 5 deletions

View File

@ -6,18 +6,29 @@
#
PORTNAME= pwsafe
PORTVERSION= 0.1.6
PORTVERSION= 0.2.0
CATEGORIES= sysutils
MASTER_SITES= http://nsd.dyndns.org/pwsafe/releases/
MAINTAINER= donnex@donnex.net
COMMENT= Cmdline program that manages encrypted password databases
OPTIONS= SETUID "Install setuid pwsafe binary" off
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GCC= 2.95
MAN1= pwsafe.1
PLIST_FILES= bin/pwsafe
.include <bsd.port.mk>
.include <bsd.port.pre.mk>
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pwsafe ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/pwsafe.1 ${PREFIX}/man/man1
.if defined(WITH_SETUID)
${CHMOD} u+s ${PREFIX}/bin/pwsafe
.endif
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
MD5 (pwsafe-0.1.6.tar.gz) = 2a56d5d54d474524500f0b4258868478
SIZE (pwsafe-0.1.6.tar.gz) = 110027
MD5 (pwsafe-0.2.0.tar.gz) = 4bb36538a2772ecbf1a542bc7d4746c0
SIZE (pwsafe-0.2.0.tar.gz) = 127433

View File

@ -0,0 +1,16 @@
--- pwsafe.cpp.orig Wed Oct 12 11:57:28 2005
+++ pwsafe.cpp Wed Oct 12 12:02:44 2005
@@ -1019,7 +1019,12 @@
// seed the random number generator
char rng_filename[1024];
if (RAND_file_name(rng_filename,sizeof(rng_filename))) {
- int rc = RAND_load_file(rng_filename,-1);
+ int rc;
+ if (!strlen(rng_filename)) {
+ rc = RAND_load_file("/dev/urandom",1024);
+ } else {
+ rc = RAND_load_file(rng_filename,-1);
+ }
if (rc) {
if (arg_verbose > 0) printf("rng seeded with %d bytes from %s\n", rc, rng_filename);
} else {