Merge pull request #114 from t-8ch/native_debian

Native debian packaging
This commit is contained in:
JP Mens
2016-04-11 09:58:48 +02:00
12 changed files with 62 additions and 3 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)

View File

@@ -1,7 +1,7 @@
#(@)config.mk for Debian 8 (x86_64)
INSTALLDIR = /usr/local
CONFIGFILE = /etc/default/ot-recorder
INSTALLDIR = /usr/
CONFIGFILE = /etc/ot-recorder/ot-recorder.conf
WITH_MQTT ?= yes
WITH_HTTP ?= yes
@@ -12,7 +12,7 @@ WITH_ENCRYPT ?= yes
WITH_GREENWICH ?= yes
STORAGEDEFAULT = /var/spool/owntracks/recorder/store
DOCROOT = /var/spool/owntracks/recorder/htdocs
DOCROOT = /usr/share/owntracks/recorder/htdocs
GHASHPREC = 7
JSON_INDENT ?= no
MOSQUITTO_INC = -I/usr/include