wok diff zoneminder/receipt @ rev 14291

Up: evas-dev (1.7.5)
author Dominique Corbex <domcox@slitaz.org>
date Sun Apr 07 10:02:42 2013 +0200 (2013-04-07)
parents
children 380ffe05937a
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/zoneminder/receipt	Sun Apr 07 10:02:42 2013 +0200
     1.3 @@ -0,0 +1,47 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="zoneminder"
     1.7 +VERSION="1.25.0"
     1.8 +SOURCE="ZoneMinder"
     1.9 +CATEGORY="misc"
    1.10 +SHORT_DESC="Linux video camera security and surveillance solution."
    1.11 +MAINTAINER="pascal.bellard@slitaz.org"
    1.12 +WEB_SITE="http://www.zoneminder.com/"
    1.13 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.14 +WGET_URL="http://www2.zoneminder.com/downloads/$TARBALL"
    1.15 +
    1.16 +DEPENDS="mysql jpeg bzlib zlib ffmpeg-svn x264 perl perl-dbi-dbd \
    1.17 +perl-dbd-mysql perl-time-hires perl-getopt-long perl-date-manip perl-libwww \
    1.18 +perl-archive-zip"
    1.19 +BUILD_DEPENDS="mysql-dev jpeg-dev ffmpeg-svn-dev gnutls-dev \
    1.20 +linux-api-headers $DEPENDS"
    1.21 +
    1.22 +# Rules to configure and make the package.
    1.23 +compile_rules()
    1.24 +{
    1.25 +	cd $src
    1.26 +	sed -i 's/.*fcntl.h.*/#include <limits.h>\n&/' src/zm_event.cpp \
    1.27 +		src/zm_local_camera.cpp
    1.28 +	CXXFLAGS=-D__STDC_CONSTANT_MACROS \
    1.29 +	./configure --prefix=/usr --infodir=/usr/share/info \
    1.30 +		--mandir=/usr/share/man \
    1.31 +		--sysconfdir=/etc \
    1.32 +		--with-libarch=lib \
    1.33 +		--with-mysql=/usr --with-ffmpeg=/usr \
    1.34 +		--with-webuser=www --with-webgroup=www \
    1.35 +		--with-webdir=/usr/share/zoneminder/www \
    1.36 +		--with-cgidir=/usr/share/zoneminder/cgi-bin \
    1.37 +		--enable-mmap=no \
    1.38 +		$CONFIGURE_ARGS &&
    1.39 +	make &&
    1.40 +	make -j 1 DESTDIR=$DESTDIR install
    1.41 +}
    1.42 +
    1.43 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.44 +genpkg_rules()
    1.45 +{
    1.46 +	cp -a $_pkg/* $stuff/* $fs
    1.47 +	cp $src/db/zm_create.sql $fs/usr/share/zoneminder
    1.48 +	chown -R root.root $fs/usr/share/zoneminder/zm_create.sql \
    1.49 +		$fs/usr/lib/perl* $fs/etc/*.d/zoneminder
    1.50 +}