Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

zoneminder

By: a guest on Apr 8th, 2010  |  syntax: Bash  |  size: 3.99 KB  |  hits: 57  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=zoneminder
  2. pkgver=1.24.2
  3. pkgrel=2
  4. pkgdesc="Capture, analyse, record and monitor video security cameras."
  5. arch=('i686')
  6. url="http://www.zoneminder.com"
  7. license=('GPL')
  8. groups=()
  9. depends=('apache' 'php' 'mysql' 'pcre' 'openssl' 'ffmpeg-svn>=18940' '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')
  10. makedepends=()
  11. provides=(zoneminder)
  12. conflicts=(zoneminder)
  13. replaces=()
  14. backup=()
  15. options=()
  16. install=zoneminder.install
  17. source=(http://www2.zoneminder.com/downloads/ZoneMinder-1.24.2.tar.gz \
  18.         zm.rc.d \
  19.         zm.conf.patch \
  20.   zmupdate.patch \
  21.   Controls_Orbit.sql \
  22.   Makefile.patch \
  23.   zm_libv4l.patch \
  24.         zminit.arch \
  25.   customdb \
  26.   httpd-zm.conf \
  27.   zmfilter.pl \
  28.   http://downloads.sourceforge.net/project/jscalendar/jscalendar/1.0/jscalendar-1.0.zip \
  29.   http://www.charliemouse.com:8080/code/cambozola/cambozola-0.50.tar.gz \
  30.   zmeventbackup)
  31. noextract=()
  32. md5sums=('550d2f8f08852134028c3b1cf8fa437f'
  33.          'b20fb25b187eb6abb21321e153a7fb25'
  34.          '1d2a4233af027452ae38a3e0b6d062ee'
  35.          '971947cc093f7d909f39c2ce83846f35'
  36.          '5033bc098bf497c8aed1fc1b3c9c5f9c'
  37.          'b7b532b39f0985c2b995c7923728bc1b'
  38.          '60f5654582873da54796a0cf0641dc3c'
  39.          'f9720872736f26d17bc49d8725b75ae4'
  40.          '4ace13d1e20934abe192ef7372c75988'
  41.          '00201eba9c0a5d1ed14b10cc55410698'
  42.          '80c52cc3575073a7462ff6a54886a345'
  43.          '10f2160fe68294013efcd1473cd36f72'
  44.          'daded58688e16ab513920a54a0599267'
  45.          '8b40137b6ff54f2fb26104b70edd22e9')
  46. build() {
  47.         cd "$srcdir/ZoneMinder-$pkgver"
  48.  
  49.         patch -p1 < $srcdir/zm.conf.patch || read
  50.   patch -p1 < $srcdir/zmupdate.patch || read
  51.   patch -p1 -b < $srcdir/zm_libv4l.patch || read
  52.   cat ../Controls_Orbit.sql >> db/zm_create.sql.in
  53.   sed -i '22s/^$/#include <cstdio>/' \
  54.   src/zm_utils.cpp
  55.   sed -i 's/$max_socket_tries = 3;/$max_socket_tries = 15;/' \
  56.   web/ajax/stream.php || read
  57.  
  58.         ./configure --prefix=/usr \
  59.                 --sysconfdir=/etc \
  60.                 --with-webuser=http  \
  61.                 --with-webgroup=http \
  62.                 --with-mysql=/usr  \
  63.                 --with-webdir=/var/lib/zm/www  \
  64.     --with-cgidir=/var/lib/zm/cgi-bin \
  65.     --with-extralibs="-lv4l1 -lv4l2" \
  66.     --bindir=/usr/lib/zm/bin \
  67.     --enable-mmap=no \
  68.     ZM_SSL_LIB=openssl
  69.  
  70.   patch -p1 < $srcdir/Makefile.patch ||read
  71.         make || return 1
  72.         make DESTDIR="$pkgdir" install || return 1
  73.  
  74.         install -D -m 700 $startdir/src/zminit.arch  $startdir/pkg/usr/lib/zm/bin/zminit
  75.         install -D -m 700 $startdir/src/zm.rc.d  $startdir/pkg/etc/rc.d/zm
  76.   install -D -m 700 scripts/zmdbbackup  $startdir/pkg/usr/lib/zm/bin/zmdbbackup
  77.   install -D -m 700 scripts/zmdbbackup  $startdir/pkg/usr/lib/zm/bin/zmdbbackup
  78.   install -D -m 700 scripts/zmdbrestore  $startdir/pkg/usr/lib/zm/bin/zmdbrestore
  79.   install -D -m 700 scripts/zmeventdump  $startdir/pkg/usr/lib/zm/bin/zmeventdump
  80.   install -D -m 700 scripts/zmlogrotate.conf  $startdir/pkg/etc/logrotate.d/zm
  81.   install -D -m 700 $startdir/src/zmeventbackup  $startdir/pkg/etc/cron.hourly/zmeventbackup
  82.   install -D -m 755 $startdir/src/zmfilter.pl $startdir/pkg/usr/lib/zm/bin/zmfilter.pl
  83.  
  84.   tar -zxf $startdir/src/cambozola-0.50.tar.gz
  85.   install -m 644  cambozola-0.50/dist/cambozola.jar $startdir/pkg/var/lib/zm/www/cambozola.jar
  86.  
  87.   mkdir -p  $startdir/pkg/etc/httpd/conf/extra/
  88.   install -m 644 $startdir/src/httpd-zm.conf $startdir/pkg/etc/httpd/conf/extra/httpd-zm.conf
  89.  
  90.   unzip  $startdir/src/jscalendar-1.0.zip
  91.   mv $startdir/src/jscalendar-1.0 $startdir/pkg/var/lib/zm/www/tools/jscalendar
  92.  
  93.   install -D -m 700 $startdir/src/customdb $startdir/pkg/usr/lib/zm/upgrade/customdb
  94.         install -D  db/zm*.sql $startdir/pkg/usr/lib/zm/upgrade/
  95.  
  96.   mkdir -p $startdir/pkg/var/run/zm
  97.  
  98.   ### remove special files
  99.   find $startdir/pkg/ -name "perllocal.pod" \
  100.     -o -name ".packlist"                \
  101.     -o -name "*.bs"                     \
  102.     |xargs -i rm -f {}
  103.  
  104. }