wok-next diff zoneminder/receipt @ rev 20673

font-manager: dev package is empty, update deps.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 11 16:56:15 2018 +0300 (2018-05-11)
parents ded7bc956f55
children d5aab818505e
line diff
     1.1 --- a/zoneminder/receipt	Thu May 11 00:50:35 2017 +0300
     1.2 +++ b/zoneminder/receipt	Fri May 11 16:56:15 2018 +0300
     1.3 @@ -1,48 +1,44 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="zoneminder"
     1.8  VERSION="1.25.0"
     1.9 -SOURCE="ZoneMinder"
    1.10  CATEGORY="misc"
    1.11 -SHORT_DESC="Linux video camera security and surveillance solution."
    1.12 +SHORT_DESC="Linux video camera security and surveillance solution"
    1.13  MAINTAINER="pascal.bellard@slitaz.org"
    1.14  LICENSE="GPL2"
    1.15  WEB_SITE="http://www.zoneminder.com/"
    1.16 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.17 +
    1.18 +TARBALL="ZoneMinder-$VERSION.tar.gz"
    1.19  WGET_URL="http://www2.zoneminder.com/downloads/$TARBALL"
    1.20  
    1.21 -DEPENDS="mysql jpeg bzlib zlib ffmpeg x264 perl perl-dbi-dbd \
    1.22 -perl-dbd-mysql perl-time-hires perl-getopt-long perl-date-manip \
    1.23 -perl-libwww-perl perl-archive-zip"
    1.24  BUILD_DEPENDS="mysql-dev jpeg-dev ffmpeg-dev gnutls-dev libav-dev \
    1.25  linux-api-headers $DEPENDS"
    1.26  
    1.27 -# Rules to configure and make the package.
    1.28 -compile_rules()
    1.29 -{
    1.30 -	cd $src
    1.31 +compile_rules() {
    1.32  	sed -i 's/.*fcntl.h.*/#include <limits.h>\n&/' src/zm_event.cpp \
    1.33  		src/zm_local_camera.cpp
    1.34  	CXXFLAGS=-D__STDC_CONSTANT_MACROS \
    1.35 -	./configure --prefix=/usr --infodir=/usr/share/info \
    1.36 -		--mandir=/usr/share/man \
    1.37 -		--sysconfdir=/etc \
    1.38 +	./configure \
    1.39  		--with-libarch=lib \
    1.40 -		--with-mysql=/usr --with-ffmpeg=/usr \
    1.41 -		--with-webuser=www --with-webgroup=www \
    1.42 +		--with-mysql=/usr \
    1.43 +		--with-ffmpeg=/usr \
    1.44 +		--with-webuser=www \
    1.45 +		--with-webgroup=www \
    1.46  		--with-webdir=/usr/share/zoneminder/www \
    1.47  		--with-cgidir=/usr/share/zoneminder/cgi-bin \
    1.48  		--enable-mmap=no \
    1.49  		$CONFIGURE_ARGS &&
    1.50  	make &&
    1.51 -	make -j 1 DESTDIR=$DESTDIR install
    1.52 +	make -j 1 DESTDIR=$DESTDIR install || return 1
    1.53 +
    1.54 +	install -Dm644 $stuff/etc/logrotate.d/zoneminder $install/etc/logrotate.d/zoneminder
    1.55 +	install -Dm644 $stuff/etc/mysql.d/zoneminder     $install/etc/mysql.d/zoneminder
    1.56 +	install -Dm644 $src/db/zm_create.sql             $install/usr/share/zoneminder/zm_create.sql
    1.57  }
    1.58  
    1.59 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.60 -genpkg_rules()
    1.61 -{
    1.62 -	cp -a $install/* $stuff/* $fs
    1.63 -	cp $src/db/zm_create.sql $fs/usr/share/zoneminder
    1.64 -	chown -R root.root $fs/usr/share/zoneminder/zm_create.sql \
    1.65 -		$fs/usr/lib/perl* $fs/etc/*.d/zoneminder
    1.66 +genpkg_rules() {
    1.67 +	copy @std
    1.68 +	DEPENDS="mysql jpeg bzlib zlib ffmpeg x264 perl perl-dbi-dbd \
    1.69 +	perl-dbd-mysql perl-time-hires perl-getopt-long perl-date-manip \
    1.70 +	perl-libwww-perl perl-archive-zip"
    1.71  }