wok-current annotate zoneminder/receipt @ rev 13815
Update get-java6-jre (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 06 14:02:36 2013 +0100 (2013-01-06) |
parents | |
children | 380ffe05937a |
rev | line source |
---|---|
pascal@13247 | 1 # SliTaz package receipt. |
pascal@13247 | 2 |
pascal@13247 | 3 PACKAGE="zoneminder" |
pascal@13247 | 4 VERSION="1.25.0" |
pascal@13247 | 5 SOURCE="ZoneMinder" |
pascal@13247 | 6 CATEGORY="misc" |
pascal@13247 | 7 SHORT_DESC="Linux video camera security and surveillance solution." |
pascal@13247 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@13247 | 9 WEB_SITE="http://www.zoneminder.com/" |
pascal@13247 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@13247 | 11 WGET_URL="http://www2.zoneminder.com/downloads/$TARBALL" |
pascal@13247 | 12 |
pascal@13247 | 13 DEPENDS="mysql jpeg bzlib zlib ffmpeg-svn x264 perl perl-dbi-dbd \ |
pascal@13247 | 14 perl-dbd-mysql perl-time-hires perl-getopt-long perl-date-manip perl-libwww \ |
pascal@13247 | 15 perl-archive-zip" |
pascal@13247 | 16 BUILD_DEPENDS="mysql-dev jpeg-dev ffmpeg-svn-dev gnutls-dev \ |
pascal@13247 | 17 linux-api-headers $DEPENDS" |
pascal@13247 | 18 |
pascal@13247 | 19 # Rules to configure and make the package. |
pascal@13247 | 20 compile_rules() |
pascal@13247 | 21 { |
pascal@13247 | 22 cd $src |
pascal@13247 | 23 sed -i 's/.*fcntl.h.*/#include <limits.h>\n&/' src/zm_event.cpp \ |
pascal@13247 | 24 src/zm_local_camera.cpp |
pascal@13247 | 25 CXXFLAGS=-D__STDC_CONSTANT_MACROS \ |
pascal@13247 | 26 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@13247 | 27 --mandir=/usr/share/man \ |
pascal@13247 | 28 --sysconfdir=/etc \ |
pascal@13247 | 29 --with-libarch=lib \ |
pascal@13247 | 30 --with-mysql=/usr --with-ffmpeg=/usr \ |
pascal@13247 | 31 --with-webuser=www --with-webgroup=www \ |
pascal@13247 | 32 --with-webdir=/usr/share/zoneminder/www \ |
pascal@13247 | 33 --with-cgidir=/usr/share/zoneminder/cgi-bin \ |
pascal@13247 | 34 --enable-mmap=no \ |
pascal@13247 | 35 $CONFIGURE_ARGS && |
pascal@13247 | 36 make && |
pascal@13247 | 37 make -j 1 DESTDIR=$DESTDIR install |
pascal@13247 | 38 } |
pascal@13247 | 39 |
pascal@13247 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13247 | 41 genpkg_rules() |
pascal@13247 | 42 { |
pascal@13247 | 43 cp -a $_pkg/* $stuff/* $fs |
pascal@13247 | 44 cp $src/db/zm_create.sql $fs/usr/share/zoneminder |
pascal@13247 | 45 chown -R root.root $fs/usr/share/zoneminder/zm_create.sql \ |
pascal@13247 | 46 $fs/usr/lib/perl* $fs/etc/*.d/zoneminder |
pascal@13247 | 47 } |