From patchwork Fri Apr 24 17:08:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frans Pop X-Patchwork-Id: 19850 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3OH97LK021074 for ; Fri, 24 Apr 2009 17:09:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932244AbZDXRIb (ORCPT ); Fri, 24 Apr 2009 13:08:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932235AbZDXRIa (ORCPT ); Fri, 24 Apr 2009 13:08:30 -0400 Received: from Cpsmtpm-eml106.kpnxchange.com ([195.121.3.10]:59693 "EHLO CPSMTPM-EML106.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760908AbZDXRI2 (ORCPT ); Fri, 24 Apr 2009 13:08:28 -0400 Received: from aragorn.fjphome.nl ([84.85.147.182]) by CPSMTPM-EML106.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Fri, 24 Apr 2009 19:08:26 +0200 From: Frans Pop To: linux-kbuild@vger.kernel.org Subject: Re: [PATCH 8/14 v2] deb-pkg: generate debian/copyright file Date: Fri, 24 Apr 2009 19:08:24 +0200 User-Agent: KMail/1.9.9 Cc: Sam Ravnborg , maximilian attems , Andres Salomon References: <200904230034.59627.elendil@planet.nl> <200904230111.02672.elendil@planet.nl> In-Reply-To: <200904230111.02672.elendil@planet.nl> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200904241908.25581.elendil@planet.nl> X-OriginalArrivalTime: 24 Apr 2009 17:08:26.0161 (UTC) FILETIME=[4811F210:01C9C4FF] Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org 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 Cc: maximilian attems Cc: Andres Salomon --- Resending as previous version had a trailing space in one line. -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 0449147..2bd12c1 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -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" fi # Build and install the kernel @@ -103,6 +105,26 @@ linux ($packageversion) unstable; urgency=low -- $name $(date -R) EOF +# Generate copyright file +cat < debian/copyright +This is a packacked upstream version of the Linux kernel. + +The sources may be found at most Linux ftp sites, including: +ftp://ftp.kernel.org/pub/linux/kernel + +Copyright: 1991 - 2009 Linus Torvalds and others. + +The git repository for mainline kernel development is at: +git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git + + 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'. +EOF + # Generate a control file cat < debian/control Source: linux