~ubuntu-branches/ubuntu/vivid/oss4/vivid-proposed

« back to all changes in this revision

Viewing changes to setup/SunOS/postinstall

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis, Samuel Thibault, Romain Beauxis, Sebastien NOEL
  • Date: 2011-06-14 10:06:56 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110614100656-cx4oc7u426zn812z
Tags: 4.2-build2004-1
[ Samuel Thibault ]
* debian/control: Add liboss4-salsa2, liboss4-salsa-dev and
  liboss4-salsa-asound2 packages, equivalent to (and will replace) those from
  the oss-libsalsa package (Closes: #589127).
* debian/patches/liboss4-salsa.patch: New patch to rename libsalsa into
  liboss4-salsa to avoid conflicts in the archive for no good reason.
* debian/rules: Make in libOSSlib and libsalsa.
* debian/liboss4-salsa-dev.install, debian/liboss4-salsa2.install,
  debian/liboss4-salsa-asound2.links, debian/liboss4-salsa-dev.links:
  Install liboss4-salsa libraries like was done in the oss-libsalsa package.
* include-alsa: Add a copy of ALSA 1.0.5 headers: Cf ALSA_1.0.* symbols in
  libsalsa, this is the roughly supported version.
* debian/copyright: Update for new include-alsa files.
* alsa.pc: New file for compatibility with libasound-dev.
* debian/control:
  - Add Vcs-Browser and Vcs-Svn fields.
  - Use linux-any instead of the list of Linux archs (Closes: #604679).
  - Make dkms dependency linux-any only.
* debian/patches/hurd_iot.patch: New patch to fix soundcard.h usage in
  libsalsa on hurd-i386.
* debian/patches/libsalsa_fixes.patch: New patch to fix some printf usages
  and ioctl declaration in libsalsa.
* debian/patches/no_EBADE.patch: New patch to cope with hurd-i386 not having
  EBADE.
* debian/patches/CFLAGS.patch: New patch to make oss4 take debian/rules
  CFLAGS into account.
* debian/patches/snd_asoundlib_version.patch: New patch to add
  snd_asoundlib_version().
* debian/patches/generic_srccconf.patch: New patch to fix source
  configuration on unknown archs.

[ Romain Beauxis ]
* Fixed README.Debian to only mention dkms' modules.
* Switch to dpkg-source 3.0 (quilt) format
* Added DM-Upload-Allowed: yes

[ Sebastien NOEL ]
* New upstream release (Closes: #595298, #619272).
* Fix typo in initscript (Closes: #627149).
* debian/control: adjust linux-headers dependencies (Closes: #628879).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
echo "Setting up Open Sound System....please wait"
 
4
 
 
5
rm -f ${PKG_INSTALL_ROOT}/etc/rc3.d/S80ossinstall # Remove temporary installer
 
6
 
 
7
# Remove previous sound drivers and make a backup of the removed
 
8
# /etc/driver_aliases lines.
 
9
rem_drv oss > /dev/null 2>&1            # OSS 3.99.x and earlier
 
10
rem_drv ossaudios > /dev/null 2>&1      # Old name for sadasupport
 
11
 
 
12
for n in `ls /kernel/drv|grep audio|grep -v .conf` usb_ac usb_as
 
13
do
 
14
        echo Removing old driver $n
 
15
        # Copy the /etc/driver_aliases entries for the SADA drivers to a backup
 
16
        # file so that the drivers could be restored later.
 
17
        grep "^$n " ${PKG_INSTALL_ROOT}/etc/driver_aliases >> ${PKG_INSTALL_ROOT}/etc/oss/driver_aliases.removed
 
18
 
 
19
        rem_drv $n > /dev/null 2>&1     # Remove the driver
 
20
done
 
21
 
 
22
# Make sure the driver aliases collection doesn't contain duplicate lines
 
23
sort ${PKG_INSTALL_ROOT}/etc/oss/driver_aliases.removed|uniq > ${PKG_INSTALL_ROOT}/etc/oss/driver_aliases.bak
 
24
mv ${PKG_INSTALL_ROOT}/etc/oss/driver_aliases.bak ${PKG_INSTALL_ROOT}/etc/oss/driver_aliases.removed
 
25
rm -f ${PKG_INSTALL_ROOT}/etc/oss/driver_aliases.bak
 
26
 
 
27
# Remove previous OSS and SADA devices
 
28
rm -f ${PKG_INSTALL_ROOT}/dev/sound/*
 
29
rm -f ${PKG_INSTALL_ROOT}/dev/audio*
 
30
rm -f ${PKG_INSTALL_ROOT}/dev/dsp*
 
31
rm -f ${PKG_INSTALL_ROOT}/dev/mixer*
 
32
rm -f ${PKG_INSTALL_ROOT}/dev/midi*
 
33
rm -f ${PKG_INSTALL_ROOT}/dev/sndstat 
 
34
rm -f ${PKG_INSTALL_ROOT}/dev/sequencer 
 
35
rm -f ${PKG_INSTALL_ROOT}/dev/music
 
36
 
 
37
(cd ${PKG_INSTALL_ROOT}/etc/rc3.d;ln -s ../init.d/oss S89oss)
 
38
 
 
39
sync
 
40
 
 
41
rm -f ${PKG_INSTALL_ROOT}/tmp/osspkg.tmp
 
42
grep -v type=oss_ ${PKG_INSTALL_ROOT}/etc/devlink.tab > ${PKG_INSTALL_ROOT}/tmp/osspkg.tmp
 
43
cat ${PKG_INSTALL_ROOT}/tmp/osspkg.tmp > ${PKG_INSTALL_ROOT}/etc/devlink.tab
 
44
cat >> ${PKG_INSTALL_ROOT}/etc/devlink.tab <<EOF
 
45
type=oss_sysdev \M0
 
46
type=oss_audio  oss/\M1/\M2
 
47
EOF
 
48
 
 
49
if test ! -f ${PKG_INSTALL_ROOT}/etc/oss/userdefs
 
50
then
 
51
  echo "autosave_mixer yes" > ${PKG_INSTALL_ROOT}/etc/oss/userdefs
 
52
fi
 
53
 
 
54
if ${PKG_INSTALL_ROOT}/usr/xpg4/bin/grep -q 'install_imux yes' $OSSLIBDIR/etc/oss/userdefs
 
55
then
 
56
        # Install the imux driver
 
57
        ${PKG_INSTALL_ROOT}/usr/sbin/ossdetect -i
 
58
else
 
59
        ${PKG_INSTALL_ROOT}/usr/sbin/ossdetect 
 
60
fi
 
61
 
 
62
${PKG_INSTALL_ROOT}/usr/sbin/devlinks
 
63
${PKG_INSTALL_ROOT}/usr/sbin/ossdevlinks
 
64
 
 
65
if test "`ossinfo -g|grep TRIAL` " != " "
 
66
then
 
67
        echo
 
68
        echo
 
69
        echo
 
70
        echo "************************************************************"
 
71
        echo "* NOTE! You are using trial version of Open Sound System   *"
 
72
        echo "************************************************************"
 
73
        echo
 
74
 
 
75
        sleep 10
 
76
fi
 
77
 
 
78
if test "`ossinfo -g|grep EXPIRED` " != " "
 
79
then
 
80
        echo
 
81
        echo
 
82
        echo
 
83
        echo "****************************************************************"
 
84
        echo "* NOTE! Your Open Sound System evaluation license has expired  *"
 
85
        echo "****************************************************************"
 
86
        echo
 
87
 
 
88
        sleep 15
 
89
fi
 
90
 
 
91
echo ""
 
92
echo ""
 
93
echo ""
 
94
echo Open Sound System installation complete
 
95
echo ""
 
96
echo You can use the osstest command to test audio playback in your system.
 
97
echo ""
 
98
echo It may be necessary to reboot the system before all devices get properly
 
99
echo detected by the system.
 
100
 
 
101
exit 0