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