From 8aefcaf87241739fbd4c5016c9d1c5e384b374ba Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 27 Jul 2024 16:48:00 -0400 Subject: [PATCH] qubes-pass: add service subpackage --- qubes-pass/APKBUILD | 14 ++++++++++++-- qubes-pass/service-passquery.sh | 13 +++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 qubes-pass/service-passquery.sh diff --git a/qubes-pass/APKBUILD b/qubes-pass/APKBUILD index 85e5703..0f63e26 100644 --- a/qubes-pass/APKBUILD +++ b/qubes-pass/APKBUILD @@ -3,7 +3,7 @@ pkgname=qubes-pass pkgver=0.1.0 _gittag="v$pkgver" -pkgrel=3 +pkgrel=4 pkgdesc="An inter-VM password manager for Qubes OS" arch="noarch" url="https://github.com/Rudd-O/qubes-pass" @@ -14,11 +14,21 @@ makedepends=" pkgconf " options="!check" -source="$pkgname-$_gittag.tar.gz::https://github.com/Rudd-O/qubes-pass/archive/$_gittag.tar.gz" +subpackages="$pkgname-service" +source=" + $pkgname-$_gittag.tar.gz::https://github.com/Rudd-O/qubes-pass/archive/$_gittag.tar.gz + service-passquery.sh + " package() { make install-client DESTDIR="$pkgdir" } + +service() { + make -C "$builddir" install-service DESTDIR="$subpkgdir" + install -Dm755 "$srcdir"/service-passquery.sh "$subpkgdir"/etc/qubes-rpc/ruddo.PassQuery +} sha512sums=" b304bf8e6b8d04e7df4b52a02984ab03b6f3221c9178f1d91c99cab61e8b5ded45500b51de6d89aa76f4e73c0a3670ce6d07649c0ac159d048c3f0ac736c4d63 qubes-pass-v0.1.0.tar.gz +77807ba7bd8e1627785358ef2f9e165712ef41ef76f11e7a7b989b1057f462abc433df96265c6c7d669f81e39d89de0f7ea3dcbb207c5a7a22738b843fd7e160 service-passquery.sh " diff --git a/qubes-pass/service-passquery.sh b/qubes-pass/service-passquery.sh new file mode 100644 index 0000000..78fa74f --- /dev/null +++ b/qubes-pass/service-passquery.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +read -n 4096 cmd +cmd=$(echo "$cmd" | base64 -d) + +if [ "$cmd" == "list-files" ] ; then + + logger -t ruddo.PassQuery "requested password file list" + exec pass git ls-files | sed -e '/.gitattributes/d' -e '/.gpg-id/d' + +fi -- 2.45.2