# HG changeset patch # User Pascal Bellard # Date 1344944373 -7200 # Node ID 2b0f10522770e5ef7b1a31892ca251783443f294 # Parent 532929a9f473ed14cb0a15921def429dcc130a06 Move from undigest: zoneminder diff -r 532929a9f473 -r 2b0f10522770 zoneminder/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zoneminder/receipt Tue Aug 14 13:39:33 2012 +0200 @@ -0,0 +1,47 @@ +# SliTaz package receipt. + +PACKAGE="zoneminder" +VERSION="1.25.0" +SOURCE="ZoneMinder" +CATEGORY="misc" +SHORT_DESC="Linux video camera security and surveillance solution." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://www.zoneminder.com/" +TARBALL="$SOURCE-$VERSION.tar.gz" +WGET_URL="http://www2.zoneminder.com/downloads/$TARBALL" + +DEPENDS="mysql jpeg bzlib zlib ffmpeg-svn x264 perl perl-dbi-dbd \ +perl-dbd-mysql perl-time-hires perl-getopt-long perl-date-manip perl-libwww \ +perl-archive-zip" +BUILD_DEPENDS="mysql-dev jpeg-dev ffmpeg-svn-dev gnutls-dev \ +linux-api-headers $DEPENDS" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + sed -i 's/.*fcntl.h.*/#include \n&/' src/zm_event.cpp \ + src/zm_local_camera.cpp + CXXFLAGS=-D__STDC_CONSTANT_MACROS \ + ./configure --prefix=/usr --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --sysconfdir=/etc \ + --with-libarch=lib \ + --with-mysql=/usr --with-ffmpeg=/usr \ + --with-webuser=www --with-webgroup=www \ + --with-webdir=/usr/share/zoneminder/www \ + --with-cgidir=/usr/share/zoneminder/cgi-bin \ + --enable-mmap=no \ + $CONFIGURE_ARGS && + make && + make -j 1 DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $_pkg/* $stuff/* $fs + cp $src/db/zm_create.sql $fs/usr/share/zoneminder + chown -R root.root $fs/usr/share/zoneminder/zm_create.sql \ + $fs/usr/lib/perl* $fs/etc/*.d/zoneminder +} diff -r 532929a9f473 -r 2b0f10522770 zoneminder/stuff/etc/logrotate.d/zoneminder --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zoneminder/stuff/etc/logrotate.d/zoneminder Tue Aug 14 13:39:33 2012 +0200 @@ -0,0 +1,8 @@ +/var/log/zm/*.log { + missingok + notifempty + sharedscripts + postrotate + /usr/bin/zmpkg.pl logrot 2>&1 /dev/null || true + endscript +} diff -r 532929a9f473 -r 2b0f10522770 zoneminder/stuff/etc/mysql.d/zoneminder --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zoneminder/stuff/etc/mysql.d/zoneminder Tue Aug 14 13:39:33 2012 +0200 @@ -0,0 +1,13 @@ +#!/bin/sh + +mysqldump zm > /dev/null 2>&1 || mysql <