Changeset 29077


Ignore:
Timestamp:
2011-11-13T23:16:21+01:00 (6 years ago)
Author:
nico
Message:

packages/pulseaudio: run as a pulse/pulse user/group, enable deprecated oss output, use new service functions

Location:
packages/sound/pulseaudio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/sound/pulseaudio/Makefile

    r28494 r29077  
    1010PKG_NAME:=pulseaudio 
    1111PKG_VERSION:=1.1 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    9595 
    9696CONFIGURE_ARGS += \ 
    97         --with-system-user=root \ 
    98         --with-system-group=root \ 
    99         --with-access-group=root \ 
     97        --with-system-user=pulse \ 
     98        --with-system-group=pulse \ 
     99        --with-access-group=audio \ 
    100100        --with-database=simple \ 
    101101        --enable-alsa \ 
     
    105105        --disable-nls \ 
    106106        --disable-manpages \ 
    107         --disable-oss-output \ 
     107        --enable-oss-output \ 
    108108        --disable-oss-wrapper \ 
    109109        --disable-samplerate \ 
     
    125125CONFIGURE_ARGS += \ 
    126126        --disable-avahi \ 
    127         --disable-dbus   
     127        --disable-dbus 
    128128endif 
    129129 
  • packages/sound/pulseaudio/files/pulseaudio.init

    r25872 r29077  
    11#!/bin/sh /etc/rc.common 
    22# Copyright (C) 2011 OpenWrt.org 
     3 
    34START=65 
    45 
     6SERVICE_USE_PID=1 
     7SERVICE_PID_FILE=/var/run/pulse/pid 
     8 
    59start() { 
    6         mkdir -p /tmp/lib/pulse 
    7         /usr/bin/pulseaudio --daemonize --system --disallow-exit --disallow-module-loading --disable-shm --exit-idle-time=-1 
     10        user_exists pulse 51 || user_add pulse 51 
     11        group_exists pulse 51 || group_add pulse 51 
     12        [ -d /var/run/pulse ] || { 
     13                mkdir -m 0755 -p /var/run/pulse 
     14                chmod 0750 /var/run/pulse 
     15                chown pulse:pulse /var/run/pulse 
     16        } 
     17        [ -d /var/lib/pulse ] || { 
     18                mkdir -m 0755 -p /var/lib/pulse 
     19                chmod 0750 /var/lib/pulse 
     20                chown pulse:pulse /var/lib/pulse 
     21        } 
     22        service_start /usr/bin/pulseaudio --daemonize --system --disallow-exit --disallow-module-loading --disable-shm --exit-idle-time=-1 
    823} 
    924 
    1025stop() { 
    11         killall pulseaudio 
     26        service_stop /usr/bin/pulseaudio 
    1227} 
Note: See TracChangeset for help on using the changeset viewer.