Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files needed to make Debian package. #46

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@
kplex
core
version.h

# Debian package
debian/files
debian/kplex
debian/kplex.*
debian/debhelper-build-stamp
Empty file added debian/README
Empty file.
46 changes: 46 additions & 0 deletions debian/README.Debian
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> 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 <[email protected]> Mon, 12 Oct 2020 00:00:00 +0000
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kplex (1.4-1) focal; urgency=low

* Initial release. Closes: #0010
* Fixed Makefile for Debian

-- Keith Young <[email protected]> Sun, 06 Jan 2019 19:23:04 +0000
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
16 changes: 16 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Source: kplex
Section: net
Priority: optional
Maintainer: Keith Young <[email protected]>
Uploaders: Frederic Guilbault <[email protected]>, Keith Young <[email protected]>
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.
22 changes: 22 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
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 <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
1 change: 1 addition & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README
25 changes: 25 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)