summaryrefslogtreecommitdiff
path: root/recipes-connectivity/lora/lora-packet-forwarder-geolocation_5.1.0.bb
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2018-05-21 10:43:55 -0500
committerJason Reiss <jreiss@multitech.com>2018-05-21 10:43:55 -0500
commit2d19c4d653ec6b52df7ef15771edec5374eaf32e (patch)
tree70acde29949b48c951e790381c9eae356e187990 /recipes-connectivity/lora/lora-packet-forwarder-geolocation_5.1.0.bb
parent8959ea2dd7f1c4f75ee90a198610839b854a2e07 (diff)
downloadmeta-mlinux-2d19c4d653ec6b52df7ef15771edec5374eaf32e.tar.gz
meta-mlinux-2d19c4d653ec6b52df7ef15771edec5374eaf32e.tar.bz2
meta-mlinux-2d19c4d653ec6b52df7ef15771edec5374eaf32e.zip
lora: add packet forwarder logging and rotation configuration
Diffstat (limited to 'recipes-connectivity/lora/lora-packet-forwarder-geolocation_5.1.0.bb')
-rw-r--r--recipes-connectivity/lora/lora-packet-forwarder-geolocation_5.1.0.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes-connectivity/lora/lora-packet-forwarder-geolocation_5.1.0.bb b/recipes-connectivity/lora/lora-packet-forwarder-geolocation_5.1.0.bb
index 3ec9b05..dbf7094 100644
--- a/recipes-connectivity/lora/lora-packet-forwarder-geolocation_5.1.0.bb
+++ b/recipes-connectivity/lora/lora-packet-forwarder-geolocation_5.1.0.bb
@@ -4,13 +4,14 @@ SECTION = "console/utils"
# Semtech license is a modified BSD-style license
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://mlinux4/LICENSE.TXT;md5=86776875df1423114abfcec938f3e565"
-DEPENDS ?= "lora-gateway-geolocation"
+DEPENDS ?= "lora-gateway-geolocation logrotate"
RDEPENDS_${PN} += "bash"
PR = "r2"
SRCREV = "v${PV}"
SRC_URI = "http://multitech.net/downloads/lora-packet-forwarder-geolocation_arm926ejste_${PV}.tar.gz \
+ file://lora-packet-forwarder-geolocation.logrotate.conf \
file://global_conf.json.MTAC_LORA_2_1_loc_dual_antenna_8ch_full_diversity_EU868 \
file://global_conf.json.MTAC_LORA_2_1_loc_dual_antenna_8ch_full_diversity_JP920 \
file://global_conf.json.MTAC_LORA_2_1_loc_dual_antenna_8ch_partial_diversity_EU868 \
@@ -44,6 +45,9 @@ do_install() {
install -m 755 ${WORKDIR}/global_conf.json.MTAC_LORA_2_1* ${D}${LORA_DIR}/
install -d ${D}${LORA_DIR}/forwarder-utils-geo
install -m 755 mlinux4/forwarder-utils-geo/* ${D}${LORA_DIR}/forwarder-utils-geo/
+
+ install -d ${D}${sysconfdir}/logrotate.d
+ install -m 0644 ${WORKDIR}/lora-packet-forwarder-geolocation.logrotate.conf ${D}${sysconfdir}/logrotate.d/lora-packet-forwarder-geolocation.conf
}