blob: f309f7a143d25468149dd16836266199c6d43294 (
plain)
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
|
DESCRIPTION = "Meta package to enable zeroconf audio with pulseaudio"
DEPENDS = "avahi pulseaudio"
RDEPENDS = " \
avahi-daemon \
pulseaudio-server \
pulseaudio-module-alsa-sink \
pulseaudio-module-alsa-source \
pulseaudio-module-cli \
pulseaudio-module-esound-protocol-unix \
pulseaudio-module-simple-protocol-tcp \
pulseaudio-module-native-protocol-unix \
pulseaudio-module-cli-protocol-unix \
pulseaudio-module-zeroconf-publish \
"
PR = "r2"
S = "${WORKDIR}"
do_compile() {
:
}
PACKAGE_ARCH = "all"
ALLOW_EMPTY_${PN} = "1"
pkg_postinst_${PN} () {
#!/bin/sh
if [ "x$D" != "x" ]; then
exit 1
fi
mkdir -p /etc/pulse || true
# Remove existing entries
if [ -e /etc/pulse/session ] ; then
sed -i -e /load-module\ module-native-protocol-tcp/d -e /load-module\ module-zeroconf-publish/d /etc/pulse/session
fi
# Enable network and zeroconf plugins, allow localhost and usbnet access (where available)
echo "load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16" >> /etc/pulse/session
echo "load-module module-zeroconf-publish" >> /etc/pulse/session
}
|