This commit is contained in:
Jacob Heider 2023-11-11 21:38:52 -05:00 committed by Jacob Heider
parent 5d27c7e5fe
commit fc9bc5d47f
2 changed files with 9 additions and 6 deletions

View file

@ -1,10 +1,11 @@
#!/bin/sh
d=$(dirname "$0")
etc="$d/../etc"
etc="$d/../etc/gnupg"
if [ ! -f "$etc/gpg.conf" ]; then
mkdir -p "$etc"
chmod 700 "$etc"
cat << EOF > "$etc"/gpg.conf
use-agent
pinentry-mode loopback

View file

@ -27,7 +27,7 @@ dependencies:
runtime:
env:
GNUPGHOME: "{{prefix}}/etc/gnupg"
GNUPGHOME: '{{prefix}}/etc/gnupg'
build:
freedesktop.org/pkg-config: '*'
@ -40,12 +40,14 @@ build:
- run: |
sed -i.bak "s|{{prefix}}|\$(dirname \$0)/..|g" gpg-wks-client
rm gpg-wks-client.bak
working-directory: "{{prefix}}/libexec"
- run: mkdir -p var/run etc/gnupg
working-directory: "{{prefix}}"
working-directory: '{{prefix}}/libexec'
- run: |
mkdir -p var/run etc/gnupg
chmod 700 etc/gnupg
working-directory: '{{prefix}}'
- run: |
mv ./gpg ./gpg-exec
working-directory: "{{prefix}}/bin"
working-directory: '{{prefix}}/bin'
- run: install gpg {{prefix}}/bin/
working-directory: props
env: