From 9b8c83da5eb01430ae43c66045a2e6d37689b074 Mon Sep 17 00:00:00 2001 From: Gilles Grandou Date: Fri, 15 Apr 2011 18:53:25 +0200 Subject: [PATCH] added debian packaging scripts made by Heiko for abootimg_0.3-1 --- debian/abootimg.1 | 69 +++++++++++++++++++++++++++++++++++++++++++++++ debian/changelog | 5 ++++ debian/compat | 1 + debian/control | 20 ++++++++++++++ debian/copyright | 46 +++++++++++++++++++++++++++++++ debian/dirs | 2 ++ debian/docs | 1 + debian/gbp.conf | 16 +++++++++++ debian/rules | 14 ++++++++++ 9 files changed, 174 insertions(+) create mode 100644 debian/abootimg.1 create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100644 debian/gbp.conf create mode 100755 debian/rules diff --git a/debian/abootimg.1 b/debian/abootimg.1 new file mode 100644 index 0000000..16f707d --- /dev/null +++ b/debian/abootimg.1 @@ -0,0 +1,69 @@ +.TH ABOOTIMG 1 +.SH NAME +abootimg \- manipulate Android Boot Images. +.SH DESCRIPTION +Tool to read/write/update android boot images + +.SH SYNOPSIS +.B abootimg + \-i +.br +.B abootimg + \-x [ [ [ []]]] +.br +.B abootimg + \-u [\-c "param=value"] [\-f ] [\-k ] [\-r ] [\-s ] +.br +.B abootimg + \-\-create [\-c "param=value"] [\-f ] \-k \-r [\-s ] + +.SH OPTIONS +.TP +.B \-i +print boot imgage informations +.TP +.B \-x +Extract a boot image +.TP +.B \-u +Update a boot image +.TP +.B \-\-create +Create a boot image + +.SS "Options for extracting boot images" +.TP +.B bootimg +Existing bootimage to use +.TP +.B bootimg.cfg +Name for the bootimg.cfg file, defaults to bootimg.cfg +.TP +.B kernel +Name for the kernel image, defaults to zImage +.TP +.B ramdisk +Name for the ramdisk image, defaults to initrd.img +.TP +.B secondstage +Name for the second-stage image, defaults to stage2.img + +.SS "Options for updating and creating boot images" +.TP +.B bootimg +Existing bootimage to use +.TP +.B \-c "param=value" +Existing bootimage to use +.TP +.B \-f +Update bootimg.cfg with the named file +.TP +.B \-k +Update kernel with the named file +.TP +.B \-r +Update ramdisk with the named file +.TP +.B \-s +Update secondstage image with the named file diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..6b81075 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +abootimg (0.3-1) unstable; urgency=low + + * Initial release (Closes: #612096) + + -- Heiko Stuebner Sat, 12 Feb 2011 12:04:10 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..bdf2b67 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: abootimg +Section: admin +Priority: extra +Maintainer: Heiko Stuebner +Build-Depends: debhelper (>= 7), cdbs (>= 0.4.49), libblkid-dev +Standards-Version: 3.9.1 +Homepage: http://gitorious.org/ac100/abootimg + +Package: abootimg +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tool to read/write/update android boot images + Android devices use a special partition format to boot any + operating system on the devices. These boot-images contain + a kernel image, a ramdisk, optionally a 2nd stage boot loader + and the commandline passed to the kernel when booting. + The original mkbootimg from Android can only create these images + where abootimg can also extract and modify them. + Handling android boot images is necessary when bringing other + operating systems to android devices. \ No newline at end of file diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4c1e4d4 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,46 @@ +This package was debianized by Heiko Stuebner on +Sat, 12 Feb 2011 10:44:12 +0100. + +It was downloaded from http://gitorious.org/ac100/abootimg + +Upstream Author: + + Gilles Grandou + +Copyright: + + Copyright (c) 2010 Gilles Grandou + +License: + + 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; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + On Debian systems, the complete text of the GNU Library + General Public License can be found in `/usr/share/common-licenses/GPL-2'. + + except bootimg.h + + Copyright 2007, The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + On Debian systems, the complete text of the Apache License Version 2.0 + can be found in `/usr/share/common-licenses/Apache-2.0'. + + +The Debian packaging is copyright 2011, Heiko Stuebner and +is licensed under the GPL version 2, see `/usr/share/common-licenses/GPL-2'. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..0a30875 --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/doc/abootimg diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..d2ed0ff --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,16 @@ +# Configuration file for git-buildpackage and friends + +[DEFAULT] +# the default build command: +#builder = debuild -i -I +# the default clean command: +#cleaner = debuild clean +# the default branch for upstream sources: +#upstream-branch = upstream +# the default branch for the debian patch: +#debian-branch = master +# the default tag formats used: +#upstream-tag = upstream/%(version)s +#debian-tag = debian/%(version)s +# use pristine-tar: +pristine-tar = True diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..41031f3 --- /dev/null +++ b/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/makefile.mk + +binary-install/abootimg:: + dh_installman $(CURDIR)/debian/abootimg.1 + install $(CURDIR)/abootimg $(CURDIR)/debian/abootimg/usr/bin + install $(CURDIR)/pack-initrd $(CURDIR)/debian/abootimg/usr/share/doc/abootimg + install $(CURDIR)/unpack-initrd $(CURDIR)/debian/abootimg/usr/share/doc/abootimg + +clean:: + rm -rf files/agtl.egg-info + rm -rf tmp