You are not logged in.

#1 2020-12-08 04:12:16

thejavascriptman
Member
Registered: 2020-02-11
Posts: 25

[SOLVED] How to sign packages with makepkg non-interactively

I'm trying to setup some building automation, so far I can clone and build the packages successfully (running just `makepkg` works fine), however when I try to run `makepkg --sign` I get asked for my GPG passphrase.

What I'm trying to accomplish is to build packages automatically at home and then have the packages available on an untrusted cloud service (e.g. Amazon or Google Cloud).

Is there a way to pass to makepkg my GPG passphrase via command line or environment variable? (I would prefer to avoid creating GPG keys without a passphrase)

p.s. man(8) and man(5) only give information about enabling signing and passing a key but they say nothing about the passphrase

Last edited by thejavascriptman (2020-12-09 05:18:27)

Offline

#2 2020-12-08 09:35:24

a821
Member
Registered: 2012-10-31
Posts: 381

Re: [SOLVED] How to sign packages with makepkg non-interactively

Offline

#3 2020-12-09 05:18:06

thejavascriptman
Member
Registered: 2020-02-11
Posts: 25

Re: [SOLVED] How to sign packages with makepkg non-interactively

Ahh, didn't realize it was matter of configuring `allow-loopback-pinentry` and then just echoing and piping the password to makepkg, thank you!

Offline

Board footer

Powered by FluxBB