Support a location where qvm-pass will emulate pass.

This commit is contained in:
Manuel Amador (Rudd-O) 2019-07-10 00:46:31 +00:00
parent 2981a3e233
commit b98d1f7857
3 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,5 @@
BINDIR=/usr/bin
LIBEXECDIR=/usr/libexec
SYSCONFDIR=/etc
DESTDIR=
PROGNAME=qubes-pass
@ -19,6 +20,10 @@ srpm: dist
install-client:
install -Dm 755 bin/qvm-pass -t $(DESTDIR)/$(BINDIR)/
install -Dm 755 bin/qubes-pass-client -t $(DESTDIR)/$(BINDIR)/
mkdir -p $(DESTDIR)/$(LIBEXECDIR)/qubes-pass/
# Support the trick of using PATH=/usr/libexec/qubes-pass:$PATH to fool
# programs which invoke the pass store command line program.
ln -sf $(BINDIR)/qvm-pass $(DESTDIR)/$(LIBEXECDIR)/qubes-pass/pass
install-service:
install -Dm 644 etc/qubes-rpc/ruddo.PassRead -t $(DESTDIR)/$(SYSCONFDIR)/qubes-rpc/

View File

@ -62,6 +62,11 @@ the password store VM.
Run `qvm-pass -?` on a terminal to get usage information.
*Tip:* fool programs that use `pass` into using `qvm-pass` instead.
After installation, you can `export PATH=/usr/libexec/qubes-pass:$PATH`
prior to invoking said programs, to indoce programs (which invoke the
pass store command line program) to invoke `qvm-pass` instead.
## Installing the software
There are three components for this software:

View File

@ -45,13 +45,13 @@ have VMs that have the %{name} package installed.
%build
# variables must be kept in sync with install
make DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_bindir} SYSCONFDIR=%{_sysconfdir}
make DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_bindir} SYSCONFDIR=%{_sysconfdir} LIBEXECDIR=%{_libexecdir}
%install
rm -rf $RPM_BUILD_ROOT
# variables must be kept in sync with build
for target in install-client install-service install-dom0; do
make $target DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_bindir} SYSCONFDIR=%{_sysconfdir}
make $target DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_bindir} SYSCONFDIR=%{_sysconfdir} LIBEXECDIR=%{_libexecdir}
done
%check
@ -62,6 +62,7 @@ fi
%files
%attr(0755, root, root) %{_bindir}/qvm-pass
%attr(-, -, -) %{_libexecdir}/%{name}/pass
%attr(0755, root, root) %{_bindir}/qubes-pass-client
%doc README.md