1 |
wrobel 08/05/06 10:00:24 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: zoneminder-1.23.3.ebuild |
5 |
Log: |
6 |
Adding zoneminder-1.23.3 to the tree (sec issue #219694, bugs #212150 and |
7 |
#216678) |
8 |
(Portage version: 2.1.4.4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.25 www-misc/zoneminder/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-misc/zoneminder/ChangeLog?rev=1.25&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-misc/zoneminder/ChangeLog?rev=1.25&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-misc/zoneminder/ChangeLog?r1=1.24&r2=1.25 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-misc/zoneminder/ChangeLog,v |
20 |
retrieving revision 1.24 |
21 |
retrieving revision 1.25 |
22 |
diff -u -r1.24 -r1.25 |
23 |
--- ChangeLog 23 Feb 2008 14:39:39 -0000 1.24 |
24 |
+++ ChangeLog 6 May 2008 10:00:23 -0000 1.25 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for www-misc/zoneminder |
27 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-misc/zoneminder/ChangeLog,v 1.24 2008/02/23 14:39:39 hollow Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-misc/zoneminder/ChangeLog,v 1.25 2008/05/06 10:00:23 wrobel Exp $ |
30 |
+ |
31 |
+*zoneminder-1.23.3 (06 May 2008) |
32 |
+ |
33 |
+ 06 May 2008; wrobel@g.o +files/10_zoneminder.conf, |
34 |
+ +zoneminder-1.23.3.ebuild: |
35 |
+ Adding zoneminder-1.23.3 to the tree (sec issue #219694, bugs #212150 and |
36 |
+ #216678) |
37 |
|
38 |
*zoneminder-1.23.1 (23 Feb 2008) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 www-misc/zoneminder/zoneminder-1.23.3.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-misc/zoneminder/zoneminder-1.23.3.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-misc/zoneminder/zoneminder-1.23.3.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: zoneminder-1.23.3.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2008 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/www-misc/zoneminder/zoneminder-1.23.3.ebuild,v 1.1 2008/05/06 10:00:23 wrobel Exp $ |
53 |
|
54 |
inherit eutils autotools depend.php depend.apache multilib |
55 |
|
56 |
MY_PV=${PV/_/-} |
57 |
MY_PN="ZoneMinder" |
58 |
|
59 |
PATCH_PV="1.23.1" |
60 |
|
61 |
DESCRIPTION="ZoneMinder allows you to capture, analyse, record and monitor any cameras attached to your system." |
62 |
HOMEPAGE="http://www.zoneminder.com/" |
63 |
SRC_URI="http://www.zoneminder.com/downloads/${MY_PN}-${MY_PV}.tar.gz" |
64 |
|
65 |
LICENSE="GPL-2" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
IUSE="debug ffmpeg X10" |
68 |
SLOT="0" |
69 |
|
70 |
DEPEND="app-admin/sudo |
71 |
dev-libs/libpcre |
72 |
>=media-libs/jpeg-6b |
73 |
net-libs/gnutls |
74 |
>=dev-lang/perl-5.6.0 |
75 |
dev-perl/Archive-Tar |
76 |
dev-perl/Archive-Zip |
77 |
dev-perl/DateManip |
78 |
dev-perl/DBD-mysql |
79 |
dev-perl/DBI |
80 |
dev-perl/Device-SerialPort |
81 |
dev-perl/libwww-perl |
82 |
dev-perl/MIME-Lite |
83 |
dev-perl/MIME-tools |
84 |
dev-perl/PHP-Serialization |
85 |
virtual/perl-Getopt-Long |
86 |
virtual/perl-libnet |
87 |
virtual/perl-Sys-Syslog |
88 |
virtual/perl-Time-HiRes |
89 |
X10? ( dev-perl/X10 )" |
90 |
|
91 |
RDEPEND="dev-perl/DBD-mysql |
92 |
ffmpeg? ( media-video/ffmpeg ) |
93 |
media-libs/netpbm" |
94 |
|
95 |
# we cannot use need_httpd_cgi here, since we need to setup permissions for the |
96 |
# webserver in global scope (/etc/zm.conf etc), so we hardcode apache here. |
97 |
need_apache |
98 |
need_php_httpd |
99 |
|
100 |
S="${WORKDIR}"/${MY_PN}-${MY_PV} |
101 |
|
102 |
pkg_setup() { |
103 |
require_php_with_use mysql |
104 |
} |
105 |
|
106 |
src_unpack() { |
107 |
unpack ${A} |
108 |
cd "${S}" |
109 |
|
110 |
epatch "${FILESDIR}"/${PATCH_PV}/Makefile.am.patch |
111 |
epatch "${FILESDIR}"/${PATCH_PV}/zm_create.sql.in.patch |
112 |
epatch "${FILESDIR}"/${PATCH_PV}/zm_mpeg_ofc.patch |
113 |
epatch "${FILESDIR}"/${PATCH_PV}/zm_remote_camera.patch |
114 |
|
115 |
eautoreconf |
116 |
} |
117 |
|
118 |
src_compile() { |
119 |
econf --with-libarch=$(get_libdir) \ |
120 |
--with-mysql=/usr \ |
121 |
$(use_with ffmpeg ffmpeg /usr) \ |
122 |
$(use_enable debug) \ |
123 |
$(use_enable debug crashtrace) \ |
124 |
--with-webdir="${ROOT}/var/www/zoneminder/htdocs" \ |
125 |
--with-cgidir="${ROOT}/var/www/zoneminder/cgi-bin" \ |
126 |
--with-webuser=apache \ |
127 |
--with-webgroup=apache \ |
128 |
|| die "econf failed" |
129 |
emake || die "emake failed" |
130 |
} |
131 |
|
132 |
src_install() { |
133 |
|
134 |
keepdir /var/run/zm |
135 |
emake -j1 DESTDIR="${D}" install || die "emake install failed" |
136 |
|
137 |
fperms 0644 /etc/zm.conf |
138 |
|
139 |
keepdir /var/log/${PN} |
140 |
fowners apache:apache /var/log/${PN} |
141 |
fowners apache:apache /var/run/zm |
142 |
|
143 |
newinitd "${FILESDIR}"/init.d zoneminder |
144 |
newconfd "${FILESDIR}"/conf.d zoneminder |
145 |
|
146 |
dodoc AUTHORS ChangeLog INSTALL NEWS README TODO |
147 |
|
148 |
insinto /usr/share/${PN}/db |
149 |
doins db/zm_u* db/zm_create.sql |
150 |
|
151 |
insinto /etc/apache2/vhosts.d |
152 |
doins "${FILESDIR}"/10_zoneminder.conf |
153 |
|
154 |
for DIR in events images sound; do |
155 |
dodir "${ROOT}"/var/www/zoneminder/htdocs/${DIR} |
156 |
done |
157 |
|
158 |
} |
159 |
|
160 |
pkg_postinst() { |
161 |
elog "" |
162 |
elog "0. If this is a new installation, you will need to create a MySQL database" |
163 |
elog " for ${PN} to use. (see http://www.gentoo.org/doc/en/mysql-howto.xml)." |
164 |
elog " Once you completed that you should execute the following:" |
165 |
elog "" |
166 |
elog " cd /usr/share/${PN}" |
167 |
elog " mysql -u <my_database_user> -p<my_database_pass> <my_zoneminder_db> < db/zm_create.sql" |
168 |
elog "" |
169 |
elog "1. Set your database settings in /etc/zm.conf" |
170 |
elog "" |
171 |
elog "2. Start the ${PN} daemon:" |
172 |
elog "" |
173 |
elog " /etc/init.d/${PN} start" |
174 |
elog "" |
175 |
elog "3. Finally point your browser to http://localhos/${PN}" |
176 |
elog "" |
177 |
elog "" |
178 |
elog "If you are upgrading, you will need to run the zmupdate.pl script:" |
179 |
elog "" |
180 |
elog " /usr/bin/zmupdate.pl version=<from version> [--user=<my_database_user> --pass=<my_database_pass>]" |
181 |
elog "" |
182 |
} |
183 |
|
184 |
|
185 |
|
186 |
-- |
187 |
gentoo-commits@l.g.o mailing list |