summaryrefslogtreecommitdiff
path: root/pcr/guix/guix.install
blob: 54f7659b6c73fcdcf13edac5dd4ecfef475eed04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
infodir=usr/share/info
file=guix.info

post_install() {
  echo "Guix 0.8.3 already provides a systemd service file in its release,"
  echo "so the one included in AUR package is now removed. Please use the"
  echo "following commands to keep your installation compatible with the"
  echo "new service file:"
  echo
  echo "  systemctl disable guix"
  echo "  systemctl enable guix-daemon"
  echo "  groupmod -n guixbuild guix-builder"
  echo "  usermod -l guixbuild guix-builder"
  echo
  echo "If you have /etc/systemd/system/guix.service.d, please also remember"
  echo "to review its content and rename it to guix-daemon.service.d."
  [[ -x usr/bin/install-info ]] || return 0
  install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
}

post_upgrade() {
  post_install "$1"
}

pre_remove() {
  [[ -x usr/bin/install-info ]] || return 0
  install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
}

# vim:set ts=2 sw=2 ft=sh et: