wok view zoneminder/receipt @ rev 23367
updated perl-math-round (0.06 -> 0.07)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 13:15:04 2020 +0100 (2020-03-31) |
parents | e1edbbcc3859 |
children | 98fc8296e0a1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="zoneminder"
4 VERSION="1.25.0"
5 SOURCE="ZoneMinder"
6 CATEGORY="misc"
7 SHORT_DESC="Linux video camera security and surveillance solution."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://www.zoneminder.com/"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WGET_URL="http://www2.zoneminder.com/downloads/$TARBALL"
14 DEPENDS="mysql jpeg bzlib zlib ffmpeg x264 perl perl-dbi-dbd libssl \
15 perl-dbd-mysql perl-time-hires perl-getopt-long perl-date-manip perl-libwww \
16 perl-archive-zip"
17 BUILD_DEPENDS="mysql-dev jpeg-dev ffmpeg-dev openssl-dev libav-dev \
18 linux-api-headers $DEPENDS"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 export ZM_SSL_LIB=openssl
24 sed -i 's|\(jpeg_set_quality.*\)false|\1boolean(false)|' src/zm_image.cpp
25 sed -i 's/.*fcntl.h.*/#include <limits.h>\n&/' src/zm_event.cpp \
26 src/zm_local_camera.cpp
27 CXXFLAGS="-D__STDC_CONSTANT_MACROS -fpermissive" \
28 ./configure --prefix=/usr --infodir=/usr/share/info \
29 --mandir=/usr/share/man \
30 --sysconfdir=/etc \
31 --with-libarch=lib \
32 --with-mysql=/usr --with-ffmpeg=/usr \
33 --with-webuser=www --with-webgroup=www \
34 --with-webdir=/usr/share/zoneminder/www \
35 --with-cgidir=/usr/share/zoneminder/cgi-bin \
36 --enable-mmap=no \
37 $CONFIGURE_ARGS &&
38 make &&
39 make -j 1 DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cp -a $install/* $stuff/* $fs
46 cp $src/db/zm_create.sql $fs/usr/share/zoneminder
47 chown -R root.root $fs/usr/share/zoneminder/zm_create.sql \
48 $fs/usr/lib/perl* $fs/etc/*.d/zoneminder
49 }