From 04949a18e6ea4a313d101911dcdc689d029ddcb1 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Fri, 7 Oct 2011 02:34:55 -0500
Subject: zoneminder: add zmupdate.pl

---
 abs/core/zoneminder/PKGBUILD | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/abs/core/zoneminder/PKGBUILD b/abs/core/zoneminder/PKGBUILD
index 00ac2c6..6b5c6c8 100755
--- a/abs/core/zoneminder/PKGBUILD
+++ b/abs/core/zoneminder/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=zoneminder
 pkgver=1.25.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Capture, analyse, record and monitor video security cameras."
 arch=('i686' 'x86_64')
 url="http://www.zoneminder.com"
@@ -45,12 +45,12 @@ build() {
   install -D -m 700 $startdir/src/zminit.arch  $startdir/pkg/usr/lib/zm/bin/zminit
   install -D -m 700 $startdir/src/zm.rc.d  $startdir/pkg/etc/rc.d/zm
   install -D -m 700 scripts/zmdbbackup  $startdir/pkg/usr/lib/zm/bin/zmdbbackup
-  install -D -m 700 scripts/zmdbbackup  $startdir/pkg/usr/lib/zm/bin/zmdbbackup
   install -D -m 700 scripts/zmdbrestore  $startdir/pkg/usr/lib/zm/bin/zmdbrestore
   install -D -m 700 scripts/zmeventdump  $startdir/pkg/usr/lib/zm/bin/zmeventdump
   install -D -m 700 scripts/zmlogrotate.conf  $startdir/pkg/etc/logrotate.d/zm
   install -D -m 700 $startdir/src/zmeventbackup  $startdir/pkg/etc/cron.hourly/zmeventbackup
-  install -D -m 755 $startdir/src/zmfilter.pl $startdir/pkg/usr/lib/zm/bin/zmfilter.pl
+  install -D -m 755 scripts/zmfilter.pl $startdir/pkg/usr/lib/zm/bin/zmfilter.pl
+  install -D -m 755 scripts/zmupdate.pl $startdir/pkg/usr/lib/zm/bin/zmupdate.pl
 
   mkdir -p  $startdir/pkg/etc/httpd/conf/extra/
   install -m 644 $startdir/src/httpd-zm.conf $startdir/pkg/etc/httpd/conf/extra/httpd-zm.conf
@@ -59,6 +59,7 @@ build() {
   install -D  db/zm*.sql $startdir/pkg/usr/lib/zm/upgrade/
 
   mkdir -p $startdir/pkg/var/run/zm
+  mkdir -p $startdir/pkg/var/lib/zm
 
   #install runit files
   mkdir -p $pkgdir/etc/sv/zm
@@ -71,7 +72,6 @@ build() {
     |xargs -i rm -f {}
 
 }
-
 md5sums=('eaefa14befd482154970541252aa1a39'
          'b20fb25b187eb6abb21321e153a7fb25'
          '5033bc098bf497c8aed1fc1b3c9c5f9c'
-- 
cgit v0.12

