From 1f9ab1155b65552029213b7f932583f45947537b Mon Sep 17 00:00:00 2001 From: Daniel Jared Dominguez Date: Wed, 3 Jun 2015 01:28:48 -0500 Subject: [PATCH] initial Debian commit --- debian/README.Debian | 7 +++ debian/README.source | 9 ++++ debian/changelog | 5 +++ debian/compat | 1 + debian/control | 36 +++++++++++++++ debian/copyright | 28 ++++++++++++ debian/docs | 2 + debian/fwupd-dev.install | 18 ++++++++ debian/fwupd.install | 28 ++++++++++++ debian/fwupd.postinst | 39 ++++++++++++++++ debian/fwupd.postrm | 37 ++++++++++++++++ debian/fwupd.prerm | 38 ++++++++++++++++ debian/gbp.conf | 96 ++++++++++++++++++++++++++++++++++++++++ debian/rules | 11 +++++ debian/source/format | 1 + debian/watch | 13 ++++++ 16 files changed, 369 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/README.source create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100755 debian/fwupd-dev.install create mode 100755 debian/fwupd.install create mode 100644 debian/fwupd.postinst create mode 100644 debian/fwupd.postrm create mode 100644 debian/fwupd.prerm create mode 100644 debian/gbp.conf create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 000000000..23127da43 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,7 @@ +fwupd for Debian +---------------- + +fwupd is still heavily in development. As of this date, the functionality +it provides is not yet available on most systems. + + -- Daniel Jared Dominguez Wed, 20 May 2015 17:16:02 -0500 diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 000000000..85620815e --- /dev/null +++ b/debian/README.source @@ -0,0 +1,9 @@ +fwupd for Debian +---------------- + +To build from the git tree, run: + git-buildpackage -us -uc -S +Then, if using sbuild, you can use something like: + sbuild -s -c sid-amd64 -d unstable + + -- Daniel Jared Dominguez Thu, 21 May 2015 13:44:16 -0500 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..b17113232 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +fwupd (0.1.3-1) unstable; urgency=low + + * Initial release (Closes: #nnnn) + + -- Daniel Jared Dominguez Tue, 02 Jun 2015 23:43:28 -0500 diff --git a/debian/compat b/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..864050248 --- /dev/null +++ b/debian/control @@ -0,0 +1,36 @@ +Source: fwupd +Priority: optional +Maintainer: Daniel Jared Dominguez +Uploaders: Steve McIntyre <93sam@debian.org> +Build-Depends: debhelper (>= 9.0.0), dh-autoreconf, pkg-config, docbook-utils, gettext, libglib2.0-dev, intltool, libgudev-1.0-dev, libcolord-dev (>= 1.0.0), libpolkit-gobject-1-dev (>= 0.103), libgcab-dev, libsqlite3-dev, libgpgme11-dev, systemd, libfwup-dev, libgirepository1.0-dev, libappstream-glib-dev (>= 0.3.5), libarchive-dev, libcolorhug-dev (>= 1.2.9), libgusb-dev (>= 0.2.2) +Standards-Version: 3.9.6.1 +Section: admin +Homepage: https://github.com/hughsie/fwupd +#Vcs-Git: git://anonscm.debian.org/collab-maint/fwupd.git +#Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/fwupd.git + +Package: fwupd +Architecture: amd64 i386 armhf arm64 armel +Depends: ${shlibs:Depends}, ${misc:Depends}, efibootmgr +Multi-Arch: foreign +Description: Firmware update daemon + fwupd is a daemon to allow session software to update device firmware. + You can either use a GUI software manager like GNOME Software to view and + apply updates, the command-line tool or the system D-Bus interface directly. + Currently, firmware updates using the UEFI capsule format and for the + ColorHug are supported. More formats may be supported in the future. + See for details + +Package: fwupd-dev +Architecture: amd64 i386 armhf arm64 armel +Multi-Arch: same +Depends: fwupd (= ${binary:Version}), ${misc:Depends} +Description: development files for fwupd + fwupd is a daemon to allow session software to update device firmware. + You can either use a GUI software manager like GNOME Software to view and + apply updates, the command-line tool or the system D-Bus interface directly. + Currently, firmware updates using the UEFI capsule format and for the + ColorHug are supported. More formats may be supported in the future. + See for details + . + This package provides the development files for fwupd diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..2791456e6 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: fwupd +Source: https://github.com/hughsie/fwupd + +Files: * +Copyright: 2015 Richard Hughes +License: GPL-2.0+ + +Files: debian/* +Copyright: 2015 Daniel Jared Dominguez +License: GPL-2.0+ + +License: GPL-2.0+ + This package 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 package 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, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/debian/docs b/debian/docs new file mode 100644 index 000000000..8913f4684 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +NEWS +README.md diff --git a/debian/fwupd-dev.install b/debian/fwupd-dev.install new file mode 100755 index 000000000..60cc01dbb --- /dev/null +++ b/debian/fwupd-dev.install @@ -0,0 +1,18 @@ +#!/bin/sh + +bindir=usr/bin +datadir=usr/share +includedir=usr/include +libdir=usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) +libexecdir=${libdir} +mandir=${datadir}/man +sysconfdir=/etc +localstatedir=/var +unitdir=/lib/systemd/system + +cat< `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/fwupd.postrm b/debian/fwupd.postrm new file mode 100644 index 000000000..066e1e0e1 --- /dev/null +++ b/debian/fwupd.postrm @@ -0,0 +1,37 @@ +#!/bin/sh +# postrm script for fwupd +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/fwupd.prerm b/debian/fwupd.prerm new file mode 100644 index 000000000..9871c6283 --- /dev/null +++ b/debian/fwupd.prerm @@ -0,0 +1,38 @@ +#!/bin/sh +# prerm script for fwupd +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 000000000..9dc5c8550 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,96 @@ +[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 = debian +# the default tag formats used: +upstream-tag = %(version)s +debian-tag = Debian/%(version)s +# use pristine-tar: +#pristine-tar = True +# don't check if debian-branch == current branch: +#ignore-branch = True +# Use color when on a terminal, alternatives: on/true, off/false or auto +#color = auto + +# Options only affecting gbp buildpackage +[buildpackage] +# Look for a tag matching the upstream version when creating a tarball +#upstream-tree = tag +# uncomment this to automatically GPG sign tags: +sign-tags = True +# keyid to GPG sign tags with: +#keyid = 0xdeadbeef +# push to a remote repository after a successful tag: +#posttag = git-push git.example.com +# call lintian after a successful build: +#postbuild = lintian $GBP_CHANGES_FILE +# let package generate upstream changelog before build: +#prebuild = GIT_DIR=$GBP_GIT_DIR debian/autogen.sh +# use this for more svn-buildpackage like behaviour: +#export-dir = ../build-area/ +#tarball-dir = ../tarballs/ +#ignore-new = True +#export = HEAD +# compress with bzip2 +#compression = bzip2 +# use best compression +#compression-level = best +# Don't send notifications, alternatives: on/true, off/false or auto +#notify = off +# Transparently handle submodules +# submodules = True +# Wheter to use cowbuilder via git-pbuilder(1) +#pbuilder = True +# Which distribution to use with git-pbuilder +dist = unstable +# Options to pass to pbuilder when using git-pbuilder +#git-pbuilder-options = '--hookdir /etc/pbuilder/hooks' + +# Options only affecting gbp dch +[dch] +# options passed to git-log: +#git-log = --no-merges +# next snapshot number: +#snapshot-number = snapshot + 1 +# include 7 digits of the commit id in the changelog enty: +#id-length = 7 +# don't include information from meta tags: +#meta = False +# what tags to look for to generate bug-closing changelog entries: +#meta-closes = Closes|LP +# include the full commit message in the changelog: +#full = True +# ignore Signed-off-by: lines: +#ignore-regex=(Signed-off|Acked)-by: +# use author name and email from git-config: +#git-author = True + +# Options only affecting gbp pq +[pq] +#patch-numbers = False + +# Options only affecting gbp clone +[clone] +#pristine-tar = True + +# Options only affecting gbp pull +[pull] +#pristine-tar = True + +# Options only affecting gbp create remote repo +[create-remote-repo] +# disable remote branch tracking +#track = False + +## Sample config to create remote repositore using gbp create-remote-repo: +#[remote-config pkg-libvirt] +## Location of the repository +#remote-url-pattern = ssh://git.debian.org/git/pkg-libvirt/%(pkg)s +## Template dir to passed to git-init +#template-dir = /srv/alioth.debian.org/chroot/home/groups/pkg-libvirt/git-template + diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..7dbfc35a9 --- /dev/null +++ b/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS=-v + + +%: + dh $@ --with autoreconf diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 000000000..fb33e377e --- /dev/null +++ b/debian/watch @@ -0,0 +1,13 @@ +# You can run the "uscan" command to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +#opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/fwupd-$1\.tar\.gz/ \ +#https://github.com/hughsie/fwupd/tags .*/v?(\d\S*)\.tar\.gz + +#http://people.freedesktop.org/~hughsient/releases \ +#.*[^n]/(?:|v|version-|r|REL_|rel-|fwupd(?:_|-))(\d[^\s/]*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz) + +http://people.freedesktop.org/~hughsient/releases/fwupd-(\d[^\s]*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz)