[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/awstats/devel awstats.spec,1.10,1.11



Author: abompard

Update of /cvs/extras/rpms/awstats/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7078/devel

Modified Files:
	awstats.spec 
Log Message:
selinux support


Index: awstats.spec
===================================================================
RCS file: /cvs/extras/rpms/awstats/devel/awstats.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- awstats.spec	23 Feb 2006 10:17:11 -0000	1.10
+++ awstats.spec	9 Apr 2006 15:30:31 -0000	1.11
@@ -1,6 +1,6 @@
 Name:       awstats
 Version:    6.5
-Release:    2%{?dist}
+Release:    3%{?dist}
 Summary:    Advanced Web Statistics
 License:    GPL
 Group:      Applications/Internet
@@ -13,6 +13,7 @@
 Requires:   perl
 Requires(post): perl
 Requires(postun): /sbin/service
+Requires(pre):  policycoreutils
 
 %description
 Advanced Web Statistics is a powerful and featureful tool that generates
@@ -112,6 +113,14 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+
+%pre
+# Set SELinux types
+semanage fcontext -a -t httpd_sys_script_exec_t \
+    '/usr/share/awstats/wwwroot/cgi-bin(/.*)?' 2>/dev/null || :
+semanage fcontext -a -t httpd_sys_script_rw_t '/var/lib/awstats(/.*)?' 2>/dev/null || :
+
+
 %post
 if [ $1 -eq 1 ]; then
   if [ ! -f %{_sysconfdir}/%{name}/%{name}.`hostname`.conf ]; then
@@ -122,10 +131,15 @@
   fi
 fi
 
+
 %postun
 if [ $1 -ne 0 ]; then
   /sbin/service httpd condrestart >/dev/null 2>&1
 fi
+if [ $1 -eq 0 ]; then
+  semanage fcontext -d -t httpd_sys_script_exec_t \
+    '/usr/share/awstats/wwwroot/cgi-bin(/.*)?' 2>/dev/null || :
+fi
 
 
 %files
@@ -151,6 +165,9 @@
 %{_datadir}/%{name}/wwwroot/js
 
 %changelog
+* Sun Apr 09 2006 Aurelien Bompard <gauret[AT]free.fr> 6.5-3
+- SELinux support: use semanage to label the cgi and the database files
+
 * Thu Feb 23 2006 Aurelien Bompard <gauret[AT]free.fr> 6.5-2
 - rebuild for FC5
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]