Commit fc915b954f0dcc119af73395e0a1cf707053f972

Authored by Eric Keller
1 parent 9bb7cc8e

debianize

* use xenial distribution
* disable build test for the kernel module
* rename package appending -dkms
README.md
... ... @@ -107,6 +107,14 @@ tty0tty
107 107  
108 108 Note that this method will not make the module persist over kernel updates so if you ever update your kernel, make sure you build tty0tty again repeat the process.
109 109  
  110 +## Debian package
  111 +
  112 +In order to build the dkms Debian package
  113 +
  114 +```
  115 +sudo apt-get update && sudo apt-get install -y dh-make dkms build-essential
  116 +debuild -uc -us
  117 +```
110 118  
111 119 ## Contact
112 120  
... ...
debian/README 0 → 100644
  1 +The Debian Package tty0tty
  2 +----------------------------
  3 +
  4 +Comments regarding the Package
  5 +
  6 + -- Eric Keller <eric.keller.ek1@roche.com> Tue, 07 Mar 2017 15:28:05 +0100
... ...
debian/changelog 0 → 100644
  1 +tty0tty (1.2) xenial; urgency=low
  2 +
  3 + * Initial Release.
  4 +
  5 + -- Eric Keller <eric.keller.ek1@roche.com> Tue, 07 Mar 2017 15:28:05 +0100
... ...
debian/compat 0 → 100644
  1 +9
... ...
debian/control 0 → 100644
  1 +Source: tty0tty
  2 +Section: kernel
  3 +Priority: optional
  4 +Maintainer: Eric Keller <eric.keller.ek1@roche.com>
  5 +Build-Depends: debhelper (>=9), dkms
  6 +Standards-Version: 3.9.7
  7 +Homepage: https://github.com/freemed/tty0tty
  8 +#Vcs-Git: git://anonscm.debian.org/collab-maint/tty0tty.git
  9 +#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/tty0tty.git
  10 +
  11 +Package: tty0tty-dkms
  12 +Architecture: all
  13 +Depends: ${shlibs:Depends}, ${misc:Depends}
  14 +Description: Linux null modem emulator kernel module
  15 + Linux kernel module null-modem, null-modem using ptys without handshake lines
  16 +
... ...
debian/copyright 0 → 100644
  1 +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
  2 +Upstream-Name: tty0tty
  3 +Source: https://github.com/freemed/tty0tty
  4 +
  5 +Files: *
  6 +Copyright: 2017 Luis Claudio Gamboa Lopes <lcgamboa@yahoo.com>
  7 +License: GPL-2.0+
  8 +
  9 +Files: debian/*
  10 +Copyright: 2017 Eric Keller <eric.keller.ek1@roche.com>
  11 +License: Apache-2.0
  12 +
  13 +License: GPL-2.0+
  14 + This package is free software; you can redistribute it and/or modify
  15 + it under the terms of the GNU General Public License as published by
  16 + the Free Software Foundation; either version 2 of the License, or
  17 + (at your option) any later version.
  18 + .
  19 + This package is distributed in the hope that it will be useful,
  20 + but WITHOUT ANY WARRANTY; without even the implied warranty of
  21 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22 + GNU General Public License for more details.
  23 + .
  24 + You should have received a copy of the GNU General Public License
  25 + along with this program. If not, see <https://www.gnu.org/licenses/>
  26 + .
  27 + On Debian systems, the complete text of the GNU General
  28 + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
  29 +
  30 +License: Apache-2.0
  31 + Licensed under the Apache License, Version 2.0 (the "License");
  32 + you may not use this file except in compliance with the License.
  33 + You may obtain a copy of the License at
  34 + .
  35 + http://www.apache.org/licenses/LICENSE-2.0
  36 + or /usr/share/common-licenses/Apache-2.0
  37 + .
  38 + Unless required by applicable law or agreed to in writing, software
  39 + distributed under the License is distributed on an "AS IS" BASIS,
  40 + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  41 + See the License for the specific language governing permissions and
  42 + limitations under the License.
  43 +
... ...
debian/rules 0 → 100755
  1 +#!/usr/bin/make -f
  2 +
  3 +VERSION=$(shell dpkg-parsechangelog |grep ^Version:|cut -d ' ' -f 2)
  4 +
  5 +%:
  6 + dh $@ --with dkms
  7 +
  8 +override_dh_install:
  9 + dh_install module/Makefile module/tty0tty.c usr/src/tty0tty-$(VERSION)/
  10 +
  11 +override_dh_dkms:
  12 + dh_dkms -V $(VERSION)
  13 +
  14 +# do nothing
  15 +override_dh_auto_configure override_dh_auto_build override_dh_auto_test override_dh_auto_install override_dh_auto_clean:
... ...
debian/source/format 0 → 100644
  1 +3.0 (native)
... ...
debian/tty0tty-dkms.dkms 0 → 100644
  1 +PACKAGE_VERSION="#MODULE_VERSION#"
  2 +PACKAGE_NAME="tty0tty"
  3 +CLEAN="make clean"
  4 +BUILT_MODULE_NAME[0]="tty0tty"
  5 +BUILT_MODULE_LOCATION[0]="./"
  6 +DEST_MODULE_LOCATION[0]="/kernel/drivers/misc/"
  7 +MAKE[1]="make"
  8 +AUTOINSTALL="yes"
... ...
debian/tty0tty-docs.docs 0 → 100644
  1 +README.Debian
  2 +README.source
  3 +README
... ...