wok-current annotate zoneminder/receipt @ rev 25281
updated rinetd again (0.62 -> 0.73)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 18 15:22:44 2022 +0100 (2022-07-18) |
parents | 922f061231c2 |
children |
rev | line source |
---|---|
pascal@13247 | 1 # SliTaz package receipt. |
pascal@13247 | 2 |
pascal@13247 | 3 PACKAGE="zoneminder" |
pascal@13247 | 4 VERSION="1.25.0" |
pascal@13247 | 5 SOURCE="ZoneMinder" |
pascal@13247 | 6 CATEGORY="misc" |
pascal@13247 | 7 SHORT_DESC="Linux video camera security and surveillance solution." |
pascal@13247 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
pascal@23915 | 10 WEB_SITE="https://www.zoneminder.com/" |
pascal@13247 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@24975 | 12 WGET_URL="https://github.com/ZoneMinder/zoneminder/archive/refs/tags/v${VERSION%.*}.tar.gz" |
pascal@13247 | 13 |
pascal@23059 | 14 DEPENDS="mysql jpeg bzlib zlib ffmpeg x264 perl perl-dbi-dbd libssl \ |
pascal@13247 | 15 perl-dbd-mysql perl-time-hires perl-getopt-long perl-date-manip perl-libwww \ |
pascal@13247 | 16 perl-archive-zip" |
pascal@23059 | 17 BUILD_DEPENDS="mysql-dev jpeg-dev ffmpeg-dev openssl-dev libav-dev \ |
pascal@13247 | 18 linux-api-headers $DEPENDS" |
pascal@13247 | 19 |
pascal@24304 | 20 # What is the latest version available today? |
pascal@24304 | 21 current_version() |
pascal@24304 | 22 { |
pascal@24304 | 23 wget -O - https://github.com/ZoneMinder/zoneminder/tags 2>/dev/null | \ |
pascal@24304 | 24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24304 | 25 } |
pascal@24304 | 26 |
pascal@13247 | 27 # Rules to configure and make the package. |
pascal@13247 | 28 compile_rules() |
pascal@13247 | 29 { |
pascal@23059 | 30 export ZM_SSL_LIB=openssl |
pascal@21129 | 31 sed -i 's|\(jpeg_set_quality.*\)false|\1boolean(false)|' src/zm_image.cpp |
pascal@13247 | 32 sed -i 's/.*fcntl.h.*/#include <limits.h>\n&/' src/zm_event.cpp \ |
pascal@13247 | 33 src/zm_local_camera.cpp |
pascal@20284 | 34 CXXFLAGS="-D__STDC_CONSTANT_MACROS -fpermissive" \ |
pascal@13247 | 35 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@13247 | 36 --mandir=/usr/share/man \ |
pascal@13247 | 37 --sysconfdir=/etc \ |
pascal@13247 | 38 --with-libarch=lib \ |
pascal@13247 | 39 --with-mysql=/usr --with-ffmpeg=/usr \ |
pascal@13247 | 40 --with-webuser=www --with-webgroup=www \ |
pascal@13247 | 41 --with-webdir=/usr/share/zoneminder/www \ |
pascal@13247 | 42 --with-cgidir=/usr/share/zoneminder/cgi-bin \ |
pascal@13247 | 43 --enable-mmap=no \ |
pascal@13247 | 44 $CONFIGURE_ARGS && |
pascal@13247 | 45 make && |
pascal@13247 | 46 make -j 1 DESTDIR=$DESTDIR install |
pascal@13247 | 47 } |
pascal@13247 | 48 |
pascal@13247 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13247 | 50 genpkg_rules() |
pascal@13247 | 51 { |
pascal@15000 | 52 cp -a $install/* $stuff/* $fs |
pascal@13247 | 53 cp $src/db/zm_create.sql $fs/usr/share/zoneminder |
pascal@13247 | 54 chown -R root.root $fs/usr/share/zoneminder/zm_create.sql \ |
pascal@13247 | 55 $fs/usr/lib/perl* $fs/etc/*.d/zoneminder |
pascal@13247 | 56 } |