mirror of
https://github.com/gaschz/qubes-pass.git
synced 2025-03-01 14:22:31 +01:00
Support a location where qvm-pass
will emulate pass
.
This commit is contained in:
parent
2981a3e233
commit
b98d1f7857
5
Makefile
5
Makefile
@ -1,4 +1,5 @@
|
|||||||
BINDIR=/usr/bin
|
BINDIR=/usr/bin
|
||||||
|
LIBEXECDIR=/usr/libexec
|
||||||
SYSCONFDIR=/etc
|
SYSCONFDIR=/etc
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
PROGNAME=qubes-pass
|
PROGNAME=qubes-pass
|
||||||
@ -19,6 +20,10 @@ srpm: dist
|
|||||||
install-client:
|
install-client:
|
||||||
install -Dm 755 bin/qvm-pass -t $(DESTDIR)/$(BINDIR)/
|
install -Dm 755 bin/qvm-pass -t $(DESTDIR)/$(BINDIR)/
|
||||||
install -Dm 755 bin/qubes-pass-client -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-service:
|
||||||
install -Dm 644 etc/qubes-rpc/ruddo.PassRead -t $(DESTDIR)/$(SYSCONFDIR)/qubes-rpc/
|
install -Dm 644 etc/qubes-rpc/ruddo.PassRead -t $(DESTDIR)/$(SYSCONFDIR)/qubes-rpc/
|
||||||
|
@ -62,6 +62,11 @@ the password store VM.
|
|||||||
|
|
||||||
Run `qvm-pass -?` on a terminal to get usage information.
|
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
|
## Installing the software
|
||||||
|
|
||||||
There are three components for this software:
|
There are three components for this software:
|
||||||
|
@ -45,13 +45,13 @@ have VMs that have the %{name} package installed.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# variables must be kept in sync with install
|
# 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
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
# variables must be kept in sync with build
|
# variables must be kept in sync with build
|
||||||
for target in install-client install-service install-dom0; do
|
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
|
done
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -62,6 +62,7 @@ fi
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%attr(0755, root, root) %{_bindir}/qvm-pass
|
%attr(0755, root, root) %{_bindir}/qvm-pass
|
||||||
|
%attr(-, -, -) %{_libexecdir}/%{name}/pass
|
||||||
%attr(0755, root, root) %{_bindir}/qubes-pass-client
|
%attr(0755, root, root) %{_bindir}/qubes-pass-client
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user