diff options
| author | Frans Pop <elendil@planet.nl> | 2009-04-24 13:08:24 -0400 |
|---|---|---|
| committer | Sam Ravnborg <sam@ravnborg.org> | 2009-06-09 16:37:39 -0400 |
| commit | 9461f666e42f2412e134a49e90ffd4a3340dfc0a (patch) | |
| tree | 7186a3d05b3440253623f55d54935e0c36c575f1 /scripts/package | |
| parent | a83ca2777f7f28e365de7c87903bad5e928f87ad (diff) | |
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: Frans Pop <elendil@planet.nl>
Acked-by: maximilian attems <max@stro.at>
Cc: Andres Salomon <dilinger@debian.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/package')
| -rw-r--r-- | scripts/package/builddeb | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 0449147af06..122becc9cef 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb | |||
| @@ -15,6 +15,8 @@ set -e | |||
| 15 | create_package() { | 15 | create_package() { |
| 16 | local pname="$1" pdir="$2" | 16 | local pname="$1" pdir="$2" |
| 17 | 17 | ||
| 18 | cp debian/copyright "$pdir/usr/share/doc/$pname/" | ||
| 19 | |||
| 18 | # Fix ownership and permissions | 20 | # Fix ownership and permissions |
| 19 | chown -R root:root "$pdir" | 21 | chown -R root:root "$pdir" |
| 20 | chmod -R go-w "$pdir" | 22 | chmod -R go-w "$pdir" |
| @@ -43,10 +45,10 @@ fi | |||
| 43 | 45 | ||
| 44 | # Setup the directory structure | 46 | # Setup the directory structure |
| 45 | rm -rf "$tmpdir" "$fwdir" | 47 | rm -rf "$tmpdir" "$fwdir" |
| 46 | mkdir -p "$tmpdir/DEBIAN" "$tmpdir/lib" "$tmpdir/boot" | 48 | mkdir -p "$tmpdir/DEBIAN" "$tmpdir/lib" "$tmpdir/boot" "$tmpdir/usr/share/doc/$packagename" |
| 47 | mkdir -p "$fwdir/DEBIAN" "$fwdir/lib" | 49 | mkdir -p "$fwdir/DEBIAN" "$fwdir/lib" "$fwdir/usr/share/doc/$fwpackagename" |
| 48 | if [ "$ARCH" = "um" ] ; then | 50 | if [ "$ARCH" = "um" ] ; then |
| 49 | mkdir -p "$tmpdir/usr/lib/uml/modules/$version" "$tmpdir/usr/share/doc/$packagename" "$tmpdir/usr/bin" | 51 | mkdir -p "$tmpdir/usr/lib/uml/modules/$version" "$tmpdir/usr/bin" |
| 50 | fi | 52 | fi |
| 51 | 53 | ||
| 52 | # Build and install the kernel | 54 | # Build and install the kernel |
| @@ -103,6 +105,26 @@ linux ($packageversion) unstable; urgency=low | |||
| 103 | -- $name $(date -R) | 105 | -- $name $(date -R) |
| 104 | EOF | 106 | EOF |
| 105 | 107 | ||
| 108 | # Generate copyright file | ||
| 109 | cat <<EOF > debian/copyright | ||
| 110 | This is a packacked upstream version of the Linux kernel. | ||
| 111 | |||
| 112 | The sources may be found at most Linux ftp sites, including: | ||
| 113 | ftp://ftp.kernel.org/pub/linux/kernel | ||
| 114 | |||
| 115 | Copyright: 1991 - 2009 Linus Torvalds and others. | ||
| 116 | |||
| 117 | The git repository for mainline kernel development is at: | ||
| 118 | git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git | ||
| 119 | |||
| 120 | This program is free software; you can redistribute it and/or modify | ||
| 121 | it under the terms of the GNU General Public License as published by | ||
| 122 | the Free Software Foundation; version 2 dated June, 1991. | ||
| 123 | |||
| 124 | On Debian GNU/Linux systems, the complete text of the GNU General Public | ||
| 125 | License version 2 can be found in \`/usr/share/common-licenses/GPL-2'. | ||
| 126 | EOF | ||
| 127 | |||
| 106 | # Generate a control file | 128 | # Generate a control file |
| 107 | cat <<EOF > debian/control | 129 | cat <<EOF > debian/control |
| 108 | Source: linux | 130 | Source: linux |
