rpms/tclhttpd/FC-3 tclhttpd.spec, 1.3, 1.4 tclhttpd_fedora.1.patch, 1.2, 1.3

Michael Thomas (wart) fedora-extras-commits at redhat.com
Fri Jan 27 19:36:32 UTC 2006


Author: wart

Update of /cvs/extras/rpms/tclhttpd/FC-3
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31478/FC-3

Modified Files:
	tclhttpd.spec tclhttpd_fedora.1.patch 
Log Message:
Start server as root, then let it switch itself to the tclhttpd user.  This
will allow the server to listen on privileged ports.




Index: tclhttpd.spec
===================================================================
RCS file: /cvs/extras/rpms/tclhttpd/FC-3/tclhttpd.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- tclhttpd.spec	21 Jan 2006 05:18:23 -0000	1.3
+++ tclhttpd.spec	27 Jan 2006 19:36:31 -0000	1.4
@@ -1,7 +1,7 @@
 %define contentdir %_var/www/tclhttpd
 Name: tclhttpd
 Version: 3.5.1
-Release: 7%{?dist}
+Release: 8%{?dist}
 Summary: Extensible Web+Application server written in Tcl
 
 Group: System Environment/Daemons
@@ -131,6 +131,12 @@
 %ghost %{_var}/run/tclhttpd/tclhttpd.pid
 
 %changelog
+* Fri Jan 27 2006 Wart <wart at kobold.org> - 3.5.1-8
+- Updated patch so that tclhttpd starts as root and then switches to
+  the tclhttpd user.  This is necessary if tclhttpd is to listen
+  on port 80.
+* Sun Jan 21 2006 Wart <wart at kobold.org> - 3.5.1-7
+- Check if the tclhttpd user exists before trying to create it
 * Sun Jan 15 2006 Wart <wart at kobold.org> - 3.5.1-6
 - Use ghosted files for runtime state files.
 - Update patch to remove build dependency on autoconf.

tclhttpd_fedora.1.patch:

Index: tclhttpd_fedora.1.patch
===================================================================
RCS file: /cvs/extras/rpms/tclhttpd/FC-3/tclhttpd_fedora.1.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- tclhttpd_fedora.1.patch	16 Jan 2006 01:48:31 -0000	1.2
+++ tclhttpd_fedora.1.patch	27 Jan 2006 19:36:31 -0000	1.3
@@ -201,7 +201,7 @@
 +'start')
 +        echo -n $"Starting $prog: "
 +        ln -sf /var/run/tclhttpd/tclhttpd.pid /var/run/tclhttpd.pid
-+	daemon --user tclhttpd $prog -daemon 1 -config /etc/tclhttpd/tclhttpd.rc -docRoot /var/www/tclhttpd/htdocs -library /var/www/tclhttpd/custom
++	daemon $prog -daemon 1 -config /etc/tclhttpd/tclhttpd.rc -docRoot /var/www/tclhttpd/htdocs -library /var/www/tclhttpd/custom
 +        RETVAL=$?
 +        echo
 +        [ $RETVAL = 0 ] && touch /var/lock/subsys/tclhttpd




More information about the fedora-extras-commits mailing list