pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/password-store Initial import of password-sto...
details: https://anonhg.NetBSD.org/pkgsrc/rev/413ebe363335
branches: trunk
changeset: 643956:413ebe363335
user: imil <imil%pkgsrc.org@localhost>
date: Fri Jan 02 12:52:16 2015 +0000
description:
Initial import of password-store, version 1.6.3, into the NetBSD Packages
Collection.
Password management should be simple and follow Unix philosophy. With pass,
each password lives inside of a gpg encrypted file whose filename is the title
of the website or resource that requires the password. These encrypted files
may be organized into meaningful folder hierarchies, copied from computer to
computer, and, in general, manipulated using standard command line file
management utilities.
pass makes managing these individual password files extremely easy. All
passwords live in ~/.password-store, and pass provides some nice commands for
adding, editing, generating, and retrieving passwords. It is a very short and
simple shell script. It's capable of temporarily putting passwords on your
clipboard and tracking password changes using git
diffstat:
security/password-store/DESCR | 12 +++
security/password-store/Makefile | 49 ++++++++++++
security/password-store/PLIST | 24 ++++++
security/password-store/distinfo | 6 +
security/password-store/patches/patch-src_password-store.sh | 51 +++++++++++++
5 files changed, 142 insertions(+), 0 deletions(-)
diffs (162 lines):
diff -r 12969d760954 -r 413ebe363335 security/password-store/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/password-store/DESCR Fri Jan 02 12:52:16 2015 +0000
@@ -0,0 +1,12 @@
+Password management should be simple and follow Unix philosophy. With pass,
+each password lives inside of a gpg encrypted file whose filename is the title
+of the website or resource that requires the password. These encrypted files
+may be organized into meaningful folder hierarchies, copied from computer to
+computer, and, in general, manipulated using standard command line file
+management utilities.
+
+pass makes managing these individual password files extremely easy. All
+passwords live in ~/.password-store, and pass provides some nice commands for
+adding, editing, generating, and retrieving passwords. It is a very short and
+simple shell script. It's capable of temporarily putting passwords on your
+clipboard and tracking password changes using git
diff -r 12969d760954 -r 413ebe363335 security/password-store/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/password-store/Makefile Fri Jan 02 12:52:16 2015 +0000
@@ -0,0 +1,49 @@
+# $NetBSD: Makefile,v 1.1 2015/01/02 12:52:16 imil Exp $
+
+DISTNAME= password-store-1.6.3
+CATEGORIES= security
+MASTER_SITES= http://git.zx2c4.com/password-store/snapshot/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= imil%NetBSD.org@localhost
+HOMEPAGE= http://www.passwordstore.org/
+COMMENT= Standard UNIX password manager
+LICENSE= gnu-gpl-v2
+
+USE_LANGUAGES= # none
+NO_BUILD= yes
+USE_TOOLS+= gmake pax bash:run
+
+DEPENDS+= getopt>=1.1.6:../../misc/getopt
+DEPENDS+= gnupg2>=2.0.26:../../security/gnupg2
+DEPENDS+= pwgen>=2.06:../../sysutils/pwgen
+DEPENDS+= tree>=1.7.0:../../sysutils/tree
+
+EGDIR= share/examples/password-store
+INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
+INSTALLATION_DIRS+= ${EGDIR}/contrib ${EGDIR}/completion
+
+REPLACE_BASH+= src/password-store.sh
+
+SUBST_CLASSES+= fixsh
+SUBST_STAGE.fixsh= post-patch
+SUBST_MESSAGE.fixsh= Fixing shell script
+SUBST_FILES.fixsh= src/password-store.sh
+SUBST_SED.fixsh+= -e 's,GETOPT="getopt",GETOPT="${PREFIX}/bin/getopt",'
+SUBST_SED.fixsh+= -e "s,SHRED=\"shred -f -z\",SHRED=\"${RM} -f -P\","
+
+.include "options.mk"
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/src/password-store.sh \
+ ${DESTDIR}${PREFIX}/bin/pass
+ ${INSTALL_SCRIPT} ${WRKSRC}/man/example-filter.sh \
+ ${DESTDIR}${PREFIX}/${EGDIR}
+ ${INSTALL_MAN} ${WRKSRC}/man/pass.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/pass.1
+ cd ${WRKSRC}/contrib && \
+ ${PAX} -wr * ${DESTDIR}${PREFIX}/${EGDIR}/contrib
+ cd ${WRKSRC}/src/completion && \
+ ${PAX} -wr * ${DESTDIR}${PREFIX}/${EGDIR}/completion
+
+.include "../../mk/bsd.pkg.mk"
diff -r 12969d760954 -r 413ebe363335 security/password-store/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/password-store/PLIST Fri Jan 02 12:52:16 2015 +0000
@@ -0,0 +1,24 @@
+@comment $NetBSD: PLIST,v 1.1 2015/01/02 12:52:16 imil Exp $
+bin/pass
+man/man1/pass.1
+share/examples/password-store/completion/pass.bash-completion
+share/examples/password-store/completion/pass.fish-completion
+share/examples/password-store/completion/pass.zsh-completion
+share/examples/password-store/contrib/dmenu/README.md
+share/examples/password-store/contrib/dmenu/passmenu
+share/examples/password-store/contrib/emacs/.gitignore
+share/examples/password-store/contrib/emacs/Cask
+share/examples/password-store/contrib/emacs/README.md
+share/examples/password-store/contrib/emacs/password-store.el
+share/examples/password-store/contrib/importers/1password2pass.rb
+share/examples/password-store/contrib/importers/fpm2pass.pl
+share/examples/password-store/contrib/importers/gorilla2pass.rb
+share/examples/password-store/contrib/importers/kedpm2pass.py
+share/examples/password-store/contrib/importers/keepass2pass.py
+share/examples/password-store/contrib/importers/keepassx2pass.py
+share/examples/password-store/contrib/importers/kwallet2pass.py
+share/examples/password-store/contrib/importers/lastpass2pass.rb
+share/examples/password-store/contrib/importers/pwsafe2pass.sh
+share/examples/password-store/contrib/importers/revelation2pass.py
+share/examples/password-store/contrib/related-projects.txt
+share/examples/password-store/example-filter.sh
diff -r 12969d760954 -r 413ebe363335 security/password-store/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/password-store/distinfo Fri Jan 02 12:52:16 2015 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2015/01/02 12:52:16 imil Exp $
+
+SHA1 (password-store-1.6.3.tar.xz) = 42c5d912cba614f052eae117cec47caaf75944ea
+RMD160 (password-store-1.6.3.tar.xz) = 1a1311b67942a0a490af5c20376483a4a5240101
+Size (password-store-1.6.3.tar.xz) = 52944 bytes
+SHA1 (patch-src_password-store.sh) = 5a1c1742b16716bbf50ef591b99f0e84d1f52062
diff -r 12969d760954 -r 413ebe363335 security/password-store/patches/patch-src_password-store.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/password-store/patches/patch-src_password-store.sh Fri Jan 02 12:52:16 2015 +0000
@@ -0,0 +1,51 @@
+$NetBSD: patch-src_password-store.sh,v 1.1 2015/01/02 12:52:16 imil Exp $
+
+Remove non portable mkdir parameter
+
+--- src/password-store.sh.orig 2014-07-01 08:42:26.000000000 +0000
++++ src/password-store.sh
+@@ -291,7 +291,7 @@ cmd_init() {
+ fi
+ rmdir -p "${gpg_id%/*}" 2>/dev/null
+ else
+- mkdir -v -p "$PREFIX/$id_path"
++ mkdir -p "$PREFIX/$id_path"
+ printf "%s\n" "$@" > "$gpg_id"
+ local id_print="$(printf "%s, " "$@")"
+ echo "Password store initialized for ${id_print%, }"
+@@ -382,7 +382,7 @@ cmd_insert() {
+
+ [[ $force -eq 0 && -e $passfile ]] && yesno "An entry already exists for $path. Overwrite it?"
+
+- mkdir -p -v "$PREFIX/$(dirname "$path")"
++ mkdir -p "$PREFIX/$(dirname "$path")"
+ set_gpg_recipients "$(dirname "$path")"
+
+ if [[ $multiline -eq 1 ]]; then
+@@ -416,7 +416,7 @@ cmd_edit() {
+
+ local path="$1"
+ check_sneaky_paths "$path"
+- mkdir -p -v "$PREFIX/$(dirname "$path")"
++ mkdir -p "$PREFIX/$(dirname "$path")"
+ set_gpg_recipients "$(dirname "$path")"
+ local passfile="$PREFIX/$path.gpg"
+
+@@ -455,7 +455,7 @@ cmd_generate() {
+ local length="$2"
+ check_sneaky_paths "$path"
+ [[ ! $length =~ ^[0-9]+$ ]] && die "Error: pass-length \"$length\" must be a number."
+- mkdir -p -v "$PREFIX/$(dirname "$path")"
++ mkdir -p "$PREFIX/$(dirname "$path")"
+ set_gpg_recipients "$(dirname "$path")"
+ local passfile="$PREFIX/$path.gpg"
+
+@@ -538,7 +538,7 @@ cmd_copy_move() {
+ [[ ! -f $old_path ]] && die "Error: $1 is not in the password store."
+ fi
+
+- mkdir -p -v "${new_path%/*}"
++ mkdir -p "${new_path%/*}"
+ [[ -d $old_path || -d $new_path || $new_path =~ /$ ]] || new_path="${new_path}.gpg"
+
+ local interactive="-i"
Home |
Main Index |
Thread Index |
Old Index