repo.or.cz
/
arch-packages.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
archrelease: copy trunk to extra-x86_64
[arch-packages.git]
/
p11-kit
/
trunk
/
p11-kit.install
blob
2f82c56c26eb0a61e0c7102506f8b6a33f3bc8d7
1
_global_units() {
2
local unit=p11-kit-server.socket dir=/etc/systemd/user/sockets.target.wants
3
4
case $1 in
5
enable)
6
mkdir -p $dir
7
ln -sf /usr/lib/systemd/user/$unit $dir/$unit
8
;;
9
disable)
10
rm -f $dir/$unit
11
rmdir -p --ignore-fail-on-non-empty $dir
12
;;
13
esac
14
}
15
16
post_install() {
17
# Enable socket by default
18
_global_units enable
19
}
20
21
pre_remove() {
22
_global_units disable
23
}