Date: Sat, 21 Jan 2017 15:51:08 +0000 (UTC) From: Thomas Zander <riggs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432054 - in head/audio/jack: . files Message-ID: <201701211551.v0LFp8mJ001584@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: riggs Date: Sat Jan 21 15:51:08 2017 New Revision: 432054 URL: https://svnweb.freebsd.org/changeset/ports/432054 Log: Added rc.d script to start jackd PR: 215889 Submitted by: yuri@rawbw.com Added: head/audio/jack/files/jackd.in (contents, props changed) Modified: head/audio/jack/Makefile Modified: head/audio/jack/Makefile ============================================================================== --- head/audio/jack/Makefile Sat Jan 21 15:48:19 2017 (r432053) +++ head/audio/jack/Makefile Sat Jan 21 15:51:08 2017 (r432054) @@ -3,7 +3,7 @@ PORTNAME= jackit PORTVERSION= 0.124.1 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= audio MASTER_SITES= http://jackaudio.org/downloads/ DISTNAME= jack-audio-connection-kit-${PORTVERSION} @@ -22,6 +22,7 @@ LIB_DEPENDS= libsndfile.so:audio/libsndf GNU_CONFIGURE= yes USE_LDCONFIG= yes USES= gmake pathfix pkgconfig libtool bdb +USE_RC_SUBR= jackd CONFIGURE_ARGS= --disable-portaudio \ --with-default-tmpdir=/tmp Added: head/audio/jack/files/jackd.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/jack/files/jackd.in Sat Jan 21 15:51:08 2017 (r432054) @@ -0,0 +1,35 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: jackd +# REQUIRE: LOGIN +# +# Add the following line to /etc/rc.conf to enable jackd: +# +# jackd_enable="YES" +# + +: ${jackd_enable="NO"} +: ${jackd_user="root"} +: ${jackd_rtprio="NO"} +: ${jackd_args="-r -doss -r44100 -p1024 -n3 -w16"} + +. /etc/rc.subr + +name=jackd +rcvar=jackd_enable +procname=%%PREFIX%%/bin/jackd +start_cmd="start_jackd" + +start_jackd() { + echo "Starting ${name}." + if [ $jackd_rtprio = "YES" ]; then + local rt="rtprio 1" + fi + # daemon(8) should be able to set the realtime priority, but it isn't + $rt daemon -p /var/run/${name}.pid -u ${jackd_user} %%PREFIX%%/bin/jackd ${jackd_args} >/var/log/${name}.log 2>&1 +} + +load_rc_config ${name} +run_rc_command "$1"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701211551.v0LFp8mJ001584>