[pass] Porting to OpenBSD

Dahlberg, David david.dahlberg at fkie.fraunhofer.de
Mon Jan 5 12:45:53 CET 2015


Am Mittwoch, den 24.12.2014, 02:17 -0700 schrieb Jason A. Donenfeld:
>  Also - are you sure that the grep invocation works fine in pass? Or is
> this already covered nicely by the g packages?

Just found "grep --color=always" which is being called by "pass grep"
and which is GNU-style of course.

Actually, during the meantime I have been preparing an OpenBSD port for
pass so hopefully it may be installed with "pkg_add pass" soon.
During that work, I found some more issues ("rm -v", "tree") and some
more dependencies (tree, xclip, base64).

For now, I am not particularly happy with this part of the patch set,
which may be acceptable for me (or a port), but probably not for you:

> --- src/password-store.sh.orig	Tue Jul  1 10:42:26 2014
> +++ src/password-store.sh	Thu Dec 11 11:16:51 2014
> @@ -343,8 +343,8 @@ cmd_show() {
>  cmd_find() {
>  	[[ -z "$@" ]] && die "Usage: $PROGRAM $COMMAND pass-names..."
>  	IFS="," eval 'echo "Search Terms: $*"'
> -	local terms="*$(printf '%s*|*' "$@")"
> -	tree -C -l --noreport -P "${terms%|*}" --prune --matchdirs --ignore-case "$PREFIX" | tail -n +2 | sed 's/\.gpg$//'
> +        local esc_prefix=`echo "$PREFIX" | sed 's#/#\\\/#g'`
> +        find "$PREFIX" -name *$@* | sed -e "s/^$esc_prefix\//\| /" -e 's/\.gpg$//'
>  }
>  
>  cmd_grep() {

The full patch set is being attached.

-- 
David Dahlberg     

Fraunhofer FKIE, Dept. Communication Systems (KOM) | Tel: +49-228-9435-845
Fraunhoferstr. 20, 53343 Wachtberg, Germany        | Fax: +49-228-856277
-------------- next part --------------
A non-text attachment was scrubbed...
Name: password-store.diff
Type: text/x-patch
Size: 3708 bytes
Desc: password-store.diff
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150105/6ecdb28e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openbsd.sh
Type: application/x-shellscript
Size: 205 bytes
Desc: openbsd.sh
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150105/6ecdb28e/attachment-0001.bin>


More information about the Password-Store mailing list