Author: pawelz                       Date: Mon Jan 26 10:43:51 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use tomcat uid/gid instead of http

---- Files affected:
SPECS:
   apache-tomcat.spec (1.73 -> 1.74) 

---- Diffs:

================================================================
Index: SPECS/apache-tomcat.spec
diff -u SPECS/apache-tomcat.spec:1.73 SPECS/apache-tomcat.spec:1.74
--- SPECS/apache-tomcat.spec:1.73       Sun Jan 25 18:08:05 2009
+++ SPECS/apache-tomcat.spec    Mon Jan 26 11:43:46 2009
@@ -98,8 +98,8 @@
 Requires:      jta >= 1.0.1
 Requires:      rc-scripts
 Requires:      xml-commons
-Provides:      group(http)
-Provides:      user(http)
+Provides:      group(tomcat)
+Provides:      user(tomcat)
 Obsoletes:     jakarta-tomcat
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -321,8 +321,8 @@
 rm -rf $RPM_BUILD_ROOT
 
 %pre
-%groupadd -g 51 -r -f http
-%useradd -u 51 -r -d /home/services/httpd -s /bin/false -c "HTTP User" -g http 
http
+%groupadd -g 51 -r -f tomcat
+%useradd -u 51 -r -d /var/lib/tomcat -s /bin/false -c "Tomcat User" -g tomcat 
tomcat
 
 %post
 /sbin/chkconfig --add tomcat
@@ -336,8 +336,8 @@
 
 %postun
 if [ "$1" = "0" ]; then
-       %userremove http
-       %groupremove http
+       %userremove tomcat
+       %groupremove tomcat
 fi
 
 %files
@@ -374,11 +374,11 @@
 %dir %{_vardir}
 # tomcat config has to be writeable because of tomacta-users.xml file and
 # Catalina dir
-%config(noreplace) %attr(775,root,http) %verify(not md5 mtime size) 
%{_vardir}/conf
-%dir %attr(1730,root,http) %{_vardir}/work
-%dir %attr(775,root,http) %{_vardir}/webapps
-%dir %attr(775,root,http) %{_vardir}/temp
-%dir %attr(775,root,http) %{_logdir}/tomcat
+%config(noreplace) %attr(775,root,tomcat) %verify(not md5 mtime size) 
%{_vardir}/conf
+%dir %attr(1730,root,tomcat) %{_vardir}/work
+%dir %attr(775,root,tomcat) %{_vardir}/webapps
+%dir %attr(775,root,tomcat) %{_vardir}/temp
+%dir %attr(775,root,tomcat) %{_logdir}/tomcat
 %{_vardir}/logs
 
 %if 0
@@ -393,6 +393,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.74  2009/01/26 10:43:46  pawelz
+- use tomcat uid/gid instead of http
+
 Revision 1.73  2009/01/25 17:08:05  pawelz
 - install temp directory in CATALINA_BASE, not in CATALINA_HOME
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/apache-tomcat.spec?r1=1.73&r2=1.74&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to