[LON-CAPA-cvs] cvs: loncom /build Makefile doc/loncapafiles loncapafiles.lpml modify_config_files.piml

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 09 Aug 2004 21:17:51 -0000


matthew		Mon Aug  9 17:17:51 2004 EDT

  Added files:                 
    /doc/loncapafiles	modify_config_files.piml 

  Modified files:              
    /doc/loncapafiles	loncapafiles.lpml 
    /loncom/build	Makefile 
  Log:
  Bug 3252 - automatic update of configuration files.  Added 
  modify_config_files.pl to loncapafiles.lpml.  Added modify_config_files.piml.
  Added call to modify_config_fiels.piml to Makefile and added help for this
  and seed_accesscount to the help_TARGETS section of the Makefile.
  
  
Index: doc/loncapafiles/loncapafiles.lpml
diff -u doc/loncapafiles/loncapafiles.lpml:1.382 doc/loncapafiles/loncapafiles.lpml:1.383
--- doc/loncapafiles/loncapafiles.lpml:1.382	Thu Jul 22 12:17:42 2004
+++ doc/loncapafiles/loncapafiles.lpml	Mon Aug  9 17:17:50 2004
@@ -2,7 +2,7 @@
  "http://lpml.sourceforge.net/DTD/lpml.dtd">
 <!-- loncapafiles.lpml -->
 
-<!-- $Id: loncapafiles.lpml,v 1.382 2004/07/22 16:17:42 www Exp $ -->
+<!-- $Id: loncapafiles.lpml,v 1.383 2004/08/09 21:17:50 matthew Exp $ -->
 
 <!--
 
@@ -1543,6 +1543,15 @@
 </description>
 </file>
 <file>
+<source>loncom/debugging_tools/modify_config_files.pl</source>
+<target dist='default'>home/httpd/perl/modify_config_files.pl</target>
+<categoryname>script</categoryname>
+<description>
+Batch script to ensure certain LONCAPA configuration parameters for yum and
+MySQL are included in their configuration files.
+</description>
+</file>
+<file>
 <source>loncom/lonhttpd</source>
 <target dist='default'>home/httpd/perl/lonhttpd</target>
 <categoryname>script</categoryname>
@@ -2728,6 +2737,15 @@
 <status>works/unverified</status>
 </file>
 <file>
+<source>loncom/interface/lontrackstudent.pm</source>
+<target dist='default'>home/httpd/lib/perl/Apache/lontrackstudent.pm</target>
+<categoryname>handler</categoryname>
+<description>
+Handler to show activity log status.
+</description>
+<status>works/unverified</status>
+</file>
+<file>
 <source>loncom/interface/lonstatistics.pm</source>
 <target dist='default'>home/httpd/lib/perl/Apache/lonstatistics.pm</target>
 <categoryname>handler</categoryname>
Index: loncom/build/Makefile
diff -u loncom/build/Makefile:1.164 loncom/build/Makefile:1.165
--- loncom/build/Makefile:1.164	Fri Aug  6 15:22:21 2004
+++ loncom/build/Makefile	Mon Aug  9 17:17:50 2004
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 
-# $Id: Makefile,v 1.164 2004/08/06 19:22:21 matthew Exp $
+# $Id: Makefile,v 1.165 2004/08/09 21:17:50 matthew Exp $
 
 # TYPICAL USAGE of this Makefile is primarily for two targets:
 # "make build" and "make install".
@@ -119,6 +119,10 @@
 	@echo "         system"
 	@echo "sanitycheck: probe for common errors and recommend fixes to"
 	@echo "             the user"
+	@echo "accesscount_seed: Migrate the access counting mechanism from "
+	@echo "    nohist_reseval.db to nohist_accesscount.db."
+	@echo "modify_config_files: Perform automatic update of the "
+	@echo "    configuration files for yum and MySQL."
 	@echo "ntpcheck: test to see if ntp is installed and running."
 	@echo "cron_lpmlcheck: remove cron file /etc/cron.d/loncapa.lpml."
 	@echo "rpmcheck: test to see if rpms known to confict are installed."
@@ -418,6 +422,11 @@
 	perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
 	tee -a WARNINGS
 
+modify_config_files:
+	cat $(SOURCE)/doc/loncapafiles/modify_config_files.piml | \
+	perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
+	tee -a WARNINGS
+
 reseval_fixup:
 	cat $(SOURCE)/doc/loncapafiles/reseval_fixup.piml | \
 	perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
@@ -442,6 +451,7 @@
 	make webserverconf
 	make reseval_fixup
 	make accesscount_seed
+	make modify_config_files
 	make clearoutoldspreadsheetcache
 	make rpmcheck
 	make ntpcheck

Index: doc/loncapafiles/modify_config_files.piml
+++ doc/loncapafiles/modify_config_files.piml
<!DOCTYPE piml PUBLIC "-//TUX/DTD piml 1.0 Final//EN" 
	"http://lpml.sourceforge.net/DTD/piml.dtd">
<!-- accesscount_seed.piml -->
<!-- Matthew Hall -->

<!-- $Id: modify_config_files.piml,v 1.1 2004/08/09 21:17:50 matthew Exp $ -->

<!--

This file is part of the LearningOnline Network with CAPA (LON-CAPA).

LON-CAPA is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

LON-CAPA is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with LON-CAPA; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

/home/httpd/html/adm/gpl.txt

http://www.lon-capa.org/

-->

<piml>
<targetroot>/</targetroot>
<files>
<file>
<target dist="default">/</target>
<perlscript mode="fg">

print "\nUpdating yum and MySQL configuration files\n";
system("/home/httpd/perl/modify_config_files.pl");
print "WARNING: It may be neccessary to restart MySQL at this time.\n".
        "    Use the command \"/etc/init.d/mysqld restart\"\n";

</perlscript>
</file>
</files>
</piml>