archrelease: copy trunk to extra-x86_64
[arch-packages.git] / gnupg / repos / core-x86_64 / gnupg.install
blob626e86d2b5fa0095a996855f98c79bbbf6cdc325
1 post_install() {
2   # run dirmngr once to create /root/.gnupg
3   # https://bugs.archlinux.org/task/47371
4   # https://bugs.archlinux.org/task/42798
5   dirmngr </dev/null &>/dev/null
8 post_upgrade() {
9   local unit
11   if (( $(vercmp "$2" '2.2.37-1') < 0)); then
12     for unit in {dirmngr,gpg-agent{,-{browser,extra,ssh}}}.socket; do
13       rm -f "/etc/systemd/user/sockets.target.wants/$unit"
14     done
15     printf "NOTE: GnuPG's systemd sockets are now enabled in the vendor location /usr/lib/systemd/user/!\n"
16   fi