diff --git a/README.md b/README.md index 252d3bb..87e521d 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,14 @@ tty0tty 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. +## Debian package + +In order to build the dkms Debian package + +``` +sudo apt-get update && sudo apt-get install -y dh-make dkms build-essential +debuild -uc -us +``` ## Contact diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..84620bd --- /dev/null +++ b/debian/README @@ -0,0 +1,6 @@ +The Debian Package tty0tty +---------------------------- + +Comments regarding the Package + + -- Eric Keller Tue, 07 Mar 2017 15:28:05 +0100 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..59330c2 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +tty0tty (1.2) xenial; urgency=low + + * Initial Release. + + -- Eric Keller Tue, 07 Mar 2017 15:28:05 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..bb5d2cb --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: tty0tty +Section: kernel +Priority: optional +Maintainer: Eric Keller +Build-Depends: debhelper (>=9), dkms +Standards-Version: 3.9.7 +Homepage: https://github.com/freemed/tty0tty +#Vcs-Git: git://anonscm.debian.org/collab-maint/tty0tty.git +#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/tty0tty.git + +Package: tty0tty-dkms +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Linux null modem emulator kernel module + Linux kernel module null-modem, null-modem using ptys without handshake lines + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8e25f5c --- /dev/null +++ b/debian/copyright @@ -0,0 +1,43 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: tty0tty +Source: https://github.com/freemed/tty0tty + +Files: * +Copyright: 2017 Luis Claudio Gamboa Lopes +License: GPL-2.0+ + +Files: debian/* +Copyright: 2017 Eric Keller +License: Apache-2.0 + +License: GPL-2.0+ + This package 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 package 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, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + or /usr/share/common-licenses/Apache-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..701b3ef --- /dev/null +++ b/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +VERSION=$(shell dpkg-parsechangelog |grep ^Version:|cut -d ' ' -f 2) + +%: + dh $@ --with dkms + +override_dh_install: + dh_install module/Makefile module/tty0tty.c usr/src/tty0tty-$(VERSION)/ + +override_dh_dkms: + dh_dkms -V $(VERSION) + +# do nothing +override_dh_auto_configure override_dh_auto_build override_dh_auto_test override_dh_auto_install override_dh_auto_clean: diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/tty0tty-dkms.dkms b/debian/tty0tty-dkms.dkms new file mode 100644 index 0000000..0276082 --- /dev/null +++ b/debian/tty0tty-dkms.dkms @@ -0,0 +1,8 @@ +PACKAGE_VERSION="#MODULE_VERSION#" +PACKAGE_NAME="tty0tty" +CLEAN="make clean" +BUILT_MODULE_NAME[0]="tty0tty" +BUILT_MODULE_LOCATION[0]="./" +DEST_MODULE_LOCATION[0]="/kernel/drivers/misc/" +MAKE[1]="make" +AUTOINSTALL="yes" diff --git a/debian/tty0tty-docs.docs b/debian/tty0tty-docs.docs new file mode 100644 index 0000000..3609b98 --- /dev/null +++ b/debian/tty0tty-docs.docs @@ -0,0 +1,3 @@ +README.Debian +README.source +README