summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorimil <imil@pkgsrc.org>2015-01-02 12:52:16 +0000
committerimil <imil@pkgsrc.org>2015-01-02 12:52:16 +0000
commit1e28264eab9bdbedca485efe24b283196e13a328 (patch)
tree19beec7daa930115205bf5bb9bdaf7b3592856d7 /security
parente5113a5cb61b2c9539cd64e9622503e190c99fd8 (diff)
downloadpkgsrc-1e28264eab9bdbedca485efe24b283196e13a328.tar.gz
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 (limited to 'security')
-rw-r--r--security/password-store/DESCR12
-rw-r--r--security/password-store/Makefile49
-rw-r--r--security/password-store/PLIST24
-rw-r--r--security/password-store/distinfo6
-rw-r--r--security/password-store/patches/patch-src_password-store.sh51
5 files changed, 142 insertions, 0 deletions
diff --git a/security/password-store/DESCR b/security/password-store/DESCR
new file mode 100644
index 00000000000..82e13299717
--- /dev/null
+++ b/security/password-store/DESCR
@@ -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 --git a/security/password-store/Makefile b/security/password-store/Makefile
new file mode 100644
index 00000000000..6b7dc93a082
--- /dev/null
+++ b/security/password-store/Makefile
@@ -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
+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 --git a/security/password-store/PLIST b/security/password-store/PLIST
new file mode 100644
index 00000000000..e1f33ef466b
--- /dev/null
+++ b/security/password-store/PLIST
@@ -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 --git a/security/password-store/distinfo b/security/password-store/distinfo
new file mode 100644
index 00000000000..74889bff1be
--- /dev/null
+++ b/security/password-store/distinfo
@@ -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 --git a/security/password-store/patches/patch-src_password-store.sh b/security/password-store/patches/patch-src_password-store.sh
new file mode 100644
index 00000000000..b8b6bcd26bb
--- /dev/null
+++ b/security/password-store/patches/patch-src_password-store.sh
@@ -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"