diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /www-misc/zoneminder/zoneminder-1.27.0.ebuild | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'www-misc/zoneminder/zoneminder-1.27.0.ebuild')
-rw-r--r-- | www-misc/zoneminder/zoneminder-1.27.0.ebuild | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/www-misc/zoneminder/zoneminder-1.27.0.ebuild b/www-misc/zoneminder/zoneminder-1.27.0.ebuild new file mode 100644 index 000000000000..7870564c22b4 --- /dev/null +++ b/www-misc/zoneminder/zoneminder-1.27.0.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# TO DO: +# * ffmpeg support can be disabled in CMakeLists.txt but it does not build then +# $(cmake-utils_useno ffmpeg ZM_NO_FFMPEG) +# * dependencies of unknown status: +# dev-perl/Archive-Zip +# dev-perl/Device-SerialPort +# dev-perl/MIME-Lite +# dev-perl/MIME-tools +# dev-perl/PHP-Serialization +# virtual/perl-Archive-Tar +# virtual/perl-libnet +# virtual/perl-Module-Load + +EAPI=5 + +PERL_EXPORT_PHASE_FUNCTIONS=no + +inherit perl-module readme.gentoo eutils base cmake-utils depend.php depend.apache multilib flag-o-matic + +MY_PN="ZoneMinder" + +DESCRIPTION="ZoneMinder allows you to capture, analyse, record and monitor any cameras attached to your system" +HOMEPAGE="http://www.zoneminder.com/" +SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64" +IUSE="curl gcrypt gnutls +mmap +openssl vlc" +SLOT="0" + +REQUIRED_USE=" + || ( openssl gnutls ) +" + +DEPEND=" + dev-lang/perl:= + dev-libs/libpcre + dev-perl/DateManip + dev-perl/DBD-mysql + dev-perl/DBI + dev-perl/libwww-perl + sys-libs/zlib + virtual/ffmpeg + virtual/jpeg + virtual/mysql + virtual/perl-ExtUtils-MakeMaker + virtual/perl-Getopt-Long + virtual/perl-Sys-Syslog + virtual/perl-Time-HiRes + curl? ( net-misc/curl ) + gcrypt? ( dev-libs/libgcrypt ) + gnutls? ( net-libs/gnutls ) + mmap? ( dev-perl/Sys-Mmap ) + openssl? ( dev-libs/openssl ) + vlc? ( media-video/vlc ) +" +RDEPEND="${DEPEND}" + +# we cannot use need_httpd_cgi here, since we need to setup permissions for the +# webserver in global scope (/etc/zm.conf etc), so we hardcode apache here. +need_apache +need_php_httpd + +S=${WORKDIR}/${MY_PN}-${PV} + +PATCHES=( + "${FILESDIR}/${PN}-1.26.5"-automagic.patch +) + +MY_ZM_WEBDIR=/usr/share/zoneminder/www + +pkg_setup() { + require_php_with_use mysql sockets apache2 +} + +src_configure() { + append-cxxflags -D__STDC_CONSTANT_MACROS + perl_set_version + + mycmakeargs=( + -DZM_PERL_SUBPREFIX=${VENDOR_LIB} + -DZM_TMPDIR=/var/tmp/zm + -DZM_WEB_USER=apache + -DZM_WEB_GROUP=apache + -DZM_WEBDIR=${MY_ZM_WEBDIR} + $(cmake-utils_useno mmap ZM_NO_MMAP) + -DZM_NO_X10=OFF + -DZM_NO_FFMPEG=OFF + $(cmake-utils_useno curl ZM_NO_CURL) + $(cmake-utils_useno vlc ZM_NO_LIBVLC) + $(cmake-utils_useno openssl CMAKE_DISABLE_FIND_PACKAGE_OpenSSL) + $(cmake-utils_use_has gnutls) + $(cmake-utils_use_has gcrypt) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + # the log directory + keepdir /var/log/zm + fowners apache:apache /var/log/zm + + # now we duplicate the work of zmlinkcontent.sh + dodir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events + fperms -R 0775 /var/lib/zoneminder + fowners -R apache:apache /var/lib/zoneminder + dosym /var/lib/zoneminder/images ${MY_ZM_WEBDIR}/images + dosym /var/lib/zoneminder/events ${MY_ZM_WEBDIR}/events + + # the configuration file + fperms 0640 /etc/zm.conf + fowners root:apache /etc/zm.conf + + # init scripts etc + newinitd "${FILESDIR}"/init.d zoneminder + newconfd "${FILESDIR}"/conf.d zoneminder + + cp "${FILESDIR}"/10_zoneminder.conf "${T}"/10_zoneminder.conf + sed -i "${T}"/10_zoneminder.conf -e "s:%ZM_WEBDIR%:${MY_ZM_WEBDIR}:g" + + dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README.md TODO "${T}"/10_zoneminder.conf + + readme.gentoo_src_install +} |