Commit 9461f666 authored by Frans Pop's avatar Frans Pop Committed by Sam Ravnborg
Browse files

kbuild, deb-pkg: generate debian/copyright file

On Thursday 23 April 2009, Frans Pop wrote:
Add a basic debian/copyright to the binary packages.

Based on an earlier patch from Maximilian Attems.

Signed-off-by: default avatarFrans Pop <>
Acked-by: default avatarmaximilian attems <>
Cc: Andres Salomon <>
Signed-off-by: default avatarSam Ravnborg <>
parent a83ca277
......@@ -15,6 +15,8 @@ set -e
create_package() {
local pname="$1" pdir="$2"
cp debian/copyright "$pdir/usr/share/doc/$pname/"
# Fix ownership and permissions
chown -R root:root "$pdir"
chmod -R go-w "$pdir"
......@@ -43,10 +45,10 @@ fi
# Setup the directory structure
rm -rf "$tmpdir" "$fwdir"
mkdir -p "$tmpdir/DEBIAN" "$tmpdir/lib" "$tmpdir/boot"
mkdir -p "$fwdir/DEBIAN" "$fwdir/lib"
mkdir -p "$tmpdir/DEBIAN" "$tmpdir/lib" "$tmpdir/boot" "$tmpdir/usr/share/doc/$packagename"
mkdir -p "$fwdir/DEBIAN" "$fwdir/lib" "$fwdir/usr/share/doc/$fwpackagename"
if [ "$ARCH" = "um" ] ; then
mkdir -p "$tmpdir/usr/lib/uml/modules/$version" "$tmpdir/usr/share/doc/$packagename" "$tmpdir/usr/bin"
mkdir -p "$tmpdir/usr/lib/uml/modules/$version" "$tmpdir/usr/bin"
# Build and install the kernel
......@@ -103,6 +105,26 @@ linux ($packageversion) unstable; urgency=low
-- $name $(date -R)
# Generate copyright file
cat <<EOF > debian/copyright
This is a packacked upstream version of the Linux kernel.
The sources may be found at most Linux ftp sites, including:
Copyright: 1991 - 2009 Linus Torvalds and others.
The git repository for mainline kernel development is at:
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 dated June, 1991.
On Debian GNU/Linux systems, the complete text of the GNU General Public
License version 2 can be found in \`/usr/share/common-licenses/GPL-2'.
# Generate a control file
cat <<EOF > debian/control
Source: linux
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment