Skip to content

Commit dc5962f

Browse files
author
Sam Ravnborg
committed
uml: Restore proper descriptions in make deb-pkg target
From: Ryan Anderson <ryan@michonline.com> This pulls the description from the Debian user-mode-linux package, and puts $version back in the appropriate places for both descriptions. Signed-off-by: Ryan Anderson <ryan@michonline.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
1 parent 687c3da commit dc5962f

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

‎scripts/package/builddeb‎

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,29 @@ linux ($version) unstable; urgency=low
7373
EOF
7474

7575
# Generate a control file
76+
if [ "$ARCH" == "um" ]; then
77+
78+
cat <<EOF > debian/control
79+
Source: linux
80+
Section: base
81+
Priority: optional
82+
Maintainer: $name
83+
Standards-Version: 3.6.1
84+
85+
Package: $packagename
86+
Architecture: any
87+
Description: User Mode Linux kernel, version $version
88+
User-mode Linux is a port of the Linux kernel to its own system call
89+
interface. It provides a kind of virtual machine, which runs Linux
90+
as a user process under another Linux kernel. This is useful for
91+
kernel development, sandboxes, jails, experimentation, and
92+
many other things.
93+
.
94+
This package contains the Linux kernel, modules and corresponding other
95+
files version $version
96+
EOF
97+
98+
else
7699
cat <<EOF > debian/control
77100
Source: linux
78101
Section: base
@@ -82,10 +105,11 @@ Standards-Version: 3.6.1
82105
83106
Package: $packagename
84107
Architecture: any
85-
Description: Linux kernel, version $packagename
108+
Description: Linux kernel, version $version
86109
This package contains the Linux kernel, modules and corresponding other
87-
files version $packagename
110+
files version $version
88111
EOF
112+
fi
89113

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

0 commit comments

Comments
 (0)