summaryrefslogtreecommitdiffstats
path: root/abs/core/p11-kit/p11-kit.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/p11-kit/p11-kit.install')
-rw-r--r--abs/core/p11-kit/p11-kit.install23
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
+}