summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Aranguren2019-12-18 19:06:35 +1100
committerLuis Aranguren2019-12-18 19:06:35 +1100
commit8fcce9a919eccd7cef4a0b203939f3684237340a (patch)
tree97e5be22c4dff6ac0ee3175ebc178ccd2b85b2f0
parent699f655c64f2170a5862ec67a75127f0023bcbc1 (diff)
downloadaur-8fcce9a919eccd7cef4a0b203939f3684237340a.tar.gz
pkrel=2, fixed location of push token, default dir zmeventnotification.pl
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 7 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index aa2240630989..dd8a01ea72cc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = zmeventnotification-git
pkgdesc = Event Notification Server sits along with ZoneMinder and offers real time notifications, support for push notifications as well as Machine Learning powered recognition + hooks
pkgver = v4.6.1.r20.gf70308a
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/pliablepixels/zmeventnotification
arch = x86_64
license = GPL
diff --git a/PKGBUILD b/PKGBUILD
index 92f4d0830ca7..485425a0b547 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=zmeventnotification-git
_pkgname=zmeventnotification
pkgver=v4.6.1.r20.gf70308a
-pkgrel=1
+pkgrel=2
pkgdesc='Event Notification Server sits along with ZoneMinder and offers real time notifications, support for push notifications as well as Machine Learning powered recognition + hooks'
arch=('x86_64')
url='https://github.com/pliablepixels/zmeventnotification'
@@ -45,7 +45,7 @@ prepare () {
#zmeventnotification.ini
sed -i "s|/etc/zm|/etc/zoneminder|" zmeventnotification.ini
- sed -i "s|/var/lib|/opt|" zmeventnotification.ini
+ sed -i "s|/var/lib/zmeventnotification/bin/zm_detect_wrapper.sh|/opt/zmeventnotification/bin/zm_detect_wrapper.sh|" zmeventnotification.ini
sed -i "s|/etc/apache2/ssl/yourportal|/etc/ssl/private|" zmeventnotification.ini
#secrets.ini
@@ -55,6 +55,9 @@ prepare () {
#zm_detect_wrapper.sh
sed -i "s|/etc/zm|/etc/zoneminder|" hook/zm_detect_wrapper.sh
sed -i "s|/var/lib|/opt|" hook/zm_detect_wrapper.sh
+
+ #zmeventnotification.pl
+ sed -i "s|/etc/zm/zmeventnotification.ini|/etc/zoneminder/zmeventnotification.ini|" zmeventnotification.pl
}
build() {
@@ -68,7 +71,7 @@ package() {
install -Dm 755 zmeventnotification.pl "${pkgdir}/usr/bin/zmeventnotification.pl"
#Folder structure
- mkdir -p "${pkgdir}/opt/zmeventnotification/push" 2>/dev/null
+ mkdir -p "${pkgdir}/var/lib/zmeventnotification/push" 2>/dev/null
mkdir -p "${pkgdir}/opt/zmeventnotification/bin" 2>/dev/null
mkdir -p "${pkgdir}/var/lib/zmeventnotification/images" 2>/dev/null
mkdir -p "${pkgdir}/var/lib/zmeventnotification/known_faces" 2>/dev/null