From 79406edc0cce66d15d471b467105706138068abd Mon Sep 17 00:00:00 2001 From: frank Date: Tue, 17 Jan 2012 09:36:17 +0100 Subject: [PATCH] committing changes in /etc after emerge run Package changes: +media-sound/timidity++-2.13.2-r13 --- .etckeeper | 3 +++ conf.d/timidity | 27 +++++++++++++++++++++++++++ init.d/timidity | 20 ++++++++++++++++++++ timidity.cfg | 24 ++++++++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 conf.d/timidity create mode 100755 init.d/timidity create mode 100644 timidity.cfg diff --git a/.etckeeper b/.etckeeper index 07ef0cc5..f57dddb5 100755 --- a/.etckeeper +++ b/.etckeeper @@ -233,6 +233,7 @@ maybe chmod 0644 './conf.d/sshd' maybe chmod 0644 './conf.d/staticroute' maybe chmod 0644 './conf.d/svnserve' maybe chmod 0644 './conf.d/syslog-ng' +maybe chmod 0644 './conf.d/timidity' maybe chmod 0644 './conf.d/twistd' maybe chmod 0644 './conf.d/udev' maybe chmod 0644 './conf.d/urandom' @@ -789,6 +790,7 @@ maybe chmod 0755 './init.d/sysfs' maybe chmod 0755 './init.d/syslog-ng' maybe chmod 0755 './init.d/sysstat' maybe chmod 0755 './init.d/termencoding' +maybe chmod 0755 './init.d/timidity' maybe chmod 0755 './init.d/twistd' maybe chmod 0755 './init.d/udev' maybe chmod 0755 './init.d/udev-dev-tarball' @@ -1400,6 +1402,7 @@ maybe chmod 0644 './texmf/web2c/texmf.cnf' maybe chmod 0644 './texmf/web2c/updmap.cfg' maybe chmod 0755 './texmf/xdvi' maybe chmod 0644 './texmf/xdvi/xdvi.cfg' +maybe chmod 0644 './timidity.cfg' maybe chmod 0755 './udev' maybe chmod 0755 './udev/rules.d' maybe chmod 0644 './udev/rules.d/.keep_sys-fs_udev-0' diff --git a/conf.d/timidity b/conf.d/timidity new file mode 100644 index 00000000..0a153cad --- /dev/null +++ b/conf.d/timidity @@ -0,0 +1,27 @@ +# TIMIDITY_OPTS +# Command line arguements to be passed to timidity. -iA is always used +# Common options: +# -Os : Output to ALSA pcm device +# -Oe : Output to esd +# -On : Output to NAS +# +# -B, : Set number of buffer fragments(n), and buffer size(2^m) +# +# -EFreverb=0 : Disable MIDI reverb effect control +# -EFreverb=1[,level] : Enable MIDI reverb effect control +# `level' is optional to specify reverb level [0..127] +# This effect is only available in stereo +# (default) +# -EFreverb=2 : Global reverb effect + +TIMIDITY_OPTS="-B2,8 -Os -EFreverb=0" + +# TIMIDITY_PCM_NAME +# This option can be used to choose an alternate ALSA pcm device. This will +# be most useful for users of the dmix alsa plugin or those with multiple +# cards. If you don't know what this is, chances are you want the default. + +#TIMIDITY_PCM_NAME="default" + +#LADSPA plugins library path +LADSPA_PATH="/usr/lib/ladspa" diff --git a/init.d/timidity b/init.d/timidity new file mode 100755 index 00000000..444a9145 --- /dev/null +++ b/init.d/timidity @@ -0,0 +1,20 @@ +#!/sbin/runscript + +depend() { + after alsasound esound +} + +start() { + ebegin "Starting TiMidity++ Virtual Midi Sequencer" + test -n "$TIMIDITY_PCM_NAME" && export TIMIDITY_PCM_NAME + start-stop-daemon --start --background --chdir /usr/share/timidity \ + --chuid timidity:audio --make-pidfile --pidfile /var/run/timidity.pid \ + --exec /usr/bin/timidity -- -iA ${TIMIDITY_OPTS} + eend $? +} + +stop() { + ebegin "Stopping TiMidity++" + start-stop-daemon --stop --quiet --pidfile /var/run/timidity.pid + eend $? +} diff --git a/timidity.cfg b/timidity.cfg new file mode 100644 index 00000000..3923fb20 --- /dev/null +++ b/timidity.cfg @@ -0,0 +1,24 @@ +############################################################################## +# +# timidity-update core configuration file +# +# Easy process: +# +# 1. Change directory to patch directory +# 2. Source current/timidity.cfg +# +# Current patch set will always be symlinked to current, so make sure that the +# proper timidity.cfg is in there +# +# +# - source /usr/share/timidity +# - source ~/.timidity/current +# - Make ~/.timidity/current point to the current patch set, or to whatever +# the individual user sets +# - If ~/.timidity/current isn't found, it will try +# /usr/share/timidity/current +# + +dir /usr/share/timidity +dir ~/.timidity +source current/timidity.cfg -- 2.39.5