blob: 0297de2ee6d760526f70c50531e3cc1195883e1e (
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
42
|
DESCRIPTION = "Drop-in Esound replacement"
LICENSE = "GPLv2"
PR = "r2"
RCONFLICTS_${PN} = "esd"
RREPLACES_${PN} = "esd"
RDEPENDS_${PN} = " \
pulseaudio-server \
pulseaudio-misc \
pulseaudio-lib-protocol-esound \
pulseaudio-module-esound-compat-spawnfd \
pulseaudio-module-esound-compat-spawnpid \
pulseaudio-module-esound-protocol-tcp \
pulseaudio-module-esound-protocol-unix \
"
do_install() {
install -d ${D}/${bindir}
ln -sf ${bindir}/esdcompat ${D}/${bindir}/esd
}
PACKAGE_ARCH = "all"
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-esound-protocol-unix/d -e /load-module\ module-esound-protocol-tcp/d /etc/pulse/session
fi
# Load esound modules
echo "load-module module-esound-protocol-tcp" >> /etc/pulse/session
echo "load-module module-esound-protocol-unix" >> /etc/pulse/session
}
|