From 5a1573b3b8d70266fd06b3153f1c82f0231bd258 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Tue, 26 Sep 2017 13:43:20 +0100 Subject: [PATCH] Add Debian packaging --- Makefile | 2 +- debian/changelog | 5 ++++ debian/compat | 1 + debian/control | 14 ++++++++++ debian/copyright | 58 ++++++++++++++++++++++++++++++++++++++++++ debian/rpiboot.install | 2 ++ debian/rules | 7 +++++ debian/source/format | 1 + 8 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/rpiboot.install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/Makefile b/Makefile index d161c89..6cd4d05 100755 --- a/Makefile +++ b/Makefile @@ -9,6 +9,6 @@ uninstall: rmdir --ignore-fail-on-non-empty /usr/share/rpiboot/ clean: - rm rpiboot + rm -f rpiboot .PHONY: uninstall clean diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d14bb32 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +rpiboot (20170926) stretch; urgency=medium + + * Initial Release. + + -- Serge Schneider Tue, 26 Sep 2017 13:31:20 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..741358d --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: rpiboot +Section: utils +Priority: optional +Maintainer: Serge Schneider +Build-Depends: debhelper (>= 9), libusb-1.0-0-dev +Standards-Version: 3.9.8 +Homepage: https://github.com/raspberrypi/usbboot + +Package: rpiboot +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Raspberry Pi USB booting code + USB MSD boot code which should work on the Raspberry Pi model A, + Compute Module, Compute module 3 and Raspberry Pi Zero. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..2b320d1 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,58 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: rpiboot +Source: https://github.com/raspberrypi/usbboot + +Files: * +Copyright: 2016 Raspberry Pi (Trading) Ltd. +License: Apache-2.0 + +Files: msd/* +Copyright: + 2006, Broadcom Corporation + 2015, Raspberry Pi (Trading) Ltd +License: custom + +License: Apache-2.0 + 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 + . + https://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the complete text of the Apache version 2.0 license + can be found in "/usr/share/common-licenses/Apache-2.0". + +License: custom + All rights reserved. + . + Redistribution. Redistribution and use in binary form, without + modification, are permitted provided that the following conditions are + met: + . + * This software may only be used for the purposes of developing for, + running or using a Raspberry Pi device. + * Redistributions must reproduce the above copyright notice and the + following disclaimer in the documentation and/or other materials + provided with the distribution. + * Neither the name of Broadcom Corporation nor the names of its suppliers + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, + BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS + OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + DAMAGE. diff --git a/debian/rpiboot.install b/debian/rpiboot.install new file mode 100644 index 0000000..5df7802 --- /dev/null +++ b/debian/rpiboot.install @@ -0,0 +1,2 @@ +rpiboot usr/bin +msd usr/share/rpiboot diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..093b117 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_strip: + dh_strip -Xmsd/start.elf diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)