wok-undigest annotate zoneminder/receipt @ rev 752

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