From 35ec00c638a7be73cbe36d2b00f3167eb8032d02 Mon Sep 17 00:00:00 2001 From: zador-blood-stained Date: Mon, 25 Sep 2017 19:19:50 +0300 Subject: [PATCH] Add mmc-utils package --- packages/extras-buildpkgs/90-mmc-utils.conf | 17 ++++ .../mmc-utils/debian/changelog | 18 +++++ .../extras-buildpkgs/mmc-utils/debian/compat | 1 + .../extras-buildpkgs/mmc-utils/debian/control | 40 ++++++++++ .../mmc-utils/debian/copyright | 77 +++++++++++++++++++ .../mmc-utils/debian/manpages | 1 + .../extras-buildpkgs/mmc-utils/debian/rules | 16 ++++ .../mmc-utils/debian/source/format | 1 + 8 files changed, 171 insertions(+) create mode 100644 packages/extras-buildpkgs/90-mmc-utils.conf create mode 100644 packages/extras-buildpkgs/mmc-utils/debian/changelog create mode 100644 packages/extras-buildpkgs/mmc-utils/debian/compat create mode 100644 packages/extras-buildpkgs/mmc-utils/debian/control create mode 100644 packages/extras-buildpkgs/mmc-utils/debian/copyright create mode 100644 packages/extras-buildpkgs/mmc-utils/debian/manpages create mode 100644 packages/extras-buildpkgs/mmc-utils/debian/rules create mode 100644 packages/extras-buildpkgs/mmc-utils/debian/source/format diff --git a/packages/extras-buildpkgs/90-mmc-utils.conf b/packages/extras-buildpkgs/90-mmc-utils.conf new file mode 100644 index 000000000..cc9fcae22 --- /dev/null +++ b/packages/extras-buildpkgs/90-mmc-utils.conf @@ -0,0 +1,17 @@ +# mmc-utils +local package_name="mmc-utils" +local package_repo="https://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git" +local package_ref="branch:master" +local package_install_target="mmc-utils" +local package_component="${release}-utils" + +package_checkbuild() +{ + true +} + +package_checkinstall() +{ + # needs to be added to the repository first + false +} diff --git a/packages/extras-buildpkgs/mmc-utils/debian/changelog b/packages/extras-buildpkgs/mmc-utils/debian/changelog new file mode 100644 index 000000000..9b2e494f6 --- /dev/null +++ b/packages/extras-buildpkgs/mmc-utils/debian/changelog @@ -0,0 +1,18 @@ +mmc-utils (0~gita3d3331-3) unstable; urgency=medium + + * Update patches/fix_build_ppc64el.patch. + Updated to the correct patch. + + -- Nobuhiro Iwamatsu Sat, 17 Sep 2016 17:46:33 +0900 + +mmc-utils (0~gita3d3331-2) unstable; urgency=medium + + * Fix build on ppc64*, alpha and mipsel64. (Closes: #834787) + + -- Nobuhiro Iwamatsu Tue, 23 Aug 2016 03:23:23 +0900 + +mmc-utils (0~gita3d3331-1) unstable; urgency=low + + * Initial release. (Closes: #833633) + + -- Nobuhiro Iwamatsu Fri, 05 Aug 2016 00:23:56 +0900 diff --git a/packages/extras-buildpkgs/mmc-utils/debian/compat b/packages/extras-buildpkgs/mmc-utils/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/packages/extras-buildpkgs/mmc-utils/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/extras-buildpkgs/mmc-utils/debian/control b/packages/extras-buildpkgs/mmc-utils/debian/control new file mode 100644 index 000000000..ca0ba4ef4 --- /dev/null +++ b/packages/extras-buildpkgs/mmc-utils/debian/control @@ -0,0 +1,40 @@ +Source: mmc-utils +Section: utils +Priority: optional +Maintainer: Nobuhiro Iwamatsu +Build-Depends: debhelper (>= 7.0.50~) +Standards-Version: 3.9.8 +Homepage: http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git +Vcs-Git: git://anonscm.debian.org/collab-maint/mmc-utils.git +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/mmc-utils.git;a=summary + +Package: mmc-utils +Architecture: linux-any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Userspace tools for MMC/SD devices + mmc-utils is a tool that supports the MMC device development of linux kernel. + . + The mmc-utils tools can do the following: + - Print and parse extcsd data. + - Determine the eMMC writeprotect status. + - Set the eMMC writeprotect status. + - Set the eMMC data sector size to 4KB by disabling emulation. + - Create general purpose partition. + - Enable the enhanced user area. + - Enable write reliability per partition. + - Print the response to STATUS_SEND (CMD13). + - Enable the boot partition. + - Set Boot Bus Conditions. + - Enable the eMMC BKOPS feature. + - Permanently enable the eMMC H/W Reset feature. + - Permanently disable the eMMC H/W Reset feature. + - Send Sanitize command. + - Program authentication key for the device. + - Counter value for the rpmb device will be read to stdout. + - Read from rpmb device to output. + - Write to rpmb device from data file. + - Enable the eMMC cache feature. + - Disable the eMMC cache feature. + - Print and parse CID data. + - Print and parse CSD data. + - Print and parse SCR data. diff --git a/packages/extras-buildpkgs/mmc-utils/debian/copyright b/packages/extras-buildpkgs/mmc-utils/debian/copyright new file mode 100644 index 000000000..26b0551c6 --- /dev/null +++ b/packages/extras-buildpkgs/mmc-utils/debian/copyright @@ -0,0 +1,77 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mmc-utils +Source: http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git/ + +Files: * +Copyright: 2016 SanDisk Corp +License: GPL-2 + +Files: 3rdparty/* +Copyright: 2005, 2007 Olivier Gay +License: BSD-3-clause + +Files: lsmmc.c +Copyright: ST-Ericsson SA 2010-2011 Author: Sebastian Rasmussen +License: BSD-3-clause(ST-Ericsson-SA) + +Files: debian/* +Copyright: i2016 Nobuhiro Iwamatsu +License: GPL-2 + +License: GPL-2 + The Debian packaging is licensed under the GPL, version 2. + . + On Debian GNU/Linux systems, the complete text of the GNU General + Public License, version 2, can be found in the file + /usr/share/common-licenses/GPL-2. + +License: BSD-3-clause(ST-Ericsson-SA) + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the ST-Ericsson SA nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the project nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE PROJECT 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 PROJECT 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/packages/extras-buildpkgs/mmc-utils/debian/manpages b/packages/extras-buildpkgs/mmc-utils/debian/manpages new file mode 100644 index 000000000..82718d28c --- /dev/null +++ b/packages/extras-buildpkgs/mmc-utils/debian/manpages @@ -0,0 +1 @@ +man/mmc.1 diff --git a/packages/extras-buildpkgs/mmc-utils/debian/rules b/packages/extras-buildpkgs/mmc-utils/debian/rules new file mode 100644 index 000000000..e34e9693f --- /dev/null +++ b/packages/extras-buildpkgs/mmc-utils/debian/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=-relro,-pie +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +%: + dh $@ + +override_dh_auto_install: + dh_auto_install -- prefix=/usr + + +override_dh_auto_clean: + dh_auto_clean + rm -rf .mmc.o.d .mmc_cmds.o.d diff --git a/packages/extras-buildpkgs/mmc-utils/debian/source/format b/packages/extras-buildpkgs/mmc-utils/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/packages/extras-buildpkgs/mmc-utils/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)