[PATCH] UML - Restore proper descriptions in make deb-pkg target

From: Ryan Anderson
Date: Sat Mar 12 2005 - 21:42:15 EST

On Wed, Mar 09, 2005 at 10:03:01AM +0100, Blaisorblade wrote:
> Yes, it must go in... only the Description is a bit problematic, since you'll
> get with the below:
> Description: Linux kernel, version linux-2.6.11
> Description: Linux kernel, version user-mode-linux-2.6.11

Good point.

This pulls the description from the Debian user-mode-linux package, and
puts $version back in the appropriate places for both descriptions.

Incremental on top of the previous patch.

Signed-off-by: Ryan Anderson <ryan@xxxxxxxxxxxxxx>

Index: local-quilt/scripts/package/builddeb
--- local-quilt.orig/scripts/package/builddeb 2005-03-12 20:36:24.000000000 -0500
+++ local-quilt/scripts/package/builddeb 2005-03-12 20:40:50.000000000 -0500
@@ -73,6 +73,29 @@

# Generate a control file
+if [ "$ARCH" == "um" ]; then
+cat <<EOF > debian/control
+Source: linux
+Section: base
+Priority: optional
+Maintainer: $name
+Standards-Version: 3.6.1
+Package: $packagename
+Architecture: any
+Description: User Mode Linux kernel, version $version
+ User-mode Linux is a port of the Linux kernel to its own system call
+ interface. It provides a kind of virtual machine, which runs Linux
+ as a user process under another Linux kernel. This is useful for
+ kernel development, sandboxes, jails, experimentation, and
+ many other things.
+ .
+ This package contains the Linux kernel, modules and corresponding other
+ files version $version
cat <<EOF > debian/control
Source: linux
Section: base
@@ -82,10 +105,11 @@

Package: $packagename
Architecture: any
-Description: Linux kernel, version $packagename
+Description: Linux kernel, version $version
This package contains the Linux kernel, modules and corresponding other
- files version $packagename
+ files version $version

# Fix some ownership and permissions
chown -R root:root "$tmpdir"


Ryan Anderson
sometimes Pug Majere
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/