summaryrefslogtreecommitdiff
path: root/community/cdemu-daemon/cdemu-daemon.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/cdemu-daemon/cdemu-daemon.install
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/cdemu-daemon/cdemu-daemon.install')
-rw-r--r--community/cdemu-daemon/cdemu-daemon.install42
1 files changed, 42 insertions, 0 deletions
diff --git a/community/cdemu-daemon/cdemu-daemon.install b/community/cdemu-daemon/cdemu-daemon.install
new file mode 100644
index 000000000..169ba6ec8
--- /dev/null
+++ b/community/cdemu-daemon/cdemu-daemon.install
@@ -0,0 +1,42 @@
+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
+
+ modprobe vhba
+
+ 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: