Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149508
b: refs/heads/master
c: 9461f66
h: refs/heads/master
v: v3
  • Loading branch information
Frans Pop authored and Sam Ravnborg committed Jun 9, 2009
1 parent 43eed57 commit 0069bf5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a83ca2777f7f28e365de7c87903bad5e928f87ad
refs/heads/master: 9461f666e42f2412e134a49e90ffd4a3340dfc0a
28 changes: 25 additions & 3 deletions trunk/scripts/package/builddeb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -103,6 +105,26 @@ linux ($packageversion) unstable; urgency=low
-- $name $(date -R)
EOF

# 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:
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 <<EOF > debian/control
Source: linux
Expand Down

0 comments on commit 0069bf5

Please sign in to comment.