aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2005-10-13 19:35:07 +0800
committerflz <flz@FreeBSD.org>2005-10-13 19:35:07 +0800
commit76957ad7c91454d8d3027711d709a43166aec552 (patch)
tree7bbd86529d263c2742eec65bb4af940831d7c672 /sysutils
parentff85a6d81a74ebc10f680368d16e28b5044715e8 (diff)
downloadfreebsd-ports-gnome-76957ad7c91454d8d3027711d709a43166aec552.tar.gz
freebsd-ports-gnome-76957ad7c91454d8d3027711d709a43166aec552.tar.zst
freebsd-ports-gnome-76957ad7c91454d8d3027711d709a43166aec552.zip
- Update to 0.2.0.
PR: ports/87358 Submitted by: maintainer, Kevin Dorne <kevin@catalyst.net.nz>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/pwsafe/Makefile17
-rw-r--r--sysutils/pwsafe/distinfo4
-rw-r--r--sysutils/pwsafe/files/patch-pwsafe.cpp16
3 files changed, 32 insertions, 5 deletions
diff --git a/sysutils/pwsafe/Makefile b/sysutils/pwsafe/Makefile
index 78661fd63912..06faf52a5414 100644
--- a/sysutils/pwsafe/Makefile
+++ b/sysutils/pwsafe/Makefile
@@ -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>
+
diff --git a/sysutils/pwsafe/distinfo b/sysutils/pwsafe/distinfo
index 7c11bb5238a0..e79ee1bdb46e 100644
--- a/sysutils/pwsafe/distinfo
+++ b/sysutils/pwsafe/distinfo
@@ -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 --git a/sysutils/pwsafe/files/patch-pwsafe.cpp b/sysutils/pwsafe/files/patch-pwsafe.cpp
new file mode 100644
index 000000000000..537381a0dc03
--- /dev/null
+++ b/sysutils/pwsafe/files/patch-pwsafe.cpp
@@ -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 {