GnuPG with scdaemon_shared-access patch applied
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 lines
595 B

  1. _global_units() {
  2. _units=(dirmngr.socket gpg-agent.socket gpg-agent-{browser,extra,ssh}.socket)
  3. _dir=/etc/systemd/user/sockets.target.wants
  4. case $1 in
  5. enable)
  6. mkdir -p $_dir
  7. for _u in "${_units[@]}"; do
  8. ln -sf /usr/lib/systemd/user/$_u $_dir/$_u
  9. done
  10. ;;
  11. disable)
  12. for _u in "${_units[@]}"; do
  13. rm -f $_dir/$_u
  14. done
  15. rmdir -p --ignore-fail-on-non-empty $_dir
  16. ;;
  17. esac
  18. }
  19. post_install() {
  20. # See FS#42798 and FS#47371
  21. dirmngr </dev/null &>/dev/null
  22. # Let systemd supervise daemons by default
  23. _global_units enable
  24. }
  25. pre_remove() {
  26. _global_units disable
  27. }