From 4228b5b5ce6985efcbbb17aa0700ff4049d297fb Mon Sep 17 00:00:00 2001 From: Stuart Herbert Date: Sun, 15 Aug 2004 18:20:26 +0000 Subject: Moved from net-www/zoneminder to www-misc/zoneminder. --- www-misc/zoneminder/ChangeLog | 22 +++++++ www-misc/zoneminder/Manifest | 3 + www-misc/zoneminder/files/digest-zoneminder-0.9.12 | 2 + www-misc/zoneminder/zoneminder-0.9.12.ebuild | 71 ++++++++++++++++++++++ 4 files changed, 98 insertions(+) create mode 100644 www-misc/zoneminder/ChangeLog create mode 100644 www-misc/zoneminder/Manifest create mode 100644 www-misc/zoneminder/files/digest-zoneminder-0.9.12 create mode 100644 www-misc/zoneminder/zoneminder-0.9.12.ebuild (limited to 'www-misc') diff --git a/www-misc/zoneminder/ChangeLog b/www-misc/zoneminder/ChangeLog new file mode 100644 index 000000000000..55140de2ae98 --- /dev/null +++ b/www-misc/zoneminder/ChangeLog @@ -0,0 +1,22 @@ +# ChangeLog for net-www/zoneminder +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-misc/zoneminder/ChangeLog,v 1.1 2004/08/15 18:20:26 stuart Exp $ + +*zoneminder-0.9.12 (15 Aug 2004) + + 15 Aug 2004; Stuart Herbert +zoneminder-0.9.12.ebuild: + Moved from net-www/zoneminder to www-misc/zoneminder. + + 27 Apr 2004; Aron Griffis zoneminder-0.9.12.ebuild: + Add inherit eutils + +*zoneminder-0.9.12 (20 Jun 2003) + + 20 Jun 2003; mkeadle zoneminder-0.9.12.ebuild: + initial import. very impressive program. much thanks go to MAL + for putting this all together very well in bug #22665. MALs + ebuild used its own internal vars to track where to install the web content. I + switched this over to the datadir format used by the apache ebuilds. This lets + zoneminder install to the same location apache was installed to without user + interaction, but still leaves the door open for customization. + diff --git a/www-misc/zoneminder/Manifest b/www-misc/zoneminder/Manifest new file mode 100644 index 000000000000..600897a1764f --- /dev/null +++ b/www-misc/zoneminder/Manifest @@ -0,0 +1,3 @@ +MD5 f636b062263dedc6f72bcf7d12a5f7eb zoneminder-0.9.12.ebuild 1998 +MD5 88fed5e01c4c79fe49cd96e5ea1879b1 ChangeLog 865 +MD5 cf91c423242d440d538cec3f4cd0940b files/digest-zoneminder-0.9.12 129 diff --git a/www-misc/zoneminder/files/digest-zoneminder-0.9.12 b/www-misc/zoneminder/files/digest-zoneminder-0.9.12 new file mode 100644 index 000000000000..3b04ceb8b888 --- /dev/null +++ b/www-misc/zoneminder/files/digest-zoneminder-0.9.12 @@ -0,0 +1,2 @@ +MD5 fad46ab149bced3c963e4060aa9a5654 zm-0.9.12.tar.gz 260203 +MD5 c29bebb8fa37655dd2a754fbfb9d4c43 zoneminder-gentoo.tar.bz2 3659 diff --git a/www-misc/zoneminder/zoneminder-0.9.12.ebuild b/www-misc/zoneminder/zoneminder-0.9.12.ebuild new file mode 100644 index 000000000000..b8f9f98c82e7 --- /dev/null +++ b/www-misc/zoneminder/zoneminder-0.9.12.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-misc/zoneminder/zoneminder-0.9.12.ebuild,v 1.1 2004/08/15 18:20:26 stuart Exp $ + +inherit eutils + +DESCRIPTION="ZoneMinder allows you to capture, analyse, record and monitor any cameras attached to your system." +HOMEPAGE="http://www.zoneminder.com/" +SRC_URI="http://www.zoneminder.com/fileadmin/downloads/zm-${PV}.tar.gz + http://mkeadle.org/distfiles/${PN}-gentoo.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="mpeg" + +DEPEND=" + >=dev-db/mysql-3* + >=media-libs/jpeg-6b + >=net-www/apache-1.3.27-r3 + dev-lang/perl +" +RDEPEND=" + mpeg? ( media-video/ffmpeg ) + virtual/php + media-libs/netpbm +" +S=${WORKDIR}/zm-${PV} + +src_compile() { + cd ${S} + epatch ${WORKDIR}/${PN}-gentoo/zm-0.9.12-gentoo.patch + + # Apache is flexible, so we should follow suit + local datadir=`grep ^apache: /etc/passwd | cut -d: -f6` + if [ -z "$datadir" ] + then + datadir="/home/httpd" + eerror ":: Cannot find the apache user on your system! ::" + eerror "If you would like to customize where ${PN} installs its web related" + eerror "files please create the apache user and set its home directory." + ewarn "Defaulting to \"/home/httpd\"." + else + einfo "$datadir is your Apache data directory ..." + fi + + HTTPD_DOCROOT="${datadir}/htdocs" + HTTPD_CGIROOT="${datadir}/cgi-bin" + HTTPD_USER="apache" + HTTPD_GROUP="apache" + + ./configure \ + --host=${CHOST} \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --with-mysql=/usr \ + --with-webdir=${HTTPD_DOCROOT}/zoneminder \ + --with-cgidir=${HTTPD_CGIROOT} \ + --with-webuser=${HTTPD_USER} \ + --with-webgroup=${HTTPD_GROUP} || die "./configure failed" + + cp "${WORKDIR}/${PN}-gentoo/zmconfig-gentoo.txt" ${S} + cd ${S} && perl zmconfig.pl -f zmconfig-gentoo.txt -noi + + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README README.html TODO +} -- cgit v1.2.3-65-gdbad