1 |
Summary: Set up zoneminder for SME Server. |
2 |
Name: smeserver-zoneminder |
3 |
Version: 0.1 |
4 |
Release: 4.el4.sme%{?dist} |
5 |
License: GNU GPL version 2 |
6 |
URL: http://www.contribs.org |
7 |
Group: SMEserver/addon |
8 |
Source: %{name}-%{version}.tar.gz |
9 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
10 |
BuildArchitectures: noarch |
11 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
12 |
Requires: e-smith-release >= 7.0 |
13 |
Requires: zoneminder |
14 |
Requires: e-smith-base |
15 |
AutoReqProv: no |
16 |
|
17 |
%description |
18 |
rpm to setup zoneminder |
19 |
|
20 |
%changelog |
21 |
* Sat Sep 01 2007 Steve Ognenovski <steve@socomms.com> - 0.1-2 |
22 |
- added 23zoneminder |
23 |
- expand templates on %post and %postun |
24 |
- start zoneminder daemon |
25 |
- removed ScriptAlias from 86zoneminder |
26 |
- added to %post mysql mysql < /usr/share/zoneminder/db/zm_create.sql |
27 |
- added to %postun mysqladmin -f drop zm |
28 |
|
29 |
* Fri Aug 10 2007 Greg Swallow <greg@runlevle7.ca> - 0.1-1 |
30 |
- initial release |
31 |
|
32 |
%prep |
33 |
%setup |
34 |
|
35 |
%build |
36 |
perl createlinks |
37 |
|
38 |
%install |
39 |
rm -rf $RPM_BUILD_ROOT |
40 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
41 |
rm -f %{name}-%{version}-filelist |
42 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
43 |
> %{name}-%{version}-filelist |
44 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
45 |
|
46 |
%clean |
47 |
rm -rf $RPM_BUILD_ROOT |
48 |
|
49 |
%post |
50 |
mysql mysql < /usr/share/zoneminder/db/zm_create.sql |
51 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
52 |
/etc/init.d/httpd graceful |
53 |
/etc/init.d/zoneminder start |
54 |
true |
55 |
|
56 |
%postun |
57 |
mysqladmin -f drop zm |
58 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
59 |
/etc/init.d/httpd graceful |
60 |
true |
61 |
|
62 |
%files -f %{name}-%{version}-filelist |
63 |
%defattr(-,root,root) |