From b72d50c2b2fd39f97807c5600ffc859975eae1c0 Mon Sep 17 00:00:00 2001 From: gustavo panizzo Date: Sun, 11 Mar 2018 22:34:43 +0800 Subject: Import uhubctl_2.0.0-1.debian.tar.xz [dgit import tarball uhubctl 2.0.0-1 uhubctl_2.0.0-1.debian.tar.xz] --- changelog | 5 +++++ compat | 1 + control | 17 +++++++++++++++++ copyright | 32 ++++++++++++++++++++++++++++++++ gbp.conf | 6 ++++++ patches/debian-ways | 24 ++++++++++++++++++++++++ patches/series | 1 + rules | 4 ++++ source/format | 1 + tests/control | 1 + tests/run-uhubctl-v | 7 +++++++ uhubctl.docs | 1 + watch | 3 +++ 13 files changed, 103 insertions(+) create mode 100644 changelog create mode 100644 compat create mode 100644 control create mode 100644 copyright create mode 100644 gbp.conf create mode 100644 patches/debian-ways create mode 100644 patches/series create mode 100755 rules create mode 100644 source/format create mode 100644 tests/control create mode 100644 tests/run-uhubctl-v create mode 100644 uhubctl.docs create mode 100644 watch diff --git a/changelog b/changelog new file mode 100644 index 0000000..d1d49b5 --- /dev/null +++ b/changelog @@ -0,0 +1,5 @@ +uhubctl (2.0.0-1) unstable; urgency=medium + + * Initial release. (Closes: #892424) + + -- gustavo panizzo Sun, 11 Mar 2018 14:34:43 +0000 diff --git a/compat b/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/compat @@ -0,0 +1 @@ +10 diff --git a/control b/control new file mode 100644 index 0000000..ff1943c --- /dev/null +++ b/control @@ -0,0 +1,17 @@ +Source: uhubctl +Section: electronics +Priority: optional +Maintainer: gustavo panizzo +Build-Depends: debhelper (>= 10.0.0), libusb-1.0-0-dev, autopkgtest +Standards-Version: 4.1.3 +Homepage: https://github.com/mvp/uhubctl + +Package: uhubctl +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: USB hub per-port power control + Utility to control USB power per-port on smart USB hubs. + Smart hub is defined as one that implements per-port power switching. + . + Original idea for this code was inspired by hub-ctrl.c by Niibe Yutaka: + http://www.gniibe.org/development/ac-power-control-by-USB-hub diff --git a/copyright b/copyright new file mode 100644 index 0000000..73566a6 --- /dev/null +++ b/copyright @@ -0,0 +1,32 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: uhubctl +Source: + +Files: * +Copyright: <2015-2018> Vadim Mikhailov +License: GPL-2 + +License: GPL-2 + uhubctl – USB hub per-port power control. + . + Copyright (c) 2009-2018, Vadim Mikhailov + . + 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. + . + 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 General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +Files: debian/* +Copyright: <2018> gustavo panizzo +License: GPL-2 diff --git a/gbp.conf b/gbp.conf new file mode 100644 index 0000000..f3a2d52 --- /dev/null +++ b/gbp.conf @@ -0,0 +1,6 @@ +[DEFAULT] +upstream-branch = master +debian-branch = debian/unstable +upstream-tag = v%(version)s +compression = gz +pristine-tar = True diff --git a/patches/debian-ways b/patches/debian-ways new file mode 100644 index 0000000..0aec10b --- /dev/null +++ b/patches/debian-ways @@ -0,0 +1,24 @@ +Description: + This patch overrides upstream's method to detect the release + version +Forwarded: no +Author: gustavo panizzo +Last-Update: 2018-03-11 +--- a/Makefile ++++ b/Makefile +@@ -15,7 +15,14 @@ CC ?= gcc + CFLAGS ?= -g -O0 + CFLAGS += -Wall -Wextra -std=c99 -pedantic + GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always --tags) +-CFLAGS += -DPROGRAM_VERSION=\"$(GIT_VERSION)\" ++ ++# Gets the full version of the source package including debian version ++DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ') ++DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-) ++# # Gets only the upstream version of the package ++DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//') ++ ++CFLAGS += -DPROGRAM_VERSION=\"$(DEB_UPSTREAM_VERSION)\" + + ifeq ($(UNAME_S),Linux) + LDFLAGS += -Wl,-z,relro -lusb-1.0 diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..b2e9488 --- /dev/null +++ b/patches/series @@ -0,0 +1 @@ +debian-ways diff --git a/rules b/rules new file mode 100755 index 0000000..2d33f6a --- /dev/null +++ b/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/tests/control b/tests/control new file mode 100644 index 0000000..5d678f8 --- /dev/null +++ b/tests/control @@ -0,0 +1 @@ +Tests: run-uhubctl-v diff --git a/tests/run-uhubctl-v b/tests/run-uhubctl-v new file mode 100644 index 0000000..ad9ad39 --- /dev/null +++ b/tests/run-uhubctl-v @@ -0,0 +1,7 @@ +#!/bin/sh + +exec 2>&1 + +set -e + +uhubctl -v diff --git a/uhubctl.docs b/uhubctl.docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/uhubctl.docs @@ -0,0 +1 @@ +README.md diff --git a/watch b/watch new file mode 100644 index 0000000..11ee23f --- /dev/null +++ b/watch @@ -0,0 +1,3 @@ +version=3 +opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/uhubctl-$1\.tar\.gz/ \ + https://github.com/mvp/uhubctl/releases .*/v?(\d\S*)\.tar\.gz -- cgit v1.2.3