mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Added rc.d script to start jackd
PR: 215889 Submitted by: yuri@rawbw.com
This commit is contained in:
parent
229c0697db
commit
726788f263
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432054
2 changed files with 37 additions and 1 deletions
|
@ -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/libsndfile \
|
|||
GNU_CONFIGURE= yes
|
||||
USE_LDCONFIG= yes
|
||||
USES= gmake pathfix pkgconfig libtool bdb
|
||||
USE_RC_SUBR= jackd
|
||||
|
||||
CONFIGURE_ARGS= --disable-portaudio \
|
||||
--with-default-tmpdir=/tmp
|
||||
|
|
35
audio/jack/files/jackd.in
Normal file
35
audio/jack/files/jackd.in
Normal file
|
@ -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"
|
Loading…
Add table
Reference in a new issue