From: Tim Ansell Date: Sun, 6 Sep 2015 01:48:11 +0000 (-0700) Subject: Merge pull request #1 from stefanor/dkms X-Git-Url: https://git.decadent.org.uk/gitweb/?p=exar-uart-driver.git;a=commitdiff_plain;h=82c58a7f52d23c3d0bc3e06048c0d463909d9c4e;hp=472a2347a80dc807ee5fb3a28634bfeb4bbb74ba Merge pull request #1 from stefanor/dkms dkms-ify --- diff --git a/99-vizzini.rules b/99-vizzini.rules deleted file mode 100644 index 61ebe5c..0000000 --- a/99-vizzini.rules +++ /dev/null @@ -1 +0,0 @@ -SUBSYSTEM=="usb", ATTR{idVendor}=="04e2", RUN+="/bin/sh -c 'echo -n %k:1.0 >/sys/bus/usb/drivers/cdc_acm/unbind; echo -n %k:1.0 >/sys/bus/usb/drivers/vizzini/bind'" diff --git a/debian/changelog b/debian/changelog index f9bf06e..76dcb2a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,14 @@ +vizzini (1.0.0-5) UNRELEASED; urgency=medium + + * Port to dkms. + * Switch to dh, compat level 9. + * Bump Standards-Version to 3.9.6, no changes needed. + * Use machine-readable copyright format, expand on copyright holders, and + correct FSF address. + * Switch to 3.0 (quilt) + + -- Stefano Rivera Sat, 05 Sep 2015 17:57:22 -0700 + vizzini (1.0.0-4) unstable; urgency=low * Fixed log message and updated README.Debian diff --git a/debian/compat b/debian/compat index 7ed6ff8..ec63514 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -5 +9 diff --git a/debian/control b/debian/control index 6fe5f3c..711c24e 100644 --- a/debian/control +++ b/debian/control @@ -2,12 +2,15 @@ Source: vizzini Section: misc Priority: optional Maintainer: Ard van Breemen -Build-Depends: debhelper (>= 5), bzip2 -Standards-Version: 3.7.3 +Build-Depends: debhelper (>= 9), dkms +Standards-Version: 3.9.6 Homepage: http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1414 -Package: vizzini-source +Package: vizzini-dkms Architecture: all -Depends: module-assistant, debhelper (>= 5), make, bzip2 -Description: Source for the exar XR21V1414 usb uart - This package provides the source code for the vizzini kernel module. +Depends: ${misc:Depends} +Description: Kernel driver for Exar XR21V1414 USB UART + This package provides integration with the DKMS infrastructure for + automatically building out of tree kernel modules. + . + Vizzini is the driver for the Exar XR21V1414 UART. diff --git a/debian/control.modules.in b/debian/control.modules.in deleted file mode 100644 index 650bd0e..0000000 --- a/debian/control.modules.in +++ /dev/null @@ -1,13 +0,0 @@ -Source: vizzini -Section: utils -Priority: optional -Maintainer: Ard van Breemen -Build-Depends: debhelper (>= 5) -Standards-Version: 3.7.3 -Homepage: http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1414 - -Package: vizzini-modules-_KVERS_ -Architecture: any -Provides: vizzini-modules -Description: Exar XR21V1414 usb uart drivers for Linux (kernel _KVERS_). - This package provides the vizzini kernel modules for the Exar XR21V1414 diff --git a/debian/copyright b/debian/copyright index c869190..e942362 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,32 +1,33 @@ -This package was debianized by Ard van Breemen on -Tue, 08 Jul 2014 10:24:22 +0000 - -It was downloaded from -http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1414 - -Original copyright: - Copyright (c) 2013 Exar Corporation, Inc. - -Patches Author: - https://github.com/shenki -Debianization Author: - https://github.com/ardje - -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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -On Debian systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL-2'. +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1414 + +Files: * +Copyright: + 2013, Exar Corporation, Inc. + 2014, Joel Stanley + 2014-2015, Tim 'mithro' Ansell +License: GPL-2+ + +Files: debian/* +Copyright: + 2014, Ard van Breemen , + 2015, Stefano Rivera +License: GPL-2+ + +License: GPL-2+ + 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 General Public License can be + found in `/usr/share/common-licenses/GPL-2'. diff --git a/debian/dkms b/debian/dkms new file mode 100644 index 0000000..11e85a7 --- /dev/null +++ b/debian/dkms @@ -0,0 +1 @@ +debian/dkms.conf diff --git a/debian/dkms.conf b/debian/dkms.conf new file mode 100644 index 0000000..7d9d70b --- /dev/null +++ b/debian/dkms.conf @@ -0,0 +1,5 @@ +PACKAGE_NAME="vizzini" +PACKAGE_VERSION=#MODULE_VERSION# +MAKE[0]="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build" +CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean" +DEST_MODULE_LOCATION[0]=/extra diff --git a/debian/install b/debian/install new file mode 100755 index 0000000..19ed01f --- /dev/null +++ b/debian/install @@ -0,0 +1,13 @@ +#!/bin/sh + +set -eu + +VERSION=$(dpkg-parsechangelog -S Version | cut -d- -f 1) +SRC=/usr/src/vizzini-$VERSION + +cat < $(sname).tar.bz2 && rm -rf modules - dh_install - -binary-indep: build install - dh_testdir -i - dh_testroot -i - dh_installchangelogs -i - dh_installdocs -i - dh_link -i - dh_compress -i - dh_fixperms -i - dh_installdeb -i - dh_installdeb -i - dh_shlibdeps -i - dh_gencontrol -i - dh_md5sums -i - dh_builddeb -i - -binary-arch: - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure binary-modules kdist kdist_configure kdist_image kdist_clean +override_dh_dkms: + dh_dkms -V diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/udev b/debian/udev new file mode 100644 index 0000000..61ebe5c --- /dev/null +++ b/debian/udev @@ -0,0 +1 @@ +SUBSYSTEM=="usb", ATTR{idVendor}=="04e2", RUN+="/bin/sh -c 'echo -n %k:1.0 >/sys/bus/usb/drivers/cdc_acm/unbind; echo -n %k:1.0 >/sys/bus/usb/drivers/vizzini/bind'"