]> Frank Brehm's Git Trees - config/bruni/etc.git/commitdiff
committing changes in /etc after emerge run
authorfrank <frank@bruni.home.brehm-online.com>
Tue, 17 Jan 2012 08:36:17 +0000 (09:36 +0100)
committerFrank Brehm <root@bruni.home.brehm-online.com>
Tue, 17 Jan 2012 08:36:17 +0000 (09:36 +0100)
Package changes:
+media-sound/timidity++-2.13.2-r13

.etckeeper
conf.d/timidity [new file with mode: 0644]
init.d/timidity [new file with mode: 0755]
timidity.cfg [new file with mode: 0644]

index 07ef0cc5961c63179f6927e38e06ab65f7c3bbdb..f57dddb5568e4ddf57b6d4f76d607265b9ecfa21 100755 (executable)
@@ -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 (file)
index 0000000..0a153ca
--- /dev/null
@@ -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<n>,<m> :  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 (executable)
index 0000000..444a914
--- /dev/null
@@ -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 (file)
index 0000000..3923fb2
--- /dev/null
@@ -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