Import of pkgsrc-2015Q1

This commit is contained in:
2016-01-21 23:40:00 +01:00
committed by sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870539 additions and 795424 deletions
+12
View File
@@ -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
+49
View File
@@ -0,0 +1,49 @@
# $NetBSD: Makefile,v 1.4 2015/02/15 18:58:40 gls Exp $
DISTNAME= password-store-1.6.5
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"
+25
View File
@@ -0,0 +1,25 @@
@comment $NetBSD: PLIST,v 1.2 2015/02/15 18:58:40 gls 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/contrib/vim/noplaintext.vim
share/examples/password-store/example-filter.sh
+6
View File
@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.2 2015/02/15 18:58:40 gls Exp $
SHA1 (password-store-1.6.5.tar.xz) = 7590bee627bc9d617cdaf901544996cde54f5a12
RMD160 (password-store-1.6.5.tar.xz) = 76e50eaef02163dc23c155ade34b88e965ac6f30
Size (password-store-1.6.5.tar.xz) = 54576 bytes
SHA1 (patch-src_password-store.sh) = 5a1c1742b16716bbf50ef591b99f0e84d1f52062
+17
View File
@@ -0,0 +1,17 @@
# $NetBSD: options.mk,v 1.1 2015/01/05 11:32:49 imil Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.pass
PKG_SUPPORTED_OPTIONS= git xclip
PKG_SUGGESTED_OPTIONS= git
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mxclip)
DEPENDS+= xclip>=0.12:../../x11/xclip
.endif
.if !empty(PKG_OPTIONS:Mgit)
.include "../../devel/git/Makefile.version"
DEPENDS+= git-base>=${GIT_VERSION}:../../devel/git-base
.endif
@@ -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"