~ubuntu-branches/ubuntu/utopic/oss4/utopic

« back to all changes in this revision

Viewing changes to setup/Linux/mkdeb.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
#!/bin/sh
 
2
 
 
3
. ./.directories
 
4
 
 
5
VERSION=`sh showversion.sh`
 
6
VERSION=${VERSION#v}
 
7
RELEASE=`cat buildid.dat`
 
8
OSSNAME="oss-linux"
 
9
 
 
10
# Chosing the right architecture
 
11
if test `uname -m` = "x86_64"; then ARCH=amd64
 
12
else ARCH=`uname -m|sed 's/^i[3-9]86/i386/'`
 
13
fi
 
14
 
 
15
DEBNAME=${OSSNAME}-${VERSION}-${RELEASE}_${ARCH}
 
16
 
 
17
# Checking for known MD5 hashing programs
 
18
if type md5sum > /dev/null 2>&1; then MD5=MD5SUM
 
19
elif type openssl > /dev/null 2>&1; then MD5=OPENSSL
 
20
elif type md5 > /dev/null 2>&1; then MD5=MD5
 
21
elif type digest > /dev/null 2>&1; then MD5=DIGEST
 
22
else echo "There has been no MD5 creation utily found. deb archive creation will be aborted." && exit 1
 
23
fi
 
24
 
 
25
echo building $DEBNAME.deb
 
26
 
 
27
 
 
28
mkdir control 2>/dev/null
 
29
echo "2.0" > debian-binary
 
30
cat > control/control << END
 
31
Package: $OSSNAME
 
32
Version: ${VERSION}-${RELEASE}
 
33
Section: sound
 
34
Priority: optional
 
35
Architecture: $ARCH
 
36
Installed-Size: `du -ks prototype | awk '{print $1}'`
 
37
Build-Depends: build-essential sed gawk libtool libgtk2.0-dev
 
38
Depends: binutils, gcc, libc6, libgtk2.0-0, sed (>= 1.0.0)
 
39
Conflicts: libflashsupport
 
40
Provides: oss
 
41
Suggests: libsdl1.2debian-oss | libsdl1.2debian-all, libesd0, libwine-oss, libsox-fmt-oss, mpg123, gstreamer0.10-plugins-bad (>= 0.10.7), libasound2-plugins
 
42
Maintainer: 4Front Technologies <support@opensound.com>
 
43
Description: Open Sound System (http://www.opensound.com)
 
44
 OSS provides libraries and necessary drivers for practically all sound
 
45
  cards on the market including PnP and many PCI ones which enable you
 
46
  to play sound files, compose music, use MIDI (only included in the
 
47
  testing releases) and adjust your sound card using various user space
 
48
  programs.
 
49
END
 
50
 
 
51
# Copying the menu and copyright file to the right place, taking care that the md5sums generation will take place AFTER this step
 
52
mkdir -p prototype/usr/share/menu prototype/usr/share/doc/oss-linux
 
53
cp setup/Linux/menu.ex prototype/usr/share/menu/ossxmix
 
54
cp setup/Linux/copyright prototype/usr/share/doc/oss-linux/
 
55
 
 
56
 
 
57
# Create the MD5 sums file using the program we have found earlier
 
58
(cd prototype; find . -type f -exec sh ../setup/Linux/md5.sh "$MD5" "{}" \; > ../control/md5sums)
 
59
 
 
60
(cd prototype; find . -type f -print | sed 's/^.//g' | egrep "^/etc/" > ../control/conffiles)
 
61
 
 
62
 
 
63
# Removing older builds
 
64
rm -rf /tmp/prototype $DEBNAME.deb
 
65
 
 
66
 
 
67
cp -pRf prototype /tmp
 
68
cp setup/Linux/preinst setup/Linux/postinst setup/Linux/prerm setup/Linux/postrm control/
 
69
if test -e prototype/$OSSLIBDIR/lib/libsalsa.so*
 
70
then
 
71
  cp setup/Linux/shlibs control/
 
72
fi
 
73
 
 
74
 
 
75
# Correcting file and directory permissions required by lintian
 
76
chmod 0755 control/control
 
77
 
 
78
# Building control and data archives
 
79
(cd control; tar c * | gzip -9 > ../control.tar.gz)
 
80
(cd /tmp/prototype; tar c ./* | gzip -9 > data.tar.gz)
 
81
mv /tmp/prototype/data.tar.gz .
 
82
 
 
83
 
 
84
# Creating the actual archive
 
85
ar r $DEBNAME.deb debian-binary control.tar.gz data.tar.gz
 
86
 
 
87
 
 
88
# Cleanup
 
89
rm -rf /tmp/prototype control control.tar.gz data.tar.gz debian-binary
 
90
 
 
91
 
 
92
if test -f 4front-private/export_package.sh
 
93
then
 
94
  sh 4front-private/export_package.sh $OSSNAME*.deb . `sh showversion.sh` /tmp `uname -i`-26
 
95
fi