diff --git a/.gitignore b/.gitignore index 6596da5..cf21d9c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,9 @@ kplex core version.h + +# Debian package +debian/files +debian/kplex +debian/kplex.* +debian/debhelper-build-stamp \ No newline at end of file diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..e69de29 diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..d4bff53 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,46 @@ +kplex for Debian +---------------- + +This package installs an init script in /etc/init.d but does not set things up +to start kplex at boot time. To have kplex run at boot: +* Read the instructions on enabling kplex at boot time, paying particular heed + to recommendations to create a non-root user to run kplex as +* Create a configuration file for kplex and install it as /etc/kplex.conf +* Enable boot-time invocation of kplex with: + update-rc.d kplex defaults + + -- Keith Young Mon, 04 Mar 2013 11:18:17 +0000 + + + + + + +# How to Build kplex into a debian package +---------------- + First, make sure you have the required dependencies : + ``` + sudo apt-get install build-essential devscripts lintian + ``` + + To build a local package: + ``` + debuild -i -us -uc -b + ``` + + To build a signed source package (required by launchpad) + ``` + debuild -S + ``` + + # Known problems + + By default the Linter complain about: + `E: kplex changes: bad-distribution-in-changes-file unstable` + + Considering that kplex does not depend on any package. + If you build a local package this doesn't impact anything. + But it you plan to distribute via some kind of repository, the distribution version matter. + In that case you need to set the proper version code name in debian/changelog (search&replace for the word `unstable` ) + + -- Frederic Guilbault <2@0464.ca> Mon, 12 Oct 2020 00:00:00 +0000 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e89661e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +kplex (1.4-1) focal; urgency=low + + * Initial release. Closes: #0010 + * Fixed Makefile for Debian + + -- Keith Young Sun, 06 Jan 2019 19:23:04 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e2343de --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: kplex +Section: net +Priority: optional +Maintainer: Keith Young +Uploaders: Frederic Guilbault <2@0464.ca>, Keith Young +Build-Depends: debhelper (>= 9) +Standards-Version: 4.5.0 +Homepage: http://www.stripydog.com/kplex + +Package: kplex +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: NMEA-0183 multiplexer for GNU/Linux + kplex combines, filters and prioritises NMEA-0183 data from various types of + inputs (serial, network, file, pseudo terminal) and sends it to various + outputs. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..9626a00 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,22 @@ +Format: http://dep.debian.net/deps/dep5 +Upstream-Name: kplex +Source: http://www/stripydog.com/kplex/ + +Files: debian/* +Copyright: 2012-2013 Keith Young +License: GPL-3 + 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 3 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 3 can be found in "/usr/share/common-licenses/GPL-3". diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..06cb64d --- /dev/null +++ b/debian/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 +%: + dh $@ + +override_dh_auto_install: + install -m 0644 kplex.service $$(pwd)/debian/ + install -m 0644 -D kplex.conf.ex $$(pwd)/debian/kplex/etc/kplex.conf + install -m 0755 -D -g root -o root kplex.init $$(pwd)/debian + + $(MAKE) DESTDIR=$$(pwd)/debian/kplex PREFIX=/usr install + +override_dh_installinit: + dh_installinit --name=kplex --no-start --no-enable + +override_dh_installsystemd: + dh_installsystemd --name=kplex --no-enable -no-start 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)