posaune
authorMichael J.M. Wagner <michael@wagnertech.de>
Tue, 17 Oct 2023 18:41:18 +0000 (20:41 +0200)
committerMichael J.M. Wagner <michael@wagnertech.de>
Tue, 17 Oct 2023 18:41:18 +0000 (20:41 +0200)
28 files changed:
Test/xFhem/.dummy [new file with mode: 0644]
Test/xFhem/FitnessePages/.dummy [new file with mode: 0644]
Test/xFhem/FitnessePages/AaaPrepare/.dummy [new file with mode: 0644]
Test/xFhem/FitnessePages/AaaPrepare/content.txt [new file with mode: 0644]
Test/xFhem/FitnessePages/AaaPrepare/properties.xml [new file with mode: 0644]
Test/xFhem/FitnessePages/TestWatchdog/.dummy [new file with mode: 0644]
Test/xFhem/FitnessePages/TestWatchdog/content.txt [new file with mode: 0644]
Test/xFhem/FitnessePages/TestWatchdog/properties.xml [new file with mode: 0644]
Test/xFhem/FitnessePages/content.txt [new file with mode: 0644]
Test/xFhem/FitnessePages/properties.xml [new file with mode: 0644]
Test/xFhem/bin/.dummy [new file with mode: 0644]
Test/xFhem/bin/install-sysal-stub [new file with mode: 0755]
Test/xFhem/bin/sysal-stub.pl [new file with mode: 0755]
TestXfhem/.dummy [deleted file]
TestXfhem/FitnessePages/.dummy [deleted file]
TestXfhem/FitnessePages/AaaPrepare/.dummy [deleted file]
TestXfhem/FitnessePages/AaaPrepare/content.txt [deleted file]
TestXfhem/FitnessePages/AaaPrepare/properties.xml [deleted file]
TestXfhem/FitnessePages/TestWatchdog/.dummy [deleted file]
TestXfhem/FitnessePages/TestWatchdog/content.txt [deleted file]
TestXfhem/FitnessePages/TestWatchdog/properties.xml [deleted file]
TestXfhem/FitnessePages/content.txt [deleted file]
TestXfhem/FitnessePages/properties.xml [deleted file]
TestXfhem/bin/.dummy [deleted file]
TestXfhem/bin/install-sysal-stub [deleted file]
TestXfhem/bin/sysal-stub.pl [deleted file]
debian/timetracker.cp
debian/timetracker.prepare

diff --git a/Test/xFhem/.dummy b/Test/xFhem/.dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Test/xFhem/FitnessePages/.dummy b/Test/xFhem/FitnessePages/.dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Test/xFhem/FitnessePages/AaaPrepare/.dummy b/Test/xFhem/FitnessePages/AaaPrepare/.dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Test/xFhem/FitnessePages/AaaPrepare/content.txt b/Test/xFhem/FitnessePages/AaaPrepare/content.txt
new file mode 100644 (file)
index 0000000..b75ee2f
--- /dev/null
@@ -0,0 +1,8 @@
+Sysal-Stub installieren
+
+!|test.util.CallScript|
+|call script|sudo bin/install-sysal-stub|
+
+Anmerkung: Falls eine komplett neue Installation des sysal-stub erzwungen werden soll:
+sudo rm /etc/apache2/sites-available/sysal_stub.conf
+ausführen.
diff --git a/Test/xFhem/FitnessePages/AaaPrepare/properties.xml b/Test/xFhem/FitnessePages/AaaPrepare/properties.xml
new file mode 100644 (file)
index 0000000..3e87512
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<properties>
+       <Edit>true</Edit>
+       <Files>true</Files>
+       <Properties>true</Properties>
+       <RecentChanges>true</RecentChanges>
+       <Refactor>true</Refactor>
+       <Search>true</Search>
+       <Test/>
+       <Versions>true</Versions>
+       <WhereUsed>true</WhereUsed>
+</properties>
diff --git a/Test/xFhem/FitnessePages/TestWatchdog/.dummy b/Test/xFhem/FitnessePages/TestWatchdog/.dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Test/xFhem/FitnessePages/TestWatchdog/content.txt b/Test/xFhem/FitnessePages/TestWatchdog/content.txt
new file mode 100644 (file)
index 0000000..8b3a0b9
--- /dev/null
@@ -0,0 +1,20 @@
+Install Watchdog
+
+!|test.util.CallScript|
+|call script|xfhem define watchdog localhost|
+
+Entferne Sysal-Stub-Output
+|call script|!-sudo rm /var/test/sysal-stub.out || true -!|
+
+Verkürze Zeit
+|call script|/opt/fhem/fhem.pl 7072 "modify watchdog +*00:00:05"|
+
+Warte Auslösezeit
+|call script|sleep 6|
+
+Prüfe Watchdog
+|call script|grep rwd /var/test/sysal-stub.out|
+
+Entferne Watchdog
+|call script|xfhem delete watchdog|
+
diff --git a/Test/xFhem/FitnessePages/TestWatchdog/properties.xml b/Test/xFhem/FitnessePages/TestWatchdog/properties.xml
new file mode 100644 (file)
index 0000000..e13fdf4
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<properties>
+       <Edit>true</Edit>
+       <Files>true</Files>
+       <Properties>true</Properties>
+       <RecentChanges>true</RecentChanges>
+       <Refactor>true</Refactor>
+       <Search>true</Search>
+       <Test>true</Test>
+       <Versions>true</Versions>
+       <WhereUsed>true</WhereUsed>
+</properties>
diff --git a/Test/xFhem/FitnessePages/content.txt b/Test/xFhem/FitnessePages/content.txt
new file mode 100644 (file)
index 0000000..5f3d863
--- /dev/null
@@ -0,0 +1,2 @@
+#!contents -R2 -g -p -f -h
+!contents
diff --git a/Test/xFhem/FitnessePages/properties.xml b/Test/xFhem/FitnessePages/properties.xml
new file mode 100644 (file)
index 0000000..3096ff6
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<properties>
+       <Edit/>
+       <Files/>
+       <Help></Help>
+       <Properties/>
+       <RecentChanges/>
+       <Refactor/>
+       <Search/>
+       <Suite/>
+       <Suites></Suites>
+       <Versions/>
+       <WhereUsed/>
+</properties>
diff --git a/Test/xFhem/bin/.dummy b/Test/xFhem/bin/.dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Test/xFhem/bin/install-sysal-stub b/Test/xFhem/bin/install-sysal-stub
new file mode 100755 (executable)
index 0000000..0121c38
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/bash
+set -e
+
+# test if apache-conf already installed
+if [ -e /etc/apache2/sites-enabled/sysal_stub.conf ]
+then
+       exit
+fi
+
+mkdir -p /var/test
+chmod 777 /var/test
+
+cwd=$(pwd)
+# write apache conf
+echo "# Apache conf for sysal stub
+Alias /sysal/rest/AlarmInterface/RemoteWatchdog $cwd/bin/sysal-stub.pl
+<Directory $cwd/bin>
+       Require all granted
+       Options +ExecCGI
+       AddHandler cgi-script .pl
+</Directory>
+" > /etc/apache2/sites-available/sysal_stub.conf
+a2ensite sysal_stub
+a2enmod cgi
+
+systemctl restart apache2
+
diff --git a/Test/xFhem/bin/sysal-stub.pl b/Test/xFhem/bin/sysal-stub.pl
new file mode 100755 (executable)
index 0000000..03f6b95
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/perl -w
+
+print "Content-type: text/html\n\n";
+print "<html><body>\n";
+
+
+open (OUT, ">/var/test/sysal-stub.out");
+while (my $line = <STDIN>) {
+       print OUT "$line\n";
+       print "$line\n";
+}
+
+print "</body></html>\n";
+
diff --git a/TestXfhem/.dummy b/TestXfhem/.dummy
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/TestXfhem/FitnessePages/.dummy b/TestXfhem/FitnessePages/.dummy
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/TestXfhem/FitnessePages/AaaPrepare/.dummy b/TestXfhem/FitnessePages/AaaPrepare/.dummy
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/TestXfhem/FitnessePages/AaaPrepare/content.txt b/TestXfhem/FitnessePages/AaaPrepare/content.txt
deleted file mode 100644 (file)
index b75ee2f..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-Sysal-Stub installieren
-
-!|test.util.CallScript|
-|call script|sudo bin/install-sysal-stub|
-
-Anmerkung: Falls eine komplett neue Installation des sysal-stub erzwungen werden soll:
-sudo rm /etc/apache2/sites-available/sysal_stub.conf
-ausführen.
diff --git a/TestXfhem/FitnessePages/AaaPrepare/properties.xml b/TestXfhem/FitnessePages/AaaPrepare/properties.xml
deleted file mode 100644 (file)
index 3e87512..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0"?>
-<properties>
-       <Edit>true</Edit>
-       <Files>true</Files>
-       <Properties>true</Properties>
-       <RecentChanges>true</RecentChanges>
-       <Refactor>true</Refactor>
-       <Search>true</Search>
-       <Test/>
-       <Versions>true</Versions>
-       <WhereUsed>true</WhereUsed>
-</properties>
diff --git a/TestXfhem/FitnessePages/TestWatchdog/.dummy b/TestXfhem/FitnessePages/TestWatchdog/.dummy
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/TestXfhem/FitnessePages/TestWatchdog/content.txt b/TestXfhem/FitnessePages/TestWatchdog/content.txt
deleted file mode 100644 (file)
index 8b3a0b9..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-Install Watchdog
-
-!|test.util.CallScript|
-|call script|xfhem define watchdog localhost|
-
-Entferne Sysal-Stub-Output
-|call script|!-sudo rm /var/test/sysal-stub.out || true -!|
-
-Verkürze Zeit
-|call script|/opt/fhem/fhem.pl 7072 "modify watchdog +*00:00:05"|
-
-Warte Auslösezeit
-|call script|sleep 6|
-
-Prüfe Watchdog
-|call script|grep rwd /var/test/sysal-stub.out|
-
-Entferne Watchdog
-|call script|xfhem delete watchdog|
-
diff --git a/TestXfhem/FitnessePages/TestWatchdog/properties.xml b/TestXfhem/FitnessePages/TestWatchdog/properties.xml
deleted file mode 100644 (file)
index e13fdf4..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0"?>
-<properties>
-       <Edit>true</Edit>
-       <Files>true</Files>
-       <Properties>true</Properties>
-       <RecentChanges>true</RecentChanges>
-       <Refactor>true</Refactor>
-       <Search>true</Search>
-       <Test>true</Test>
-       <Versions>true</Versions>
-       <WhereUsed>true</WhereUsed>
-</properties>
diff --git a/TestXfhem/FitnessePages/content.txt b/TestXfhem/FitnessePages/content.txt
deleted file mode 100644 (file)
index 5f3d863..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!contents -R2 -g -p -f -h
-!contents
diff --git a/TestXfhem/FitnessePages/properties.xml b/TestXfhem/FitnessePages/properties.xml
deleted file mode 100644 (file)
index 3096ff6..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0"?>
-<properties>
-       <Edit/>
-       <Files/>
-       <Help></Help>
-       <Properties/>
-       <RecentChanges/>
-       <Refactor/>
-       <Search/>
-       <Suite/>
-       <Suites></Suites>
-       <Versions/>
-       <WhereUsed/>
-</properties>
diff --git a/TestXfhem/bin/.dummy b/TestXfhem/bin/.dummy
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/TestXfhem/bin/install-sysal-stub b/TestXfhem/bin/install-sysal-stub
deleted file mode 100755 (executable)
index 0121c38..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-set -e
-
-# test if apache-conf already installed
-if [ -e /etc/apache2/sites-enabled/sysal_stub.conf ]
-then
-       exit
-fi
-
-mkdir -p /var/test
-chmod 777 /var/test
-
-cwd=$(pwd)
-# write apache conf
-echo "# Apache conf for sysal stub
-Alias /sysal/rest/AlarmInterface/RemoteWatchdog $cwd/bin/sysal-stub.pl
-<Directory $cwd/bin>
-       Require all granted
-       Options +ExecCGI
-       AddHandler cgi-script .pl
-</Directory>
-" > /etc/apache2/sites-available/sysal_stub.conf
-a2ensite sysal_stub
-a2enmod cgi
-
-systemctl restart apache2
-
diff --git a/TestXfhem/bin/sysal-stub.pl b/TestXfhem/bin/sysal-stub.pl
deleted file mode 100755 (executable)
index 03f6b95..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/perl -w
-
-print "Content-type: text/html\n\n";
-print "<html><body>\n";
-
-
-open (OUT, ">/var/test/sysal-stub.out");
-while (my $line = <STDIN>) {
-       print OUT "$line\n";
-       print "$line\n";
-}
-
-print "</body></html>\n";
-
index 760300c..b577aa2 100755 (executable)
@@ -5,7 +5,7 @@ mkdir -p $1/usr/share/php/timetracker
 rsync -a --delete --exclude='.git' Downloads/timetracker/ $1/usr/share/php/timetracker/
 
 mkdir -p $1/etc/apache2/sites-available
-cp debian/timetracker.conf $1/etc/apache2/sites-available/
+cp timetracker/timetracker.conf $1/etc/apache2/sites-available/
 
 mkdir -p $1/usr/share/doc/timetracker
 cp Downloads/timetracker/license.txt $1/usr/share/doc/timetracker/copyright
index 7d9ccbc..e034513 100755 (executable)
@@ -7,7 +7,7 @@ cd Downloads
 if [ -d timetracker ]
 then
        cd timetracker
-       git fetch -t
+       git pull origin $(git rev-parse --abbrev-ref HEAD)
 else
        git clone https://github.com/anuko/timetracker
        cd timetracker
@@ -16,5 +16,6 @@ fi
 # determine version
 version=$(grep "APP_VERSION" initialize.php |sed 's/define("APP_VERSION", "//' |sed 's/".*//')
 echo $version
-echo "version=$version" >> ../../debian/setenv.sh
+echo "export version=$version" >> ../../debian/setenv.sh
+echo "version=$version" >> ../../debian/rules.pre