epic-ts
authorMichael Wagner <michael@wagnertech.de>
Fri, 12 Apr 2019 22:20:40 +0000 (00:20 +0200)
committerMichael Wagner <michael@wagnertech.de>
Fri, 12 Apr 2019 22:20:40 +0000 (00:20 +0200)
TestXfhem/.dummy [new file with mode: 0644]
TestXfhem/FitnessePages/.dummy [new file with mode: 0644]
debian/.dummy [new file with mode: 0644]
debian/xfhem.changelog [new file with mode: 0644]
debian/xfhem.control [new file with mode: 0644]
debian/xfhem.cp [new file with mode: 0755]
debian/xfhem.postinst [new file with mode: 0755]
xfhem/.dummy [new file with mode: 0644]
xfhem/bin/.dummy [new file with mode: 0644]
xfhem/etc/.dummy [new file with mode: 0644]

diff --git a/TestXfhem/.dummy b/TestXfhem/.dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/TestXfhem/FitnessePages/.dummy b/TestXfhem/FitnessePages/.dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/debian/.dummy b/debian/.dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/debian/xfhem.changelog b/debian/xfhem.changelog
new file mode 100644 (file)
index 0000000..79596f6
--- /dev/null
@@ -0,0 +1,3 @@
+smart-home (0.1-%BUILD%) unstable; urgency=medium
+  * WagnerTech utilities for FHEM
+ -- Michael Wagner <michael@wagnertech.de>  Fri, 12 Apr 2019 10:00:00 +0100
diff --git a/debian/xfhem.control b/debian/xfhem.control
new file mode 100644 (file)
index 0000000..6a43d98
--- /dev/null
@@ -0,0 +1,11 @@
+Source: smart-home
+Section: main
+Priority: optional
+Maintainer: Michael Wagner <michael@wagnertech.de>
+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 (executable)
index 0000000..edc0ccb
--- /dev/null
@@ -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 (executable)
index 0000000..fe84a65
--- /dev/null
@@ -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 (file)
index 0000000..e69de29
diff --git a/xfhem/bin/.dummy b/xfhem/bin/.dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/xfhem/etc/.dummy b/xfhem/etc/.dummy
new file mode 100644 (file)
index 0000000..e69de29