[arch-commits] Commit in (6 files)

Daniel Griffiths dgriffiths at archlinux.org
Wed Mar 3 21:31:12 UTC 2010


    Date: Wednesday, March 3, 2010 @ 16:31:12
  Author: dgriffiths
Revision: 71077

FS#16898 - with Tobias' blessing

Added:
  jack/
  jack/repos/
  jack/trunk/
  jack/trunk/PKGBUILD
  jack/trunk/jack.conf.d
  jack/trunk/jack.rc.d

-------------+
 PKGBUILD    |   33 +++++++++++++++++++++++++++++++++
 jack.conf.d |   42 ++++++++++++++++++++++++++++++++++++++++++
 jack.rc.d   |   39 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 114 insertions(+)

Added: jack/trunk/PKGBUILD
===================================================================
--- jack/trunk/PKGBUILD	                        (rev 0)
+++ jack/trunk/PKGBUILD	2010-03-03 21:31:12 UTC (rev 71077)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: tobias <tobias at archlinux.net>
+# Contributor: Robert Emil Berge <robert at rebi.no>
+
+pkgname=jack
+pkgver=0.116.2
+pkgrel=1
+pkgdesc="A low-latency audio server"
+arch=('i686' 'x86_64')
+license=('GPL2' 'LGPL2')
+depends=('libsndfile' 'bash')
+makedepends=('doxygen')
+url="http://jackit.sourceforge.net/"
+backup=(etc/conf.d/jack-audio-connection-kit)
+options=('!libtool')
+replaces=('jack-audio-connection-kit')
+source=(http://jackaudio.org/downloads/${pkgname}-${pkgver}.tar.gz \
+        ${pkgname}.rc.d ${pkgname}.conf.d)
+md5sums=('9c0ae9880e9b6e081f1a238fe6a28bd5' '15a3ecd76b3186eb0fa9c6d16ffbdfef' \
+         '0517b67ef912e2a84b6a15dea2dc2680')
+
+build() {
+	cd ${srcdir}/${pkgname}-${pkgver}
+	./configure --prefix=/usr --libdir=/usr/lib
+	make || return 1
+}
+
+package() {
+	cd ${srcdir}/${pkgname}-${pkgver}
+	make DESTDIR=${pkgdir} install
+	install -Dm755 ../${pkgname}.rc.d ${pkgdir}/etc/rc.d/${pkgname}
+	install -Dm644 ../${pkgname}.conf.d ${pkgdir}/etc/conf.d/${pkgname}
+}


Property changes on: jack/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
   + Id

Added: jack/trunk/jack.conf.d
===================================================================
--- jack/trunk/jack.conf.d	                        (rev 0)
+++ jack/trunk/jack.conf.d	2010-03-03 21:31:12 UTC (rev 71077)
@@ -0,0 +1,42 @@
+# Jack Audio Connection Kit options
+
+
+################################################ general server options
+# output form `jackd --help`
+# extend the switches in the OPTIONS variable
+# usage: jackd [ --realtime OR -R [ --realtime-priority OR -P priority ] ]
+#              [ --no-mlock OR -m ]
+#              [ --timeout OR -t client-timeout-in-msecs ]
+#              [ --port-max OR -p maximum-number-of-ports]
+#              [ --verbose OR -v ]
+#              [ --silent OR -s ]
+#              [ --version OR -V ]
+#          -d driver [ ... driver args ... ]
+#              driver can be `alsa', `dummy', `oss' or `portaudio'
+
+SERVER_PARAMS="-s -d alsa"
+
+
+#################################################  options passed to the driver
+# currently only options for alsa are available
+
+
+# Parameters for driver 'alsa' (all parameters are optional):
+#   -C, --capture   Provide only capture ports.  Optionally set device (default: none)
+#   -P, --playback  Provide only playback ports.  Optionally set device (default: none)
+#   -d, --device    ALSA device name (default: hw:0)
+#   -r, --rate      Sample rate (default: 48000)
+#   -p, --period    Frames per period (default: 1024)
+#   -n, --nperiods  Number of periods in hardware buffer (default: 2)
+#   -H, --hwmon     Hardware monitoring, if available (default: false)
+#   -M, --hwmeter   Hardware metering, if available (default: false)
+#   -D, --duplex    Provide both capture and playback ports (default: true)
+#   -s, --softmode  Soft-mode, no xrun handling (default: false)
+#   -m, --monitor   Provide monitor ports for the output (default: false)
+#   -z, --dither    Dithering mode (default: n)
+#   -i, --inchannels        Number of capture channels (defaults to hardware max) (default: 0)
+#   -o, --outchannels       Number of playback channels (defaults to hardware max) (default: 0)
+#   -S, --shorts    Try 16-bit samples before 32-bit (default: false)
+
+DRIVER_PARAMS="-d hw:0 -p 1024"
+

Added: jack/trunk/jack.rc.d
===================================================================
--- jack/trunk/jack.rc.d	                        (rev 0)
+++ jack/trunk/jack.rc.d	2010-03-03 21:31:12 UTC (rev 71077)
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+# source application-specific settings
+[ -f /etc/conf.d/jack ] && . /etc/conf.d/jack
+
+PID=`pidof -o %PPID /usr/bin/jackd`
+
+case "$1" in
+  start)
+    stat_busy "Starting JACK Daemon"
+    [ -z "$PID" ] && /usr/bin/jackd $SERVER_PARAMS -d $DRIVER_PARAMS &> /dev/null &
+    if [ ! -z "$PID" -o $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon jack
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping JACK Daemon"
+    [ ! -z "$PID" ]  && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon jack
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"  
+esac




More information about the arch-commits mailing list