summaryrefslogtreecommitdiff
path: root/community/cdemu-daemon/cdemu-daemon.install
blob: 7a2384b478f9a25f5d5d9a2bfc6e0e401451f5bc (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
31
32
33
34
35
36
37
38
39
40
post_install () {
  cat <<MSG
  > Only users with at a physical terminal or in the 'cdemu'
    group can communicate with the system daemon or make use
    of a session daemon.

  > If you want to output CD-Audio you need to use a session
    daemon, e.g. via "cdemu -b session". If you use ALSA and
    not PulseAudio, echo AUDIO_DRIVER=alsa > ~/.cdemu-daemon

  > The daemons are usually started on-demand, but a system
    daemon can be manually started via cdemu-daemon.service.
    See /etc/conf.d/cdemu-daemon for further configuration.

MSG

  post_upgrade $1 $1

  return 0
}

post_upgrade () {
  if (( $(vercmp $2 2.0.0) < 0)); then
    cat <<MSG
  > Configuration files and log files have been renamed in
    order to bring Arch closer to upstream. In particular,
    this affects:
      /etc/conf.d/cdemud  --> /etc/conf.d/cdemu-daemon
      /var/log/cdemud.log --> /var/log/cdemu-daemon.log
      ~/.cdemud           --> ~/.cdemu-daemon
      ~/.cdemud.log       --> ~/.cdemu-daemon.log
    Please move your configuration.

MSG
  fi

  return 0
}

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