ship README and service file in /usr/share/doc/

This commit is contained in:
Jan-Piet Mens
2016-02-26 10:33:55 +01:00
parent 87555e4726
commit 6e27bab998
3 changed files with 13 additions and 6 deletions

View File

@@ -6,6 +6,10 @@ tempdir=$(mktemp -d /tmp/ot-XXX)
make install DESTDIR=$tempdir
install -D README.md $tempdir/usr/share/doc/ot-recorder/README.md
install -D etc/ot-recorder.service $tempdir/usr/share/doc/ot-recorder/ot-recorder.service
name="ot-recorder"
version=$(awk '{print $NF;}' version.h | sed -e 's/"//g' )
arch=$(uname -m)

View File

@@ -6,6 +6,9 @@ tempdir=$(mktemp -d /tmp/ot-XXX)
make install DESTDIR=$tempdir
install -D README.md $tempdir/usr/share/doc/ot-recorder/README.md
install -D etc/ot-recorder.service $tempdir/usr/share/doc/ot-recorder/ot-recorder.service
name="ot-recorder"
# add -0 to indicate "not in Debian" as per Roger's suggestion
version="$(awk '{print $NF;}' version.h | sed -e 's/"//g' )-0"

View File

@@ -1,20 +1,20 @@
# /etc/systemd/system/ot-recorder.service
# systemctl enable ot-recorder
# systemctl start ot-recorder
# systemctl --system daemon-reload
# journalctl -f
[Unit]
Description=OwnTracks Recorder
[Service]
Type=simple
# User=
Group=owntracks
User=owntracks
WorkingDirectory=/
Environment='OTR_HOST=127.0.0.1'
# Environment='OTR_USER=xxx'
ExecStart=/usr/local/sbin/ot-recorder "owntracks/#"
# deprecated: use config file
# Environment='OTR_USER=xxx'
ExecStart=/usr/local/sbin/ot-recorder
Restart=always
RestartSec=15
RestartSec=60
StandardOutput=null
StandardError=syslog
SyslogIdentifier=ot-recorder