[121748] trunk/dports/security/pass

ryandesign at macports.org ryandesign at macports.org
Sun Jul 6 14:09:36 PDT 2014


Revision: 121748
          https://trac.macports.org/changeset/121748
Author:   ryandesign at macports.org
Date:     2014-07-06 14:09:36 -0700 (Sun, 06 Jul 2014)
Log Message:
-----------
pass: miantainer update to 1.6.3 (#44255)

Modified Paths:
--------------
    trunk/dports/security/pass/Portfile
    trunk/dports/security/pass/files/patch-Makefile.diff

Added Paths:
-----------
    trunk/dports/security/pass/files/patch-use_apple_mktemp.diff

Modified: trunk/dports/security/pass/Portfile
===================================================================
--- trunk/dports/security/pass/Portfile	2014-07-06 21:02:25 UTC (rev 121747)
+++ trunk/dports/security/pass/Portfile	2014-07-06 21:09:36 UTC (rev 121748)
@@ -4,15 +4,14 @@
 PortSystem          1.0
 
 name                pass
-version             1.6.1
-revision            1
+version             1.6.3
 maintainers         macports.swinbank.org:john openmaintainer
 categories          security
 description         ${name} is the standard unix password manager
 long_description    ${description}
 platforms           darwin
 supported_archs     noarch
-homepage            http://zx2c4.com/projects/password-store/
+homepage            http://www.passwordstore.org/
 license             GPL-2+
 
 depends_run			port:git \
@@ -25,11 +24,12 @@
 distname            password-store-${version}
 use_xz              yes
 
-checksums           rmd160 a5bb1d7d8aecb8900a5b5b0b6ba68963d2bca778 \
-                    sha256 3c154d556c53c76b1a0ccacdc108c34f1fdb4a36fab28a6d2f42f02184290881
+checksums           rmd160 1a1311b67942a0a490af5c20376483a4a5240101 \
+                    sha256 d419d40aa165c1f893e994dd706733374a9db8cf5314124702a061e70e0340f7
 
 patchfiles          patch-Makefile.diff \
-                    patch-getopt-path.diff
+                    patch-getopt-path.diff \
+                    patch-use_apple_mktemp.diff
 
 post-patch {
     reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/src/platform/darwin.sh

Modified: trunk/dports/security/pass/files/patch-Makefile.diff
===================================================================
--- trunk/dports/security/pass/files/patch-Makefile.diff	2014-07-06 21:02:25 UTC (rev 121747)
+++ trunk/dports/security/pass/files/patch-Makefile.diff	2014-07-06 21:09:36 UTC (rev 121748)
@@ -1,9 +1,9 @@
---- Makefile.orig	2014-04-25 19:13:38.000000000 +0200
-+++ Makefile	2014-04-25 19:13:58.000000000 +0200
+--- Makefile.orig	2014-06-07 17:48:45.000000000 +0200
++++ Makefile	2014-06-07 17:48:56.000000000 +0200
 @@ -40,7 +40,7 @@
  install: install-common
- 	@mkdir -p "$(DESTDIR)$(LIBDIR)/password-store" && install -m 0644 -v "$(PLATFORMFILE)" "$(DESTDIR)$(LIBDIR)/password-store/platform.sh"
- 	@mkdir -p "$(DESTDIR)$(BINDIR)/"
+ 	@install -v -d "$(DESTDIR)$(LIBDIR)/password-store" && install -m 0644 -v "$(PLATFORMFILE)" "$(DESTDIR)$(LIBDIR)/password-store/platform.sh"
+ 	@install -v -d "$(DESTDIR)$(BINDIR)/"
 -	sed 's:.*PLATFORM_FUNCTION_FILE.*:source "$(DESTDIR)$(LIBDIR)/password-store/platform.sh":' src/password-store.sh > "$(DESTDIR)$(BINDIR)/pass"
 +	sed 's:.*PLATFORM_FUNCTION_FILE.*:source "$(LIBDIR)/password-store/platform.sh":' src/password-store.sh > "$(DESTDIR)$(BINDIR)/pass"
  	@chmod 0755 "$(DESTDIR)$(BINDIR)/pass"

Added: trunk/dports/security/pass/files/patch-use_apple_mktemp.diff
===================================================================
--- trunk/dports/security/pass/files/patch-use_apple_mktemp.diff	                        (rev 0)
+++ trunk/dports/security/pass/files/patch-use_apple_mktemp.diff	2014-07-06 21:09:36 UTC (rev 121748)
@@ -0,0 +1,47 @@
+diff -r -u src.orig/password-store.sh src/password-store.sh
+--- src.orig/password-store.sh	2014-07-06 18:51:05.000000000 +0200
++++ src/password-store.sh	2014-07-06 18:51:45.000000000 +0200
+@@ -168,7 +168,7 @@
+ 	[[ $1 == "nowarn" ]] && warn=0
+ 	local template="$PROGRAM.XXXXXXXXXXXXX"
+ 	if [[ -d /dev/shm && -w /dev/shm && -x /dev/shm ]]; then
+-		SECURE_TMPDIR="$(mktemp -d "/dev/shm/$template")"
++		SECURE_TMPDIR="$(${MKTEMP} -d "/dev/shm/$template")"
+ 		remove_tmpfile() {
+ 			rm -rf "$SECURE_TMPDIR"
+ 		}
+@@ -182,7 +182,7 @@
+ 		Are you sure you would like to continue?
+ 		_EOF
+ 		)"
+-		SECURE_TMPDIR="$(mktemp -d "${TMPDIR:-/tmp}/$template")"
++		SECURE_TMPDIR="$(${MKTEMP} -d "${TMPDIR:-/tmp}/$template")"
+ 		shred_tmpfile() {
+ 			find "$SECURE_TMPDIR" -type f -exec $SHRED {} +
+ 			rm -rf "$SECURE_TMPDIR"
+@@ -421,7 +421,7 @@
+ 	local passfile="$PREFIX/$path.gpg"
+ 
+ 	tmpdir #Defines $SECURE_TMPDIR
+-	local tmp_file="$(mktemp -u "$SECURE_TMPDIR/XXXXX")-${path//\//-}.txt"
++	local tmp_file="$(${MKTEMP} -u "$SECURE_TMPDIR/XXXXX")-${path//\//-}.txt"
+ 
+ 
+ 	local action="Add"
+diff -r -u src.orig/platform/darwin.sh src/platform/darwin.sh
+--- src.orig/platform/darwin.sh	2014-07-06 18:53:23.000000000 +0200
++++ src/platform/darwin.sh	2014-07-06 18:53:02.000000000 +0200
+@@ -24,7 +24,7 @@
+ 		rm -rf "$SECURE_TMPDIR"
+ 	}
+ 	trap unmount_tmpdir INT TERM EXIT
+-	SECURE_TMPDIR="$(mktemp -d "${TMPDIR:-/tmp}/$PROGRAM.XXXXXXXXXXXXX")"
++	SECURE_TMPDIR="$(${MKTEMP} -d "${TMPDIR:-/tmp}/$PROGRAM.XXXXXXXXXXXXX")"
+ 	DARWIN_RAMDISK_DEV="$(hdid -drivekey system-image=yes -nomount 'ram://32768' | cut -d ' ' -f 1)" # 32768 sectors = 16 mb
+ 	[[ -z $DARWIN_RAMDISK_DEV ]] && die "Error: could not create ramdisk."
+ 	newfs_hfs -M 700 "$DARWIN_RAMDISK_DEV" &>/dev/null || die "Error: could not create filesystem on ramdisk."
+@@ -33,3 +33,4 @@
+ 
+ GETOPT=@@PREFIX@@/bin/getopt
+ SHRED="srm -f -z"
++MKTEMP="/usr/bin/mktemp"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140706/d85daa52/attachment.html>


More information about the macports-changes mailing list