]> git.decadent.org.uk Git - exar-uart-driver.git/commitdiff
Merge pull request #1 from ardje/debian
authorJoel Stanley <joel@jms.id.au>
Wed, 3 Sep 2014 05:33:57 +0000 (15:03 +0930)
committerJoel Stanley <joel@jms.id.au>
Wed, 3 Sep 2014 05:33:57 +0000 (15:03 +0930)
Debian packaging

README
README.Debian [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/control.modules.in [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/README b/README
index 9c245cee9a39d87d0f1962f287faab9aca2f1e9c..6d64bee726f7c8dceb53bbe57bd5b95b5443c7a1 100644 (file)
--- a/README
+++ b/README
@@ -16,3 +16,5 @@ $ sudo make modules_install
 
 You will need to complete the make && sudo make install step whenever your
 kernel is updated.
+
+If you need debian packages, refer to README.Debian
diff --git a/README.Debian b/README.Debian
new file mode 100644 (file)
index 0000000..f1c76a7
--- /dev/null
@@ -0,0 +1,27 @@
+Debianization of https://github.com/shenki/exar-uart-driver
+
+This is the Exar xr21v141x UART driver, originally downloaded from the exar
+website, and patched by shenki.
+The original exar drivers were made for kernel 3.6 and lower.
+This package is intended for 3.7 and higher.
+
+Usage:
+Build the package to create the module-source package:
+
+dpkg-buildpackage -rfakeroot
+
+Put that source package in your public repository.
+
+To build a debian module for your kernel:
+
+dpkg -i <the source pacackage>
+
+cd <kernel_dir>
+tar xvjf /usr/src/vizzini.tar.bz2 -C ..
+export MODULE_LOC=$PWD/../modules
+fakeroot make-kpkg modules_image
+
+This will create a suitable vizzini-module package to suit your debian kernel
+package.
+
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..fdc80e0
--- /dev/null
@@ -0,0 +1,11 @@
+vizzini (1.0.0-2) unstable; urgency=low
+
+  * Now based on https://github.com/shenki/exar-uart-driver instead of https://github.com/ardje/vizzini
+
+ -- Ard van Breemen <ard@kwaak.net>  Wed, 09 Jul 2014 16:22:17 +0000
+
+vizzini (1.0.0-1) unstable; urgency=low
+
+  * Initial release based on leds-alix
+
+ -- Ard van Breemen <ard@kwaak.net>  Tue, 08 Jul 2014 10:23:00 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..6fe5f3c
--- /dev/null
@@ -0,0 +1,13 @@
+Source: vizzini
+Section: misc
+Priority: optional
+Maintainer: Ard van Breemen <ard@kwaak.net>
+Build-Depends: debhelper (>= 5), bzip2
+Standards-Version: 3.7.3
+Homepage: http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1414
+
+Package: vizzini-source
+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.
diff --git a/debian/control.modules.in b/debian/control.modules.in
new file mode 100644 (file)
index 0000000..650bd0e
--- /dev/null
@@ -0,0 +1,13 @@
+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
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..c869190
--- /dev/null
@@ -0,0 +1,32 @@
+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'.
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..42506bb
--- /dev/null
@@ -0,0 +1,74 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode. 
+export DH_VERBOSE=1
+
+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)
+
+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
+       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
+       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