archrelease: copy trunk to extra-x86_64
[arch-packages.git] / p11-kit / trunk / p11-kit.install
blob2f82c56c26eb0a61e0c7102506f8b6a33f3bc8d7
1 _global_units() {
2     local unit=p11-kit-server.socket dir=/etc/systemd/user/sockets.target.wants
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
16 post_install() {
17   # Enable socket by default
18   _global_units enable
21 pre_remove() {
22   _global_units disable