diff options
author | Britney Fransen <brfransen@gmail.com> | 2020-10-04 16:23:23 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2020-10-04 16:23:23 (GMT) |
commit | 35554f46e45deeb64c830818d0d4b7d37b37ab00 (patch) | |
tree | 52a11dae51f72f9aff44fd68aea8e854b1b7ec8f /abs/core/p11-kit/p11-kit.install | |
parent | 8d2d9cec773a81a69f9a1eb77e79ec4bad6776d7 (diff) | |
download | linhes_pkgbuild-35554f46e45deeb64c830818d0d4b7d37b37ab00.zip linhes_pkgbuild-35554f46e45deeb64c830818d0d4b7d37b37ab00.tar.gz linhes_pkgbuild-35554f46e45deeb64c830818d0d4b7d37b37ab00.tar.bz2 |
p11-kit: update to 0.23.21
Diffstat (limited to 'abs/core/p11-kit/p11-kit.install')
-rw-r--r-- | abs/core/p11-kit/p11-kit.install | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/abs/core/p11-kit/p11-kit.install b/abs/core/p11-kit/p11-kit.install new file mode 100644 index 0000000..2f82c56 --- /dev/null +++ b/abs/core/p11-kit/p11-kit.install @@ -0,0 +1,23 @@ +_global_units() { + local unit=p11-kit-server.socket dir=/etc/systemd/user/sockets.target.wants + + case $1 in + enable) + mkdir -p $dir + ln -sf /usr/lib/systemd/user/$unit $dir/$unit + ;; + disable) + rm -f $dir/$unit + rmdir -p --ignore-fail-on-non-empty $dir + ;; + esac +} + +post_install() { + # Enable socket by default + _global_units enable +} + +pre_remove() { + _global_units disable +} |