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'
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'
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'
--- /dev/null
+# 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"
--- /dev/null
+#!/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 $?
+}
--- /dev/null
+##############################################################################
+#
+# 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