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

« back to all changes in this revision

Viewing changes to setup/SCO_SV/mkoss.sh

  • 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
#!/usr/bin/ksh
 
2
 
 
3
BASEDIR=`pwd`
 
4
PKGDIR=$BASEDIR/combpkg
 
5
UW7DIR=$BASEDIR/oss-4.0-uw7.BUILD
 
6
OSR6DIR=$BASEDIR/oss-4.0-osr6.BUILD
 
7
COMBDIR=$BASEDIR/oss-4.0-comb
 
8
ARCHFILES="/usr/bin/ossxmix"
 
9
SETUPDIR=$COMBDIR/setup
 
10
 
 
11
# We must do this on a UW7 machine to redo the manual pages properly
 
12
if [ "`uname -s`" != "UnixWare" ]; then
 
13
        echo "Error: the combined build must be done on a UnixWare 7 machine!"
 
14
        exit 1
 
15
fi
 
16
 
 
17
# Make sure we have the built directories in place
 
18
if [ ! -d $UW7DIR ]; then
 
19
        echo "Error: you must have a build $UW7DIR directory installed!"
 
20
        exit 1
 
21
fi
 
22
if [ ! -d $OSR6DIR ]; then
 
23
        echo "Error: you must have a build $OSR6DIR directory installed!"
 
24
        exit 1
 
25
fi
 
26
 
 
27
#
 
28
# Recreate the combined directory
 
29
#
 
30
rm -rf $COMBDIR
 
31
mkdir $COMBDIR
 
32
 
 
33
# Copy the OSR6 files
 
34
cd $OSR6DIR
 
35
find prototype | cpio -pdumvL $COMBDIR
 
36
 
 
37
# Rename OSR6/copy UW7 files which are OS dependent
 
38
for file in $ARCHFILES
 
39
do
 
40
        mv $COMBDIR/prototype/$file $COMBDIR/prototype/$file.osr6
 
41
        cp $UW7DIR/prototype/$file $COMBDIR/prototype/$file.uw7
 
42
done
 
43
 
 
44
# Use the UW7 manual pages, which have the right format
 
45
rm -rf $COMBDIR/prototype/usr/man/*
 
46
cp -r $UW7DIR/prototype/usr/man/* $COMBDIR/prototype/usr/man
 
47
 
 
48
# Recreate the manual pages as plain installable text files
 
49
MANPATH=$COMBDIR/prototype/usr/man; export MANPATH
 
50
cd $MANPATH
 
51
find * -print | while read file
 
52
do
 
53
        mfile=${file#man[1-9]/}
 
54
        if [ "$file" != "$mfile" ]; then
 
55
                mfile=${mfile%\.[1-9]}
 
56
                man $mfile - > /dev/null
 
57
        else
 
58
                # Rename the directory the correct way
 
59
                sect=${file#man}
 
60
                mv $MANPATH/$file $MANPATH/man.$sect
 
61
        fi
 
62
done
 
63
rm -rf $MANPATH/man.[0-9]
 
64
 
 
65
# Copy the packaging files
 
66
rm -rf $SETUPDIR
 
67
mkdir $SETUPDIR
 
68
while read file
 
69
do
 
70
        cp $OSR6DIR/setup/SCO_SV/$file $SETUPDIR
 
71
done <<!EOF
 
72
        mkpkg.sh
 
73
        S89oss
 
74
        SCO_EULA
 
75
        i.drvcfg
 
76
        pkgdepend
 
77
        pkginfo
 
78
        postinstall
 
79
        postremove
 
80
        preremove
 
81
        r.drvcfg
 
82
!EOF
 
83
 
 
84
# Copy the new/modified packaging files
 
85
cd $PKGDIR
 
86
find * -print | cpio -pdumvL $SETUPDIR
 
87
 
 
88
# Create a version file
 
89
grep "define OSS_VERSION_ID" $OSR6DIR/kernel/framework/include/oss_version.h|sed 's/.*_ID "/v/'|sed 's/"//' > $COMBDIR/.version
 
90
 
 
91
# Copy the buildid file
 
92
cp $OSR6DIR/buildid.dat $COMBDIR
 
93
 
 
94
# Run the  mkpkg.sh to create the final package
 
95
cd $COMBDIR
 
96
./setup/mkpkg.sh