From 9ccd19c2d338d7ae09c4422953985b5facc0603a Mon Sep 17 00:00:00 2001 From: Ard van Breemen Date: Wed, 9 Jul 2014 16:34:47 +0000 Subject: [PATCH] Add debian packaging --- debian/README.Debian | 9 +++++ debian/changelog | 11 ++++++ debian/compat | 1 + debian/control | 13 +++++++ debian/control.modules.in | 13 +++++++ debian/copyright | 32 +++++++++++++++++ debian/rules | 74 +++++++++++++++++++++++++++++++++++++++ 7 files changed, 153 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/control.modules.in create mode 100644 debian/copyright create mode 100755 debian/rules diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..aea3ef1 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,9 @@ +This is the debian source module needed to get the exar vizzini usb bridge working. +To get the source package: +clone the repo, and: +dpkg-buildpackage -rfakeroot + +This will give je a kernel module source package. + +Install it somewhere, untar the stuff and build the module package with: +fakeroot make-kpkg modules-image diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..fdc80e0 --- /dev/null +++ b/debian/changelog @@ -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 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 Tue, 08 Jul 2014 10:23:00 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..6fe5f3c --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: vizzini +Section: misc +Priority: optional +Maintainer: Ard van Breemen +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 index 0000000..650bd0e --- /dev/null +++ b/debian/control.modules.in @@ -0,0 +1,13 @@ +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 new file mode 100644 index 0000000..c869190 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,32 @@ +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'. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e5dd460 --- /dev/null +++ b/debian/rules @@ -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.txt vizzini.c vizzini.h vzioctl.h $(DESTDIR) + cp debian/*modules.in* debian/control debian/rules debian/changelog debian/copyright debian/compat debian/README.Debian $(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 -- 2.39.5