Zoneminder on Arch Linux ARM

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

Re: Zoneminder on Arch Linux ARM

Postby Aarshad » Wed Jul 20, 2011 11:30 am

Ok yes you are right had to go to /tmp/yaourt-tmp-root/aur-zoneminder, and run there makepkg -g --asroot PKGBUILD

got an outcome string of md5 checksums, copied the stirng into the PKGBUILD as shown here.

$this->bbcode_second_pass_code('', '# 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=('550d2f8f08852134028c3b1cf8fa437f'
'b20fb25b187eb6abb21321e153a7fb25'
'1d2a4233af027452ae38a3e0b6d062ee'
'971947cc093f7d909f39c2ce83846f35'
'5033bc098bf497c8aed1fc1b3c9c5f9c'
'b7b532b39f0985c2b995c7923728bc1b'
'60f5654582873da54796a0cf0641dc3c'
'f9720872736f26d17bc49d8725b75ae4'
'4ace13d1e20934abe192ef7372c75988'
'00201eba9c0a5d1ed14b10cc55410698'
'80c52cc3575073a7462ff6a54886a345'
'c6bad2098795121cbea6552c53faa06a'
'602daba851e726e2399445fda3ca718f'
'8b40137b6ff54f2fb26104b70edd22e9')
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:')

get this message now when running the same makepkg -g --asroot PKGBUILD, its a bit silly but how do I install this now as pacman -U zoneminder.install doesnt do anything

$this->bbcode_second_pass_code('', '==> Retrieving Sources...
-> Found ZoneMinder-1.24.2.tar.gz
-> 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
-> Found jscalendar-1.0.zip
-> Found cambozola-latest.tar.gz
-> Found zmeventbackup
==> Generating checksums for source files...

md5sums=('550d2f8f08852134028c3b1cf8fa437f'
'b20fb25b187eb6abb21321e153a7fb25'
'1d2a4233af027452ae38a3e0b6d062ee'
'971947cc093f7d909f39c2ce83846f35'
'5033bc098bf497c8aed1fc1b3c9c5f9c'
'b7b532b39f0985c2b995c7923728bc1b'
'60f5654582873da54796a0cf0641dc3c'
'f9720872736f26d17bc49d8725b75ae4'
'4ace13d1e20934abe192ef7372c75988'
'00201eba9c0a5d1ed14b10cc55410698'
'80c52cc3575073a7462ff6a54886a345'
'c6bad2098795121cbea6552c53faa06a'
'602daba851e726e2399445fda3ca718f'
'8b40137b6ff54f2fb26104b70edd22e9')')
Aarshad
 
Posts: 36
Joined: Wed Jun 08, 2011 8:42 am

Re: Zoneminder on Arch Linux ARM

Postby pepedog » Wed Jul 20, 2011 11:59 am

You didn't need makepkg -g --asroot PKGBUILD as it assumes PKGBUILD (always)
Did it build? It will be obvious by messages.
The tab key is great, even though I don't know your generated filename (which ends in xz), try this <tab> means press tab key
pacman -U zoneminder-<tab><tab>
2 tabs will give all possible matches, it will fill out too. You want the file that ends in xz
U option wants full filename, S just pkg name
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Zoneminder on Arch Linux ARM

Postby Aarshad » Wed Jul 20, 2011 12:39 pm

It did build, did not get any strange errors, just as i showed it ended with some md5 checksums, which i then copied into the PKGBUILD


$this->bbcode_second_pass_code('', '[root@ARM5 aur-zoneminder]# makepkg -g --asroot PKGBUILD
==> Retrieving Sources...
-> Downloading ZoneMinder-1.24.2.tar.gz...
--2011-07-20 14:49:52-- 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 485K/s in 1.9s

2011-07-20 14:49:54 (485 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-20 14:49:54-- 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-20 14:49:55-- 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,077 34.5K/s in 0.6s

2011-07-20 14:49:56 (34.5 KB/s) - âjscalendar-1.0.zip.partâ

-> Downloading cambozola-latest.tar.gz...
--2011-07-20 14:49:56-- http://www.charliemouse.com:8080/code/cambozola/cambozola-latest.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: 234192 (229K) [application/x-gzip]
Saving to: âcambozola-latest.tar.gz.partâ

100%[======================================================================================================================>] 234,192 128K/s in 1.8s

2011-07-20 14:49:59 (128 KB/s) - âcambozola-latest.tar.gz.partâ

-> Found zmeventbackup
==> Generating checksums for source files...

md5sums=('550d2f8f08852134028c3b1cf8fa437f'
'b20fb25b187eb6abb21321e153a7fb25'
'1d2a4233af027452ae38a3e0b6d062ee'
'971947cc093f7d909f39c2ce83846f35'
'5033bc098bf497c8aed1fc1b3c9c5f9c'
'b7b532b39f0985c2b995c7923728bc1b'
'60f5654582873da54796a0cf0641dc3c'
'f9720872736f26d17bc49d8725b75ae4'
'4ace13d1e20934abe192ef7372c75988'
'00201eba9c0a5d1ed14b10cc55410698'
'80c52cc3575073a7462ff6a54886a345'
'23e033391ef68d5c4b0abe32fe94ca95'
'602daba851e726e2399445fda3ca718f'
'8b40137b6ff54f2fb26104b70edd22e9')')
when i do pacman -U zoneminder (tab tab) i get zoneminder.install, but when entering get the following error

pacman -U zoneminder.install
error: error while reading package zoneminder.install: Unrecognized archive format
error: 'zoneminder.install': libarchive error

These are the files in my directory now
$this->bbcode_second_pass_code('', 'cambozola-latest.tar.gz PKGBUILD zm_libv4l.patch
Controls_Orbit.sql src zm.rc.d
customdb zm.conf.patch zmupdate.patch
httpd-zm.conf zmeventbackup ZoneMinder-1.24.2.tar.gz
jscalendar-1.0.zip zmfilter.pl zoneminder.install
Makefile.patch zminit.arch')
Aarshad
 
Posts: 36
Joined: Wed Jun 08, 2011 8:42 am

Re: Zoneminder on Arch Linux ARM

Postby WarheadsSE » Wed Jul 20, 2011 12:52 pm

pacman -U xxxx

Where xxxx is a package file, in the form zoneminder-1.1.1.tar.xz or some such.

The zoneminder.install is a script that is part of the package itself.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Zoneminder on Arch Linux ARM

Postby pepedog » Wed Jul 20, 2011 12:56 pm

The only thing I can think of (if it built) is to search

Clear the cache
pacman -Scc
Say yes to both

Install mlocate and build database
pacman -Sy mlocate
updatedb

Search for it
locate pkg.tar.xz
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Zoneminder on Arch Linux ARM

Postby Aarshad » Wed Jul 20, 2011 1:15 pm

Done it but still cant find it, could it be that the PKGBUILD is not completely correct and not building the package....its strange as im not getting any errors while doing makepkg -g --asroot PKGBUILD


$this->bbcode_second_pass_code('', '[root@ARM5 aur-zoneminder]# makepkg -g --asroot PKGBUILD
==> Retrieving Sources...
-> Found ZoneMinder-1.24.2.tar.gz
-> 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
-> Found jscalendar-1.0.zip
-> Found cambozola-latest.tar.gz
-> Found zmeventbackup
==> Generating checksums for source files...

md5sums=('550d2f8f08852134028c3b1cf8fa437f'
'b20fb25b187eb6abb21321e153a7fb25'
'1d2a4233af027452ae38a3e0b6d062ee'
'971947cc093f7d909f39c2ce83846f35'
'5033bc098bf497c8aed1fc1b3c9c5f9c'
'b7b532b39f0985c2b995c7923728bc1b'
'60f5654582873da54796a0cf0641dc3c'
'f9720872736f26d17bc49d8725b75ae4'
'4ace13d1e20934abe192ef7372c75988'
'00201eba9c0a5d1ed14b10cc55410698'
'80c52cc3575073a7462ff6a54886a345'
'23e033391ef68d5c4b0abe32fe94ca95'
'602daba851e726e2399445fda3ca718f'
'8b40137b6ff54f2fb26104b70edd22e9')
[root@ARM5 aur-zoneminder]# locate *.xz
/var/abs/local/yaourtbuild/x264-git/x264-git-20110718-1-arm.pkg.tar.xz')
Aarshad
 
Posts: 36
Joined: Wed Jun 08, 2011 8:42 am

Re: Zoneminder on Arch Linux ARM

Postby WarheadsSE » Wed Jul 20, 2011 1:44 pm

Aarshad, please read and understand the makepkg manual. https://wiki.archlinux.org/index.php/makepkg


ONLY ONCE do you need to run with -g to get checksums to put into the pkgbuild.

Once that is done: makepkg -Acs --asroot

Hell, skip the c and it won't auto-cleanup afterwards.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Zoneminder on Arch Linux ARM

Postby Aarshad » Wed Jul 20, 2011 1:54 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'A')arshad, please read and understand the makepkg manual. https://wiki.archlinux.org/index.php/makepkg


ONLY ONCE do you need to run with -g to get checksums to put into the pkgbuild.

Once that is done: makepkg -Acs --asroot

Hell, skip the c and it won't auto-cleanup afterwards.


Damn, i totally did not look at it and was using my arrow keys !
Aarshad
 
Posts: 36
Joined: Wed Jun 08, 2011 8:42 am

Re: Zoneminder on Arch Linux ARM

Postby pepedog » Wed Jul 20, 2011 3:22 pm

So you were not building it.
My guess is it is 10 minutes to 4 hours to build.
Package will end up in same folder, unless you changed something
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Zoneminder on Arch Linux ARM

Postby Aarshad » Thu Jul 21, 2011 1:38 pm

aaa I am having some practical problems, after doing the makepkg thing it starts to build, but seems to hang here, whereafter around 4 hours putty logs me out as network disconnected (resets the connection)...but even looking after few hours later still no *.xz


$this->bbcode_second_pass_code('', '==> Making package: zoneminder 1.24.2-2 (Thu Jul 21 15:36:09 CDT 2011)
==> WARNING: Skipping dependency checks.
==> Retrieving Sources...
-> Found ZoneMinder-1.24.2.tar.gz
-> 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
-> Found jscalendar-1.0.zip
-> Found cambozola-latest.tar.gz
-> Found zmeventbackup
==> Validating source files with md5sums...
ZoneMinder-1.24.2.tar.gz ... Passed
zm.rc.d ... Passed
zm.conf.patch ... Passed
zmupdate.patch ... Passed
Controls_Orbit.sql ... Passed
Makefile.patch ... Passed
zm_libv4l.patch ... Passed
zminit.arch ... Passed
customdb ... Passed
httpd-zm.conf ... Passed
zmfilter.pl ... Passed
jscalendar-1.0.zip ... Passed
cambozola-latest.tar.gz ... Passed
zmeventbackup ... Passed
==> Extracting Sources...
-> Extracting ZoneMinder-1.24.2.tar.gz with bsdtar
-> Extracting cambozola-latest.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
/tmp/yaourt-tmp-root/aur-zoneminder/PKGBUILD: line 52: patch: command not found')
Aarshad
 
Posts: 36
Joined: Wed Jun 08, 2011 8:42 am

PreviousNext

Return to User Questions

Who is online

Users browsing this forum: No registered users and 5 guests