SPECS: zm.spec - use /var/lib for saving data - %_prefix->%_datadi...

hunter hunter at pld-linux.org
Sun Sep 4 17:51:13 CEST 2005


Author: hunter                       Date: Sun Sep  4 15:51:13 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use /var/lib for saving data
- %_prefix->%_datadir
- treat zm_config.php as conf file
- release 1.0   

---- Files affected:
SPECS:
   zm.spec (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: SPECS/zm.spec
diff -u SPECS/zm.spec:1.17 SPECS/zm.spec:1.18
--- SPECS/zm.spec:1.17	Sun Jul 24 23:27:06 2005
+++ SPECS/zm.spec	Sun Sep  4 17:51:08 2005
@@ -6,7 +6,7 @@
 Summary(pl):	Zone Minder - programowy wykrywacz ruchu z miłym GUI przez WWW
 Name:		zm
 Version:	1.21.3
-Release:	0.2
+Release:	1
 Group:		Applications/Graphics
 License:	GPL v2
 Source0:	http://www.zoneminder.com/fileadmin/downloads/%{name}-%{version}.tar.gz
@@ -172,11 +172,13 @@
 install db/zmalter-1.*.sql $RPM_BUILD_ROOT%{_prefix}/lib/zm/upgrade
 cat %{SOURCE3} | sed -e 's/^ZM_VERSION=.*$/ZM_VERSION=%{version}/' >zmdbupgrade
 install zmdbupgrade $RPM_BUILD_ROOT%{_prefix}/lib/zm/upgrade/zmdbupgrade
+
 for d in events images sounds temp; do
 	install -m 755 -d $RPM_BUILD_ROOT/var/lib/zm/$d
-rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/zm/html/$d
-#ln -sf /var/lib/zm/$d $RPM_BUILD_ROOT%{_prefix}/lib/zm/html/$d
+	rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/zm/html/$d
+	ln -sf /var/lib/zm/$d $RPM_BUILD_ROOT%{_datadir}/zm/$d
 done
+
 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
 install scripts/zm $RPM_BUILD_ROOT/etc/rc.d/init.d
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
@@ -198,7 +200,7 @@
 	/etc/rc.d/init.d/zm stop
 	/sbin/chkconfig --del zm
 fi
-	
+
 %post
 /sbin/chkconfig --add zm
 
@@ -207,7 +209,8 @@
 %doc AUTHORS README
 %config(noreplace) %attr(640,root,http) %{_sysconfdir}/zm.conf
 %config(noreplace) %attr(644,root,root) %{_sysconfdir}/httpd/conf.d/zm.conf
-%config(noreplace) %attr(644,root,root) %{_sysconfdir}/logrotate.d/zm
+%config(noreplace) %attr(644,root,root) /etc/logrotate.d/zm
+%config(noreplace) %attr(640,root,http) %{_datadir}/zm/zm_config.php
 %attr(754,root,root) /etc/rc.d/init.d/zm
 %attr(4755,root,root) %{_bindir}/zmfix
 %attr(755,root,root) %{_bindir}/zma
@@ -226,6 +229,15 @@
 %dir %attr(750,root,http)%{_prefix}/lib/zm
 %dir %{_prefix}/lib/zm/bin
 %dir %attr(750,root,http) %{_prefix}/lib/zm/html
+%dir %attr(750,root,http) %{_datadir}/zm/events
+%dir %attr(750,root,http) %{_datadir}/zm/images
+%dir %attr(750,root,http) %{_datadir}/zm/sounds
+%dir %attr(750,root,http) %{_datadir}/zm/temp
+%dir %attr(750,root,http) /var/lib/zm/
+%dir %attr(750,root,http) /var/lib/zm/events
+%dir %attr(750,root,http) /var/lib/zm/images
+%dir %attr(750,root,http) /var/lib/zm/sounds
+%dir %attr(750,root,http) /var/lib/zm/temp
 %dir %{_prefix}/lib/zm/init
 %dir %{_prefix}/lib/zm/upgrade
 %attr(4750,root,root) %{_prefix}/lib/zm/bin/*
@@ -240,6 +252,7 @@
 %attr(640,root,http) %{_datadir}/zm/*.ico
 %attr(640,root,http) %{_datadir}/zm/*.php
 %exclude %{_datadir}/zm/zm_lang_*.php
+%exclude %{_datadir}/zm/zm_config.php
 #%attr(640,root,http) %{_datadir}/zm/cambozola.jar
 %dir %attr(770,root,http) /var/log/zm
 %dir %attr(770,root,http) /var/run/zm
@@ -280,6 +293,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.18  2005/09/04 15:51:08  hunter
+- use /var/lib for saving data
+- %_prefix->%_datadir
+- treat zm_config.php as conf file
+- release 1.0
+
 Revision 1.17  2005/07/24 21:27:06  hunter
 - languages marked by %lang
 - rel up to 0.2
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/zm.spec?r1=1.17&r2=1.18&f=u




More information about the pld-cvs-commit mailing list