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