wok-next view zoneminder/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 757d032c55c7
children 82b613cfd1e0
line source
1 # SliTaz package receipt v2.
3 PACKAGE="zoneminder"
4 VERSION="1.25.0"
5 CATEGORY="misc"
6 SHORT_DESC="Linux video camera security and surveillance solution"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.zoneminder.com/"
11 TARBALL="ZoneMinder-$VERSION.tar.gz"
12 WGET_URL="http://www2.zoneminder.com/downloads/$TARBALL"
14 BUILD_DEPENDS="mysql-dev jpeg-dev ffmpeg-dev gnutls-dev libav-dev \
15 linux-api-headers bzlib zlib x264 perl perl-dbi-dbd perl-dbd-mysql \
16 perl-time-hires perl-getopt-long perl-date-manip perl-libwww-perl \
17 perl-archive-zip"
19 compile_rules() {
20 sed -i 's/.*fcntl.h.*/#include <limits.h>\n&/' src/zm_event.cpp \
21 src/zm_local_camera.cpp
22 CXXFLAGS=-D__STDC_CONSTANT_MACROS \
23 ./configure \
24 --with-libarch=lib \
25 --with-mysql=/usr \
26 --with-ffmpeg=/usr \
27 --with-webuser=www \
28 --with-webgroup=www \
29 --with-webdir=/usr/share/zoneminder/www \
30 --with-cgidir=/usr/share/zoneminder/cgi-bin \
31 --enable-mmap=no \
32 $CONFIGURE_ARGS &&
33 make &&
34 make -j1 DESTDIR=$install install || return 1
36 install -Dm644 $stuff/etc/logrotate.d/zoneminder $install/etc/logrotate.d/zoneminder
37 install -Dm644 $stuff/etc/mysql.d/zoneminder $install/etc/mysql.d/zoneminder
38 install -Dm644 $src/db/zm_create.sql $install/usr/share/zoneminder/zm_create.sql
39 }
41 genpkg_rules() {
42 copy @std
43 DEPENDS="mysql jpeg bzlib zlib ffmpeg x264 perl perl-dbi-dbd \
44 perl-dbd-mysql perl-time-hires perl-getopt-long perl-date-manip \
45 perl-libwww-perl perl-archive-zip"
46 }