This commit is contained in:
Daniel Langbein 2021-06-15 00:28:52 +02:00
parent 1e3b4217c2
commit aa77634ace
3 changed files with 9 additions and 5 deletions

View File

@ -2,7 +2,7 @@
_pkgname=gnupg _pkgname=gnupg
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.0.3 pkgver=0.0.4
pkgrel=2 pkgrel=2
pkgdesc="gnupg with configuration" pkgdesc="gnupg with configuration"
arch=('any') arch=('any')
@ -30,5 +30,6 @@ package() {
install -dm0700 "$pkgdir"/etc/skel/.gnupg/ install -dm0700 "$pkgdir"/etc/skel/.gnupg/
install -Dm0600 gpg.conf "$pkgdir"/etc/skel/.gnupg/gpg.conf install -Dm0600 gpg.conf "$pkgdir"/etc/skel/.gnupg/gpg.conf
install -Dm0600 gpg-agent.conf "$pkgdir"/etc/skel/.gnupg/gpg-agent.conf install -Dm0600 gpg-agent.conf "$pkgdir"/etc/skel/.gnupg/gpg-agent.conf
install -Dm0600 99_gnupg.sh "$pkgdir"/etc/profile.d/99_gnupg.sh
install -Dm0644 99_gnupg.sh "$pkgdir"/etc/profile.d/99_gnupg.sh
} }

View File

@ -43,7 +43,7 @@ Location: `~/.gnupg/gpg-agent.conf`
# If a graphical application shall use ones smartcard one needs to specify a graphical pinentry program. # If a graphical application shall use ones smartcard one needs to specify a graphical pinentry program.
pinentry-program /usr/bin/pinentry-gnome3 pinentry-program /usr/bin/pinentry-gnome3
# Enable ssh to use a smartcard for authentification. # Enable ssh to use a smartcard for authentication.
enable-ssh-support enable-ssh-support
``` ```
@ -81,7 +81,10 @@ gpg-connect-agent updatestartuptty /bye >/dev/null
* Archwiki: [GnuPG#Set_SSH_AUTH_SOCK](https://wiki.archlinux.org/index.php/GnuPG#Set_SSH_AUTH_SOCK) * Archwiki: [GnuPG#Set_SSH_AUTH_SOCK](https://wiki.archlinux.org/index.php/GnuPG#Set_SSH_AUTH_SOCK)
One's login shell should run this: One's login shell should run the following.
**Note**: `/etc/profile.d/99_gnupg.sh` does **not** work!
**TODO** maybe was just wrong permission?
```shell ```shell
unset SSH_AGENT_PID unset SSH_AGENT_PID

View File

@ -2,5 +2,5 @@
# If a graphical application shall use ones smartcard one needs to specify a graphical pinentry program. # If a graphical application shall use ones smartcard one needs to specify a graphical pinentry program.
pinentry-program /usr/bin/pinentry-gnome3 pinentry-program /usr/bin/pinentry-gnome3
# Enable ssh to use a smartcard for authentification. # Enable ssh to use a smartcard for authentication.
enable-ssh-support enable-ssh-support