latest addition of /var/lib/ for current and archived data files
[monitor.git] / monitor-server.spec
index 9e998a3..4defcc7 100644 (file)
@@ -42,12 +42,11 @@ echo "There is no build stage.  Simply copy files."
 
 rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}
-mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}/archive-pdb
+mkdir -p $RPM_BUILD_ROOT/var/lib/%{name}
 mkdir -p $RPM_BUILD_ROOT/var/www/cgi-bin/monitor/
 
 echo " * Installing core scripts"
-rsync -a --exclude www --exclude archive-pdb \
-      --exclude .svn --exclude CVS \
+rsync -a --exclude www --exclude archive-pdb --exclude .svn --exclude CVS \
          ./ $RPM_BUILD_ROOT/usr/share/%{name}/
 
 echo " * Installing web pages"
@@ -62,8 +61,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
-# define a %config entry for /var/share/%{name}/xyz?
+%config /var/share/%{name}/monitorconfig.py
 /usr/share/%{name}
+/var/lib/%{name}
 /var/www/cgi-bin/monitor
 %{_sysconfdir}/cron.d/%{name}