mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(gpg)
This commit is contained in:
parent
5d27c7e5fe
commit
fc9bc5d47f
2 changed files with 9 additions and 6 deletions
|
@ -1,10 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
d=$(dirname "$0")
|
d=$(dirname "$0")
|
||||||
etc="$d/../etc"
|
etc="$d/../etc/gnupg"
|
||||||
|
|
||||||
if [ ! -f "$etc/gpg.conf" ]; then
|
if [ ! -f "$etc/gpg.conf" ]; then
|
||||||
mkdir -p "$etc"
|
mkdir -p "$etc"
|
||||||
|
chmod 700 "$etc"
|
||||||
cat << EOF > "$etc"/gpg.conf
|
cat << EOF > "$etc"/gpg.conf
|
||||||
use-agent
|
use-agent
|
||||||
pinentry-mode loopback
|
pinentry-mode loopback
|
||||||
|
|
|
@ -27,7 +27,7 @@ dependencies:
|
||||||
|
|
||||||
runtime:
|
runtime:
|
||||||
env:
|
env:
|
||||||
GNUPGHOME: "{{prefix}}/etc/gnupg"
|
GNUPGHOME: '{{prefix}}/etc/gnupg'
|
||||||
|
|
||||||
build:
|
build:
|
||||||
freedesktop.org/pkg-config: '*'
|
freedesktop.org/pkg-config: '*'
|
||||||
|
@ -40,12 +40,14 @@ build:
|
||||||
- run: |
|
- run: |
|
||||||
sed -i.bak "s|{{prefix}}|\$(dirname \$0)/..|g" gpg-wks-client
|
sed -i.bak "s|{{prefix}}|\$(dirname \$0)/..|g" gpg-wks-client
|
||||||
rm gpg-wks-client.bak
|
rm gpg-wks-client.bak
|
||||||
working-directory: "{{prefix}}/libexec"
|
working-directory: '{{prefix}}/libexec'
|
||||||
- run: mkdir -p var/run etc/gnupg
|
- run: |
|
||||||
working-directory: "{{prefix}}"
|
mkdir -p var/run etc/gnupg
|
||||||
|
chmod 700 etc/gnupg
|
||||||
|
working-directory: '{{prefix}}'
|
||||||
- run: |
|
- run: |
|
||||||
mv ./gpg ./gpg-exec
|
mv ./gpg ./gpg-exec
|
||||||
working-directory: "{{prefix}}/bin"
|
working-directory: '{{prefix}}/bin'
|
||||||
- run: install gpg {{prefix}}/bin/
|
- run: install gpg {{prefix}}/bin/
|
||||||
working-directory: props
|
working-directory: props
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in a new issue