Zoneminder on Arch Linux ARM

Ask questions about Arch Linux ARM. Please search before making a new topic.

Zoneminder on Arch Linux ARM

Postby Aarshad » Mon Jul 18, 2011 12:40 pm

Anyone here tried or installated Zoneminder on Arch Linux ARM ? It seems that there is no clear manual or topic on how to do this

I have been trying it with no success, keep getting errors in the ./configure and make
Aarshad
 
Posts: 36
Joined: Wed Jun 08, 2011 8:42 am

Re: Zoneminder on Arch Linux ARM

Postby pepedog » Mon Jul 18, 2011 12:59 pm

Have you tried yaourt yet?
pacman -S yaourt
yaourt zoneminder

Now when it asks for editor, select nano
Whenever it asks if you want to edit PKGBUILD, yes, then change arch to arm
It's going to also build depends, I see ffmpeg-svn and perl-php-serialization, maybe more
pepedog
Developer
 
Posts: 1664
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Zoneminder on Arch Linux ARM

Postby Aarshad » Mon Jul 18, 2011 1:15 pm

Wo i didnt know that,

after doing yaourt zoneminder, it seems to be in some kind of loop, keeps requesting me if I want to edit PKGBUILD, although all the arch's are turned into arm

Code: Select all
==> zoneminder dependencies:
 - apache (already installed)
 - php (already installed)
 - mysql (already installed)
 - pcre (already installed)
 - openssl (already installed)
 - perl-dbi (already installed)
 - perl-dbd-mysql (already installed)
 - ffmpeg-svn>=18940 (building from AUR)
 - perl-php-serialization (building from AUR)
 - perl-libwww (package found)
 - perl-date-manip (package found)
 - perl-unicode-map (building from AUR)
 - perl-io-stringy (package found)
 - perl-mime-lite (package found)
 - perl-timedate (package found)
 - perl-x10 (building from AUR)
 - perl-time-modules (building from AUR)
 - perl-net-smtp-ssl (package found)
 - perl-sys-mmap (building from AUR)
 - sudo (package found)
 - libv4l (package found)


==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> Y

==> zoneminder dependencies:
 - apache (already installed)
 - php (already installed)
 - mysql (already installed)
 - pcre (already installed)
 - openssl (already installed)
 - perl-dbi (already installed)
 - perl-dbd-mysql (already installed)
 - ffmpeg-svn>=18940 (building from AUR)
 - perl-php-serialization (building from AUR)
 - perl-libwww (package found)
 - perl-date-manip (package found)
 - perl-unicode-map (building from AUR)
 - perl-io-stringy (package found)
 - perl-mime-lite (package found)
 - perl-timedate (package found)
 - perl-x10 (building from AUR)
 - perl-time-modules (building from AUR)
 - perl-net-smtp-ssl (package found)
 - perl-sys-mmap (building from AUR)
 - sudo (package found)
 - libv4l (package found)


==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> Y

==> zoneminder dependencies:
 - apache (already installed)
 - php (already installed)
 - mysql (already installed)
 - pcre (already installed)
 - openssl (already installed)
 - perl-dbi (already installed)
 - perl-dbd-mysql (already installed)
 - ffmpeg-svn>=18940 (building from AUR)
 - perl-php-serialization (building from AUR)
 - perl-libwww (package found)
 - perl-date-manip (package found)
 - perl-unicode-map (building from AUR)
 - perl-io-stringy (package found)
 - perl-mime-lite (package found)
 - perl-timedate (package found)
 - perl-x10 (building from AUR)
 - perl-time-modules (building from AUR)
 - perl-net-smtp-ssl (package found)
 - perl-sys-mmap (building from AUR)
 - sudo (package found)
 - libv4l (package found)


==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> y

==> zoneminder dependencies:
 - apache (already installed)
 - php (already installed)
 - mysql (already installed)
 - pcre (already installed)
 - openssl (already installed)
 - perl-dbi (already installed)
 - perl-dbd-mysql (already installed)
 - ffmpeg-svn>=18940 (building from AUR)
 - perl-php-serialization (building from AUR)
 - perl-libwww (package found)
 - perl-date-manip (package found)
 - perl-unicode-map (building from AUR)
 - perl-io-stringy (package found)
 - perl-mime-lite (package found)
 - perl-timedate (package found)
 - perl-x10 (building from AUR)
 - perl-time-modules (building from AUR)
 - perl-net-smtp-ssl (package found)
 - perl-sys-mmap (building from AUR)
 - sudo (package found)
 - libv4l (package found)


==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==>


My PKGBUILD

Code: Select all
  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

  unzip  $startdir/src/jscalendar-1.0.zip
  mv $startdir/src/jscalendar-1.0 $startdir/pkg/var/lib/zm/www/tools/jscalendar

  install -D -m 700 $startdir/src/customdb $startdir/pkg/usr/lib/zm/upgrade/cust
omdb
        install -D  db/zm*.sql $startdir/pkg/usr/lib/zm/upgrade/

  mkdir -p $startdir/pkg/var/run/zm

  ### remove special files
  find $startdir/pkg/ -name "perllocal.pod" \
    -o -name ".packlist"                \
    -o -name "*.bs"                     \
    |xargs -i rm -f {}

}

# vim:set ts=2 sw=2 et:
Aarshad
 
Posts: 36
Joined: Wed Jun 08, 2011 8:42 am

Re: Zoneminder on Arch Linux ARM

Postby pepedog » Mon Jul 18, 2011 4:10 pm

Quite likely the edit PKGBUILD is not a loop, but dependancies being sought.
If your "my PKGBUILD" contains only that, it won't work.

Or you go to https://aur.archlinux.org/ and build each by download the tar, extract and build those, but they might have depends too.
pepedog
Developer
 
Posts: 1664
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Zoneminder on Arch Linux ARM

Postby crimsonredmk » Tue Jul 19, 2011 1:55 am

Hm, you sure it's not the thing where it asks to edit the PKGBUILD twice? After you change the arch the first time, it asks again if you want to edit it...
Remember, Arch Linux ARM is completely donation-supported, and is totally awesome.
crimsonredmk
Site Admin
 
Posts: 454
Joined: Wed Dec 30, 2009 5:17 pm
Location: #archlinux-arm on irc.freenode.net

Re: Zoneminder on Arch Linux ARM

Postby Aarshad » Tue Jul 19, 2011 10:18 am

Even when i do continue installation i get this error:


Code: Select all
==> Building and installing package
==> Install or build missing dependencies for zoneminder:
error: target not found: ffmpeg-svn>=18940
==> Restart building zoneminder ? [y/N]


I tried finding this ffmpeg-svn but cant find it, i installed already ffmpeg through yaourt
Aarshad
 
Posts: 36
Joined: Wed Jun 08, 2011 8:42 am

Re: Zoneminder on Arch Linux ARM

Postby pepedog » Tue Jul 19, 2011 10:59 am

You could try editing PKGBUILD (as well as arch) so ffmpeg-svn>=18940 becomes ffmpeg.
Sometimes with leading edge, the need a leading edge dependancy too, but time marches on and the features in that depend is built into current stuff.
If zoneminder is so good and it is worth something for the community, might pay to (instead of yaourt) to download from aur, and build the package https://wiki.archlinux.org/index.php/Makepkg
If you try and fail, I will have a go for you
Notice there are a lot of perl packages as depends, these might need building too (they will be quick to do), just plug away (oh, a pun)
pepedog
Developer
 
Posts: 1664
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Zoneminder on Arch Linux ARM

Postby Aarshad » Tue Jul 19, 2011 1:08 pm

Ill try to make it,

For now I have come a bit further, changed the ffmpeg-svn > xxxx to ffmpeg like you suggested, stil some few things which are weird for me

Also in the PKGBUILD i had to change the jscalander-1.0.zip location to the http://en.sourceforge.jp/projects/sfnet ... ar-1.0.zip


Code: Select all
==> zoneminder dependencies:
 - apache (already installed)
 - php (already installed)
 - mysql (already installed)
 - pcre (already installed)
 - openssl (already installed)
 - ffmpeg (already installed)
 - perl-php-serialization (already installed)
 - perl-libwww (already installed)
 - perl-date-manip (already installed)
 - perl-unicode-map (already installed)
 - perl-dbi (already installed)
 - perl-dbd-mysql (already installed)
 - perl-io-stringy (already installed)
 - perl-mime-lite (already installed)
 - perl-timedate (already installed)
 - perl-x10 (already installed)
 - perl-time-modules (already installed)
 - perl-net-smtp-ssl (already installed)
 - perl-sys-mmap (already installed)
 - sudo (already installed)
 - libv4l (already installed)


==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> Edit zoneminder.install ? [Y/n] ("A" to abort)
==> ----------------------------------------------
==> n

==> Continue building zoneminder ? [Y/n]
==> ------------------------------------
==>
==> Building and installing package
==> WARNING: Building package as root is dangerous.
 Please run yaourt as a non-privileged user.
==> Making package: zoneminder 1.24.2-2 (Tue Jul 19 15:02:19 CDT 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading ZoneMinder-1.24.2.tar.gz...
--2011-07-19 15:02:20--  http://www2.zoneminder.com/downloads/ZoneMinder-1.24.2.tar.gz
Resolving www2.zoneminder.com (www2.zoneminder.com)... 65.111.173.6
Connecting to www2.zoneminder.com (www2.zoneminder.com)|65.111.173.6|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 965521 (943K) [application/x-gzip]
Saving to: âZoneMinder-1.24.2.tar.gz.partâ

100%[===================================================>] 965,521      427K/s   in 2.2s

2011-07-19 15:02:22 (427 KB/s) - âZoneMinder-1.24.2.tar.gz.partâ

  -> Found zm.rc.d
  -> Found zm.conf.patch
  -> Found zmupdate.patch
  -> Found Controls_Orbit.sql
  -> Found Makefile.patch
  -> Found zm_libv4l.patch
  -> Found zminit.arch
  -> Found customdb
  -> Found httpd-zm.conf
  -> Found zmfilter.pl
  -> Downloading jscalendar-1.0.zip...
--2011-07-19 15:02:22--  http://en.sourceforge.jp/projects/sfnet_jscalendar/downloads/jscalendar/1.0/jscalendar-1.0.zip
Resolving en.sourceforge.jp (en.sourceforge.jp)... 202.221.179.21
Connecting to en.sourceforge.jp (en.sourceforge.jp)|202.221.179.21|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://en.sourceforge.jp/projects/sfnet_jscalendar/downloads/jscalendar/1.0/jscalendar-1.0.zip/ [following]
--2011-07-19 15:02:23--  http://en.sourceforge.jp/projects/sfnet_jscalendar/downloads/jscalendar/1.0/jscalendar-1.0.zip/
Reusing existing connection to en.sourceforge.jp:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: âjscalendar-1.0.zip.partâ

    [   <=>                                              ] 20,075      32.7K/s   in 0.6s

2011-07-19 15:02:24 (32.7 KB/s) - âjscalendar-1.0.zip.partâ

  -> Downloading cambozola-0.50.tar.gz...
--2011-07-19 15:02:24--  http://www.charliemouse.com:8080/code/cambozola/cambozola-0.50.tar.gz
Resolving www.charliemouse.com (www.charliemouse.com)... 50.53.156.39
Connecting to www.charliemouse.com (www.charliemouse.com)|50.53.156.39|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 136601 (133K) [application/x-gzip]
Saving to: âcambozola-0.50.tar.gz.partâ

100%[===================================================>] 136,601     94.1K/s   in 1.4s

2011-07-19 15:02:26 (94.1 KB/s) - âcambozola-0.50.tar.gz.partâ

  -> Found zmeventbackup
==> ERROR: Integrity checks are missing.
==> ERROR: Makepkg was unable to build zoneminder.
==> Restart building zoneminder ? [y/N]
==> -----------------------------------
==>
Aarshad
 
Posts: 36
Joined: Wed Jun 08, 2011 8:42 am

Re: Zoneminder on Arch Linux ARM

Postby pepedog » Tue Jul 19, 2011 2:28 pm

Look at the line in PKGBUILD which is
Code: Select all
http://www.charliemouse.com:8080/code/cambozola/cambozola-0.50.tar.gz
you have to change it to this
http://www.charliemouse.com:8080/code/cambozola/cambozola-latest.tar.gz

cambozola has moved on perhaps?
Save PKGBUILD and run this
makepkg -g --asroot
It will generate checksums, edit PKGBUILD with that in
I think it will build then, good luck, use pacman -U to install
pepedog
Developer
 
Posts: 1664
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Zoneminder on Arch Linux ARM

Postby Aarshad » Wed Jul 20, 2011 8:04 am

Yeah i found that also on the net, and have tried it...copied the PKGBUILD to the root directory but when i run this makepkg -g --asroot PKGBUILD, get the following error which i cannot seem to figure out, also nothing on the net on it. Is the zm.rc.d a directory ? the thing is that this was not a problem when using yaourt zoneminder

Code: Select all
[root@ARM5 /]# makepkg -g --asroot >> PKGBUILD
==> Retrieving Sources...
  -> Found ZoneMinder-1.24.2.tar.gz
==> ERROR: zm.rc.d was not found in the build directory and is not a URL.
 



My PKGBUILD
Code: Select all
# This is a ZoneMinder PKGBUILD file.
# Contributor: Ross melin <rdmelin@gmail.com>
arch=('arm')
pkgname=zoneminder
pkgver=1.24.2
pkgrel=2
pkgdesc="Capture, analyse, record and monitor video security cameras."
arm=('i686')
url="http://www.zoneminder.com"
license=('GPL')
groups=()
depends=('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')
makedepends=()
provides=(zoneminder)
conflicts=(zoneminder)
replaces=()
backup=()
options=()
install=zoneminder.install
source=(http://www2.zoneminder.com/downloads/ZoneMinder-1.24.2.tar.gz \
        zm.rc.d \
        zm.conf.patch \
  zmupdate.patch \
  Controls_Orbit.sql \
  Makefile.patch \
  zm_libv4l.patch \
        zminit.arch \
  customdb \
  httpd-zm.conf \
  zmfilter.pl \
  http://en.sourceforge.jp/projects/sfnet_jscalendar/downloads/jscalendar/1.0/jscalendar-1.0.zip \
  http://www.charliemouse.com:8080/code/cambozola/cambozola-latest.tar.gz \
  zmeventbackup)
noextract=()
md5sums=()
build() {
        cd "$srcdir/ZoneMinder-$pkgver"

        patch -p1 < $srcdir/zm.conf.patch || read
  patch -p1 < $srcdir/zmupdate.patch || read
  patch -p1 -b < $srcdir/zm_libv4l.patch || read
  cat ../Controls_Orbit.sql >> db/zm_create.sql.in
  sed -i '22s/^$/#include <cstdio>/' \
  src/zm_utils.cpp
  sed -i 's/$max_socket_tries = 3;/$max_socket_tries = 15;/' \
  web/ajax/stream.php || read
./configure --prefix=/usr \
                --sysconfdir=/etc \
                --with-webuser=http  \
                --with-webgroup=http \
                --with-mysql=/usr  \
                --with-webdir=/var/lib/zm/www  \
    --with-cgidir=/var/lib/zm/cgi-bin \
    --with-extralibs="-lv4l1 -lv4l2" \
    --bindir=/usr/lib/zm/bin \
    --enable-mmap=no \
    ZM_SSL_LIB=openssl

  patch -p1 < $srcdir/Makefile.patch ||read
        make || return 1
        make DESTDIR="$pkgdir" install || return 1

        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
 tar -zxf $startdir/src/cambozola-0.50.tar.gz
  install -m 644  cambozola-0.50/dist/cambozola.jar $startdir/pkg/var/lib/zm/www/cambozola.jar

  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

  unzip  $startdir/src/jscalendar-1.0.zip
  mv $startdir/src/jscalendar-1.0 $startdir/pkg/var/lib/zm/www/tools/jscalendar

  install -D -m 700 $startdir/src/customdb $startdir/pkg/usr/lib/zm/upgrade/customdb
        install -D  db/zm*.sql $startdir/pkg/usr/lib/zm/upgrade/

  mkdir -p $startdir/pkg/var/run/zm

  ### remove special files
  find $startdir/pkg/ -name "perllocal.pod" \
    -o -name ".packlist"                \
    -o -name "*.bs"                     \
    |xargs -i rm -f {}

}

# vim:set ts=2 sw=2 et:
Aarshad
 
Posts: 36
Joined: Wed Jun 08, 2011 8:42 am

Next

Return to User Questions

Who is online

Users browsing this forum: No registered users and 1 guest