add native Debian packaging

This commit is contained in:
Thomas Weißschuh
2016-03-31 18:32:49 +00:00
parent 8551cb0aa0
commit d05a22ef43
11 changed files with 59 additions and 0 deletions

5
.gitignore vendored
View File

@@ -11,3 +11,8 @@ codesign.sh
sundry/
*.lua
kick*.sh
/debian/*\.debhelper
/debian/*\.debhelper.log
/debian/debhelper.log
/debian/*\.substvars
/debian/files

5
debian/changelog vendored Normal file
View File

@@ -0,0 +1,5 @@
ot-recorder (0.6.2) unstable; urgency=medium
* Initial release.
-- Thomas Weißschuh <thomas@t-8ch.de> Wed, 30 Mar 2016 16:46:45 +0000

1
debian/compat vendored Normal file
View File

@@ -0,0 +1 @@
9

14
debian/control vendored Normal file
View File

@@ -0,0 +1,14 @@
Source: ot-recorder
Priority: optional
Section: net
Maintainer: JP Mens <jpmens@gmail.com>
Build-Depends: debhelper (>= 9), libcurl3-dev, libmosquitto-dev, liblua5.2-dev, libconfig8-dev, libsodium-dev
Standards-Version: 3.9.6
Vcs-Git: https://github.com/owntracks/recorder
Vcs-Browser: https://github.com/owntracks/recorder
Homepage: https://github.com/owntracks/recorder
Package: ot-recorder
Architecture: any
Description: Lightweight back-end for consuming OwnTracks data from an MQTT Broker
Depends: ${shlibs:Depends}, ${misc:Depends}

2
debian/ot-recorder.dirs vendored Normal file
View File

@@ -0,0 +1,2 @@
/var/spool/owntracks
/var/spool/owntracks/recorder/store

3
debian/ot-recorder.docs vendored Normal file
View File

@@ -0,0 +1,3 @@
LICENSE
Changelog
README.md

3
debian/ot-recorder.postinst vendored Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
adduser --system --home /var/spool/owntracks owntracks

11
debian/ot-recorder.service vendored Normal file
View File

@@ -0,0 +1,11 @@
[Unit]
Description=OwnTracks Recorder
After=network.target
[Service]
Type=simple
User=owntracks
ExecStart=/usr/sbin/ot-recorder
[Install]
WantedBy=multi-user.target

3
debian/ot-recorder.tmpfile vendored Normal file
View File

@@ -0,0 +1,3 @@
d /var/spool/owntracks - owntracks owntracks
d /var/spool/owntracks/recorder - owntracks owntracks
d /var/spool/owntracks/recorder/store - owntracks owntracks

11
debian/rules vendored Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/make -f
DPKG_EXPORT_BUILDFLAGS=1
include /usr/share/dpkg/default.mk
%:
dh $@
override_dh_auto_clean:
cp etc/debian/config.mk.in config.mk
dh_auto_clean

1
debian/source/format vendored Normal file
View File

@@ -0,0 +1 @@
3.0 (native)