From: Michael Wagner Date: Fri, 12 Apr 2019 22:20:40 +0000 (+0200) Subject: epic-ts X-Git-Tag: verleihnix_0.1-2~1^2~8 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d80639ce4746338a46857b3a29e71af821cca10d;p=projects.git epic-ts --- diff --git a/TestXfhem/.dummy b/TestXfhem/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/TestXfhem/FitnessePages/.dummy b/TestXfhem/FitnessePages/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/debian/.dummy b/debian/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/debian/xfhem.changelog b/debian/xfhem.changelog new file mode 100644 index 0000000..79596f6 --- /dev/null +++ b/debian/xfhem.changelog @@ -0,0 +1,3 @@ +smart-home (0.1-%BUILD%) unstable; urgency=medium + * WagnerTech utilities for FHEM + -- Michael Wagner Fri, 12 Apr 2019 10:00:00 +0100 diff --git a/debian/xfhem.control b/debian/xfhem.control new file mode 100644 index 0000000..6a43d98 --- /dev/null +++ b/debian/xfhem.control @@ -0,0 +1,11 @@ +Source: smart-home +Section: main +Priority: optional +Maintainer: Michael Wagner +Build-Depends: git,build-essential + +Package: xfhem +Architecture: all +Depends: fhem +Description: WagnerTech utilities for FHEM + diff --git a/debian/xfhem.cp b/debian/xfhem.cp new file mode 100755 index 0000000..edc0ccb --- /dev/null +++ b/debian/xfhem.cp @@ -0,0 +1,10 @@ +#!/bin/bash +set -e + +mkdir -p $1/usr/bin/ +cp xfhem/bin/xfhem $1/usr/bin/ + +mkdir -p $1/opt/fhem/ +cp xfhem/etc/wagnertech.cfg $1/opt/fhem/ + + diff --git a/debian/xfhem.postinst b/debian/xfhem.postinst new file mode 100755 index 0000000..fe84a65 --- /dev/null +++ b/debian/xfhem.postinst @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +chown fhem:dialout /opt/fhem/wagnertech.cfg + +if ! grep wagnertech.cfg /opt/fhem/fhem.cfg +then + echo >> /opt/fhem/fhem.cfg + echo "# include from xfhem package" >> /opt/fhem/fhem.cfg + echo "include wagnertech.cfg" >> /opt/fhem/fhem.cfg + systemctl restart fhem +fi + diff --git a/xfhem/.dummy b/xfhem/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/xfhem/bin/.dummy b/xfhem/bin/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/xfhem/etc/.dummy b/xfhem/etc/.dummy new file mode 100644 index 0000000..e69de29