blob: af04c8b78177db20e3ad3d73af634c07883b720f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-misc/zoneminder/zoneminder-1.21.4.ebuild,v 1.2 2006/02/06 00:17:32 rl03 Exp $
inherit eutils webapp
WEBAPP_MANUAL_SLOT="yes"
SLOT="0"
DESCRIPTION="ZoneMinder allows you to capture, analyse, record and monitor any cameras attached to your system."
HOMEPAGE="http://www.zoneminder.com/"
SRC_URI="http://www2.zoneminder.com/downloads/zm-${PV}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~x86 ~ppc"
IUSE="mpeg mysql"
DEPEND="mysql? ( >=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
dev-perl/DBD-mysql"
S=${WORKDIR}/zm-${PV}
src_compile() {
./configure \
--host=${CHOST} \
--prefix=/usr \
--sysconfdir=/etc \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--with-mysql=/usr \
--with-webdir=${MY_HTDOCSDIR} \
--with-cgidir=${MY_CGIBINDIR} \
$(use_with mpeg ffmpeg)=/usr \
--with-webuser=apache \
--with-webgroup=apache || die "./configure failed"
emake || die "emake failed"
}
src_install() {
webapp_src_preinst
make DESTDIR=${D} install || die "make install failed"
dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO db/zmschema.sql
dohtml README.html
dodir /usr/share/${P}
insinto /usr/share/${P}
doins zmconfig.pl ${FILESDIR}/zmconfig-gentoo.txt zmconfig_eml.txt zmconfig_msg.txt
fperms 0700 /usr/share/${P}/zmconfig.pl
dodir /var/log/${PN} && keepdir /var/log/${PN}
fowners apache:apache /var/log/${PN}
fperms 0644 /etc/zm.conf
webapp_postinst_txt en ${FILESDIR}/postinstall.txt
webapp_src_install
}
|