Date: Thu, 13 Oct 2005 06:11:25 GMT From: Daniel Johansson <donnex@donnex.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/87358: Update port sysutils/pwsafe to version 0.2.0. Message-ID: <200510130611.j9D6BPAj050757@www.freebsd.org> Resent-Message-ID: <200510130620.j9D6KIcQ036385@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 87358 >Category: ports >Synopsis: Update port sysutils/pwsafe to version 0.2.0. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Oct 13 06:20:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Daniel Johansson >Release: FreeBSD 4.11-RELEASE-p2 >Organization: >Environment: FreeBSD donnex.net 4.11-RELEASE-p2 FreeBSD 4.11-RELEASE-p2 #0: Wed Apr 6 09:28:54 CEST 2005 donnex@donnex.net:/usr/obj/usr/src/sys/donnex i386 >Description: Update port sysutils/pwsafe to version 0.2.0. Thanks to Kevin Dorne <kevin@catalyst.net.nz> for doing most of the work and for submitting the patch for setuid. >How-To-Repeat: >Fix: Apply this diff: diff -ruN pwsafe.bak/Makefile pwsafe/Makefile --- pwsafe.bak/Makefile Wed Oct 13 03:39:48 2004 +++ pwsafe/Makefile Thu Oct 13 08:09:29 2005 @@ -6,18 +6,29 @@ # PORTNAME= pwsafe -PORTVERSION= 0.1.6 +PORTVERSION= 0.2.0 CATEGORIES= sysutils MASTER_SITES= http://nsd.dyndns.org/pwsafe/releases/ +DISTNAME= pwsafe-${PORTVERSION} 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> diff -ruN pwsafe.bak/distinfo pwsafe/distinfo --- pwsafe.bak/distinfo Wed Mar 31 18:29:32 2004 +++ pwsafe/distinfo Wed Oct 12 00:34:04 2005 @@ -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 diff -ruN pwsafe.bak/files/patch-urandom-seed pwsafe/files/patch-urandom-seed --- pwsafe.bak/files/patch-urandom-seed Thu Jan 1 01:00:00 1970 +++ pwsafe/files/patch-urandom-seed Wed Oct 12 01:12:04 2005 @@ -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 { >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510130611.j9D6BPAj050757>