~ubuntu-branches/debian/squeeze/alsa-utils/squeeze

« back to all changes in this revision

Viewing changes to debian/patches/90_debian_alsaconf_idmode.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Elimar Riesebieter
  • Date: 2008-06-25 10:14:09 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080625101409-uv0q00ftzk3tisex
Tags: 1.0.16-2
[ Elimar Riesebieter ]
Dropped udev recommendation (closes: 476728)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -e
2
 
##
3
 
## 90_debian_alsaconf_idmode.dpatch by Thomas Hood
4
 
##
5
 
## All lines beginning with `## DP:' are a description of the patch.
6
 
## DP: Use Debian-specified GID and mode for ALSA devices.
7
 
 
8
 
if [ $# -lt 1 ]; then
9
 
    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
10
 
    exit 1
11
 
fi
12
 
 
13
 
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
14
 
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
15
 
 
16
 
case "$1" in
17
 
    -patch) patch -p1 ${patch_opts} < $0;;
18
 
    -unpatch) patch -R -p1 ${patch_opts} < $0;;
19
 
    *)
20
 
        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
21
 
        exit 1;;
22
 
esac
23
 
 
24
 
exit 0
25
 
 
26
 
@DPATCH@
27
 
diff -urNad alsa-utils-1.0.8/alsaconf/alsaconf.in /tmp/dpep.YfAcTT/alsa-utils-1.0.8/alsaconf/alsaconf.in
28
 
--- alsa-utils-1.0.8/alsaconf/alsaconf.in       2005-02-18 21:40:15.000000000 +0100
29
 
+++ /tmp/dpep.YfAcTT/alsa-utils-1.0.8/alsaconf/alsaconf.in      2005-02-18 21:40:15.000000000 +0100
30
 
@@ -110,8 +110,8 @@
31
 
 do_legacy_only=0
32
 
 use_modinfo_db=0
33
 
 alsa_uid=0
34
 
-alsa_gid=0
35
 
-alsa_mode=0666
36
 
+alsa_gid=29
37
 
+alsa_mode=0660
38
 
 legacy_probe_card=""
39
 
 LOGFILE=""
40
 
 TESTSOUND="@TESTSOUND@"