1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00

Add missing LD_PRELOAD= environment variable to the virtual_oss rc.d .

PR:		250046
Approved by:	pi (implicit)
This commit is contained in:
Hans Petter Selasky 2020-10-03 19:23:22 +00:00
parent 85054f7726
commit d72aa5b419
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=551339
2 changed files with 12 additions and 2 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= virtual_oss
PORTVERSION= 1.2.6
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= http://www.selasky.org/hans_petter/distfiles/ \
http://home.selasky.org/distfiles/
@ -18,6 +18,8 @@ LIB_DEPENDS= libsamplerate.so:audio/libsamplerate
USES= tar:bzip2 uidfix
USE_RC_SUBR= virtual_oss
SUB_LIST+= LIBSAMPLERATE="${LOCALBASE}/lib/libsamplerate.so:"
OPTIONS_DEFINE= BLUETOOTH BT_SPEAKER DEBUG EQUALIZER HTTPD
OPTIONS_DEFAULT=BLUETOOTH EQUALIZER
@ -38,6 +40,8 @@ EQUALIZER_MAKE_ARGS= HAVE_EQUALIZER="YES"
EQUALIZER_LIB_DEPENDS= libfftw3.so:math/fftw3
EQUALIZER_PLIST_FILES= sbin/virtual_equalizer \
man/man8/virtual_equalizer.8.gz
EQUALIZER_SUB_LIST= LIBFFTW3="${LOCALBASE}/lib/libfftw3.so:"
EQUALIZER_SUB_LIST_OFF= LIBFFTW3=""
HTTPD_DESC= Build with HTTP server support
HTTPD_MAKE_ARGS= HAVE_HTTPD="YES"

View File

@ -56,11 +56,17 @@ load_rc_config $name
: ${virtual_oss_dsp:="$virtual_oss_default_args"}
: ${virtual_oss_delay:=1}
command="%%PREFIX%%/sbin/${name}"
command=virtual_oss
command_args="-B"
pidpath="/var/run/${name}"
virtual_oss()
{
# When running early we need to pre-load some libraries
env LD_PRELOAD=%%LIBFFTW3%%%%LIBSAMPLERATE%% %%PREFIX%%/sbin/virtual_oss $*
}
virtual_oss_precmd()
{
/usr/bin/install -d -m 0755 -o root ${pidpath}