# 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" LICENSE="GPL2" WEB_SITE="https://www.zoneminder.com/" TARBALL="$SOURCE-$VERSION.tar.gz" WGET_URL="https://github.com/ZoneMinder/zoneminder/archive/refs/tags/v${VERSION%.*}.tar.gz" DEPENDS="mysql jpeg bzlib zlib ffmpeg x264 perl perl-dbi-dbd libssl \ perl-dbd-mysql perl-time-hires perl-getopt-long perl-date-manip perl-libwww \ perl-archive-zip" BUILD_DEPENDS="mysql-dev jpeg-dev ffmpeg-dev openssl-dev libav-dev \ linux-api-headers $DEPENDS" # What is the latest version available today? current_version() { wget -O - https://github.com/ZoneMinder/zoneminder/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { export ZM_SSL_LIB=openssl sed -i 's|\(jpeg_set_quality.*\)false|\1boolean(false)|' src/zm_image.cpp sed -i 's/.*fcntl.h.*/#include \n&/' src/zm_event.cpp \ src/zm_local_camera.cpp CXXFLAGS="-D__STDC_CONSTANT_MACROS -fpermissive" \ ./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 $install/* $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 }