+++ /dev/null
-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'"
+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 <stefanor@debian.org> Sat, 05 Sep 2015 17:57:22 -0700
+
vizzini (1.0.0-4) unstable; urgency=low
* Fixed log message and updated README.Debian
Section: misc
Priority: optional
Maintainer: Ard van Breemen <ard@kwaak.net>
-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.
+++ /dev/null
-Source: vizzini
-Section: utils
-Priority: optional
-Maintainer: Ard van Breemen <ard@kwaak.net>
-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
-This package was debianized by Ard van Breemen <ard@kwaak.net> 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 <joel@jms.id.au>
+ 2014-2015, Tim 'mithro' Ansell <mithro@mithis.com>
+License: GPL-2+
+
+Files: debian/*
+Copyright:
+ 2014, Ard van Breemen <ard@kwaak.net>,
+ 2015, Stefano Rivera <stefanor@debian.org>
+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'.
--- /dev/null
+debian/dkms.conf
--- /dev/null
+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
--- /dev/null
+#!/bin/sh
+
+set -eu
+
+VERSION=$(dpkg-parsechangelog -S Version | cut -d- -f 1)
+SRC=/usr/src/vizzini-$VERSION
+
+cat <<EOF
+Makefile $SRC
+vizzini.c $SRC
+vizzini.h $SRC
+vzioctl.h $SRC
+EOF
#!/usr/bin/make -f
-# Uncomment this to turn on verbose mode.
-export DH_VERBOSE=1
+%:
+ dh $@ --with dkms
-psource:=vizzini-source
-sname:=vizzini
-PACKAGE=vizzini-modules
-MA_DIR ?= /usr/share/modass
--include $(MA_DIR)/include/generic.make
--include $(MA_DIR)/include/common-rules.make
-DESTDIR = $(CURDIR)/debian/$(psource)/usr/src/modules/$(sname)
+override_dh_auto_configure:
+override_dh_auto_build:
+override_dh_auto_install:
+override_dh_auto_clean:
+ # We're only interested in the source
-kdist_config: prep-deb-files
-
-kdist_clean: clean
- $(MAKE) -f debian/rules clean
-
-kdist_image: binary-modules
-
-binary-modules:
- dh_testroot
- dh_clean -k
- dh_installdirs lib/modules/$(KVERS)/vizzini
- $(MAKE) KERNELDIR=$(KSRC) KERNEL_VERSION=$(KVERS)
- cp vizzini.ko debian/$(PKGNAME)/lib/modules/$(KVERS)/vizzini
- dh_installdocs
- dh_installchangelogs
- dh_installmodules
- cp debian/vizzini.udev debian/$(PKGNAME).udev
- dh_installudev --priority=99
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_gencontrol -- -v$(VERSION)
- dh_md5sums
- dh_builddeb --destdir=$(DEB_DESTDIR)
- dh_clean -k
- dh_testdir
- touch $@
-
-clean:
- dh_testdir
- $(MAKE) clean
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
- dh_installdirs -p$(psource) usr/src/modules/$(sname)/debian
- cp Makefile README* vizzini.c vizzini.h vzioctl.h $(DESTDIR)
- cp debian/*modules.in* debian/control debian/rules debian/changelog debian/copyright debian/compat $(DESTDIR)/debian
- cp 99-vizzini.rules $(DESTDIR)/debian/vizzini.udev
- cd debian/$(psource)/usr/src && tar c modules | bzip2 -9 > $(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
--- /dev/null
+3.0 (quilt)
--- /dev/null
+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'"