packages/pulseaudio: run as a pulse/pulse user/group, enable deprecated oss output, use new service functions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29077 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
df4b2e3547
commit
7fdcf9469a
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=pulseaudio
|
PKG_NAME:=pulseaudio
|
||||||
PKG_VERSION:=1.1
|
PKG_VERSION:=1.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://freedesktop.org/software/pulseaudio/releases/
|
PKG_SOURCE_URL:=http://freedesktop.org/software/pulseaudio/releases/
|
||||||
@ -94,9 +94,9 @@ define Package/pulseaudio-profiles
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--with-system-user=root \
|
--with-system-user=pulse \
|
||||||
--with-system-group=root \
|
--with-system-group=pulse \
|
||||||
--with-access-group=root \
|
--with-access-group=audio \
|
||||||
--with-database=simple \
|
--with-database=simple \
|
||||||
--enable-alsa \
|
--enable-alsa \
|
||||||
--disable-hal \
|
--disable-hal \
|
||||||
@ -104,7 +104,7 @@ CONFIGURE_ARGS += \
|
|||||||
--disable-tcpwrap \
|
--disable-tcpwrap \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
--disable-manpages \
|
--disable-manpages \
|
||||||
--disable-oss-output \
|
--enable-oss-output \
|
||||||
--disable-oss-wrapper \
|
--disable-oss-wrapper \
|
||||||
--disable-samplerate \
|
--disable-samplerate \
|
||||||
--disable-per-user-esound-socket \
|
--disable-per-user-esound-socket \
|
||||||
|
@ -1,12 +1,27 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2011 OpenWrt.org
|
# Copyright (C) 2011 OpenWrt.org
|
||||||
|
|
||||||
START=65
|
START=65
|
||||||
|
|
||||||
|
SERVICE_USE_PID=1
|
||||||
|
SERVICE_PID_FILE=/var/run/pulse/pid
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
mkdir -p /tmp/lib/pulse
|
user_exists pulse 51 || user_add pulse 51
|
||||||
/usr/bin/pulseaudio --daemonize --system --disallow-exit --disallow-module-loading --disable-shm --exit-idle-time=-1
|
group_exists pulse 51 || group_add pulse 51
|
||||||
|
[ -d /var/run/pulse ] || {
|
||||||
|
mkdir -m 0755 -p /var/run/pulse
|
||||||
|
chmod 0750 /var/run/pulse
|
||||||
|
chown pulse:pulse /var/run/pulse
|
||||||
|
}
|
||||||
|
[ -d /var/lib/pulse ] || {
|
||||||
|
mkdir -m 0755 -p /var/lib/pulse
|
||||||
|
chmod 0750 /var/lib/pulse
|
||||||
|
chown pulse:pulse /var/lib/pulse
|
||||||
|
}
|
||||||
|
service_start /usr/bin/pulseaudio --daemonize --system --disallow-exit --disallow-module-loading --disable-shm --exit-idle-time=-1
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
killall pulseaudio
|
service_stop /usr/bin/pulseaudio
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user