/usr/sbin/xrdp-build-pulse-modules is in xrdp-pulseaudio-installer 0.9.5-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | #!/bin/sh
#-
# Script to compile / recompile xrdp PulseAudio modules.
# The caller needs to be root or a member of the sudo group.
# Also, /etc/apt/sources.list must contain a valid deb-src line.
#
# © 2017 Wolfgang Schweer <wschweer@arcor.de>
# © 2017 Dominik George <nik@naturalnet.de>
#
# Published under the "GPL v2 or any later version" license.
#-
# This script downloads the Debian source package for pulseaudio
# corresponding to the installed binary version, then builds the PulseAudio
# module for xrdp and installs it.
set -ex
# Get an empty temporary directory
tmp=$(mktemp -d); cd "$tmp"
# Determine versions of pulseaudio and xrdp
pulseaudio_version=$(dpkg-query -W -f='${source:Version}' pulseaudio)
pulseaudio_upstream_version=$(dpkg-query -W -f='${source:Upstream-Version}' pulseaudio)
# Determine mirror
if test -x /usr/bin/apt ; then
set -- $(apt show "pulseaudio=$pulseaudio_version" 2>/dev/null)
mirror=$2
suite=${3#*/}
fi
if test "x$mirror" = x; then
mirror="http://ftp.debian.org/debian/"
suite=main
fi
# Download source packages
dget "$mirror/pool/$suite/p/pulseaudio/pulseaudio_$pulseaudio_version.dsc"
# Configure pulseaudio source
cd "pulseaudio-$pulseaudio_upstream_version"
./configure
cd -
# Build PulseAudio module
cd "/usr/src/xrdp-pulseaudio-installer"
make PULSE_DIR="$tmp/pulseaudio-$pulseaudio_upstream_version"
# Install modules to Pulseaudio modules directory
install -t "/var/lib/xrdp-pulseaudio-installer" -D -m 644 *.so
# Clean up
make clean
cd /
rm -rf "$tmp"
|