]> git.decadent.org.uk Git - exar-uart-driver.git/commitdiff
Merge pull request #1 from stefanor/dkms
authorTim Ansell <mithro@mithis.com>
Sun, 6 Sep 2015 01:48:11 +0000 (18:48 -0700)
committerTim Ansell <mithro@mithis.com>
Sun, 6 Sep 2015 01:48:11 +0000 (18:48 -0700)
dkms-ify

12 files changed:
99-vizzini.rules [deleted file]
debian/changelog
debian/compat
debian/control
debian/control.modules.in [deleted file]
debian/copyright
debian/dkms [new file with mode: 0644]
debian/dkms.conf [new file with mode: 0644]
debian/install [new file with mode: 0755]
debian/rules
debian/source/format [new file with mode: 0644]
debian/udev [new file with mode: 0644]

diff --git a/99-vizzini.rules b/99-vizzini.rules
deleted file mode 100644 (file)
index 61ebe5c..0000000
+++ /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'"
index f9bf06e0a4d0fe3d9cbd5367c0525a62e028287a..76dcb2a75934d321986adc26b861b5985b8bbfed 100644 (file)
@@ -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 <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
index 7ed6ff82de6bcc2a78243fc9c54d3ef5ac14da69..ec635144f60048986bc560c5576355344005e6e7 100644 (file)
@@ -1 +1 @@
-5
+9
index 6fe5f3c6482c0754615a4b99752d748d0090f8b3..711c24e08bbd0e4ee70da6f06a676b87da06c2c1 100644 (file)
@@ -2,12 +2,15 @@ Source: vizzini
 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.
diff --git a/debian/control.modules.in b/debian/control.modules.in
deleted file mode 100644 (file)
index 650bd0e..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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
index c869190d4314515caff65a508bc036fdd06f8f97..e942362f0408d1285e580afab060f0aa680f19e8 100644 (file)
@@ -1,32 +1,33 @@
-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'.
diff --git a/debian/dkms b/debian/dkms
new file mode 100644 (file)
index 0000000..11e85a7
--- /dev/null
@@ -0,0 +1 @@
+debian/dkms.conf
diff --git a/debian/dkms.conf b/debian/dkms.conf
new file mode 100644 (file)
index 0000000..7d9d70b
--- /dev/null
@@ -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 (executable)
index 0000000..19ed01f
--- /dev/null
@@ -0,0 +1,13 @@
+#!/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
index 1faffd73e639267dc2a0528f46dd02bc46650be8..90520db7dd50414ae6ee9fcc0cb33482c49d70a8 100755 (executable)
@@ -1,77 +1,13 @@
 #!/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
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/udev b/debian/udev
new file mode 100644 (file)
index 0000000..61ebe5c
--- /dev/null
@@ -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'"