1 # This is a ZoneMinder PKGBUILD file.
2 # Maintainer: Ernie Brodeur <ebrodeur@ujami.net>
3 # Contributor: Ross melin <rdmelin@gmail.com>
8 pkgdesc="Capture, analyse, record and monitor video security cameras."
10 url="http://www.zoneminder.com"
12 depends=('cambozola' 'apache' 'php' 'mysql' 'pcre' 'openssl' 'ffmpeg' 'perl-php-serialization' 'perl-libwww' 'perl-date-manip' 'perl-unicode-map' 'perl-dbi' 'perl-dbd-mysql' 'perl-io-stringy' 'perl-mime-lite' 'perl-timedate' 'perl-x10' 'perl-time-modules' 'perl-net-smtp-ssl' 'perl-sys-mmap' 'sudo' 'libv4l' 'libjpeg' 'gnutls' 'php-apache')
14 install=zoneminder.install
15 source=("http://www2.zoneminder.com/downloads/ZoneMinder-${pkgver}.tar.gz"
24 md5sums=('eaefa14befd482154970541252aa1a39'
25 'b20fb25b187eb6abb21321e153a7fb25'
26 '5033bc098bf497c8aed1fc1b3c9c5f9c'
27 'f9720872736f26d17bc49d8725b75ae4'
28 '4ace13d1e20934abe192ef7372c75988'
29 '00201eba9c0a5d1ed14b10cc55410698'
30 '80c52cc3575073a7462ff6a54886a345'
31 '8b40137b6ff54f2fb26104b70edd22e9')
35 cd "$srcdir/ZoneMinder-$pkgver"
37 cat ../Controls_Orbit.sql >> db/zm_create.sql.in
38 ./configure --prefix=/usr \
41 --with-webgroup=http \
43 --with-webdir=/srv/zoneminder/www \
44 --with-cgidir=/srv/zoneminder/cgi-bin \
45 --bindir=/srv/zoneminder/bin \
47 CPPFLAGS=-D__STDC_CONSTANT_MACROS
48 # goddamn chown line just mucks everything up, we'll chown it in the install
50 sed -i '/chown/d' Makefile
52 make DESTDIR="$pkgdir" install || return 1
54 install -D -m 700 $startdir/src/zminit.arch $startdir/pkg/usr/lib/zm/bin/zminit
55 install -D -m 700 $startdir/src/zm.rc.d $startdir/pkg/etc/rc.d/zm
56 install -D -m 700 scripts/zmdbbackup $startdir/pkg/usr/lib/zm/bin/zmdbbackup
57 install -D -m 700 scripts/zmdbbackup $startdir/pkg/usr/lib/zm/bin/zmdbbackup
58 install -D -m 700 scripts/zmdbrestore $startdir/pkg/usr/lib/zm/bin/zmdbrestore
59 install -D -m 700 scripts/zmeventdump $startdir/pkg/usr/lib/zm/bin/zmeventdump
60 install -D -m 700 scripts/zmlogrotate.conf $startdir/pkg/etc/logrotate.d/zm
61 install -D -m 700 $startdir/src/zmeventbackup $startdir/pkg/etc/cron.hourly/zmeventbackup
62 install -D -m 755 $startdir/src/zmfilter.pl $startdir/pkg/usr/lib/zm/bin/zmfilter.pl
64 mkdir -p $startdir/pkg/etc/httpd/conf/extra/
65 install -m 644 $startdir/src/httpd-zm.conf $startdir/pkg/etc/httpd/conf/extra/httpd-zm.conf
67 install -D -m 700 $startdir/src/customdb $startdir/pkg/usr/lib/zm/upgrade/customdb
68 install -D db/zm*.sql $startdir/pkg/usr/lib/zm/upgrade/
70 mkdir -p $startdir/pkg/var/run/zm
72 ### remove special files
73 find $startdir/pkg/ -name "perllocal.pod" \
74 -o -name ".packlist" \
80 # vim:set ts=2 sw=2 et: