summaryrefslogtreecommitdiff
path: root/extra/pulseaudio/pulseaudio.install
blob: 9de8b0e8fec4066396a057d132f4796613ce1ae2 (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
_common() {
  setcap cap_net_raw=ep usr/lib/pulse/proximity-helper 2>/dev/null || chmod +s usr/lib/pulse/proximity-helper
}

post_install() {
  _common
  cat << MES
>>> See the wiki at http://wiki.archlinux.org/index.php/PulseAudio for details
    on configuring your system for PulseAudio.

>>> Make sure to install pulseaudio-alsa to configure ALSA for PulseAudio.
MES
}

post_upgrade() {
  _common
  cat << MES
>>> If you have per-user copies of configuration files (such as client.conf,
    daemon.conf or default.pa) in ~/.pulse/, make sure you keep them in sync
    with changes to the packaged files in /etc/pulse/. Otherwise, PulseAudio
    may refuse to start due to configuration errors.
MES
  if (( $(vercmp $2 3.0-3) < 0 )); then
    cat << MES

>>> Autospawn is now disabled by default. If you need to run PulseAudio outside
    of an X session, either:
      - Enable autospawn in client.conf, or
      - Start it manually by executing 'pulseaudio --start'
MES
  fi
}

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