1: # The LearningOnline Network with CAPA
2:
3: # $Id: Makefile,v 1.171.2.5 2005/02/02 19:31:47 albertel Exp $
4:
5: # TYPICAL USAGE of this Makefile is primarily for two targets:
6: # "make build" and "make install".
7: # Many other targets and features are supported (see the initial
8: # help targets).
9:
10: # ======================================= Default settings for Makefile options
11: DISTPROBE=`perl ./distprobe`
12: DIST=$(DISTPROBE)
13: CATEGORY="development"
14: SOURCE=../..
15: TARGET=""
16: NORESTORECONF="0"
17: HOSTNAME=""
18: LAUNCH=| perl
19: QUERYLAUNCH=> /tmp/loncapa_query.pl; perl /tmp/loncapa_query.pl
20: OUTSTREAM=>
21: SAVE=program.pl.$(TIMESTAMP)
22: LAUNCHSAVE=$(OUTSTREAM) $(SAVE)
23: METAMTARGET=""
24: MTARGET=""
25: VERSION=1.3.2
26: # The current working definition for "RELEASE" is: changes not in the software,
27: # but in the operating system dependent packaging of the software. Thus, the
28: # generic tarball releases do not need to have a release number specified.
29: RELEASE=1 # As a general rule for now, this is always being set to "1".
30: DIRTARGET=loncapa-$(VERSION)
31: LOCALAUTHPATH=/home/httpd/lib/perl
32:
33: # =============================================== Help targets for the Makefile
34: # If 'make' is run without any arguments, the 'help' target is called since
35: # it is the first target.
36: help:
37: @echo "*** You need to specify a valid target ***"
38: @echo "To get a list of valid targets: \"make help_TARGETS\""
39: @echo "To get a list of valid options: \"make help_OPTIONS\""
40: @echo " "
41: @echo "Typically invoked targets are:"
42: @echo " make build"
43: @echo " make install"
44: @echo " make test"
45: @echo " make clean"
46:
47: help_OPTIONS:
48: @echo "* ADJUSTABLE OPTIONS *"
49: @echo "(option) DIST can be redhat7, debian, redhat6.2, or default"
50: @echo " You probably do not need to specify this; it is"
51: @echo " automatically probed for."
52: @echo "(option) CATEGORY can be 'runtime' or 'development'; currently"
53: @echo " the 'development' setting is the most reliable;"
54: @echo " eventually, production machines should be using the"
55: @echo " 'runtime' settings"
56: @echo "(option) SOURCE is an absolute or relative directory path."
57: @echo " SOURCE corresponds to the root directory of the"
58: @echo " loncapa source release"
59: @echo "(option) TARGET is an absolute or relative directory path."
60: @echo " This is where files will be installed on your system."
61: @echo " Typically, this should be set to nothing (which"
62: @echo " corresponds to the '/' root of the entire filesystem)."
63: @echo "(option) NORESTORECONF, when set to a non-zero value, stops"
64: @echo " filesystem upgrades from overwriting existing "
65: @echo " configuration files. Ordinarily, NORESTORECONF=0, "
66: @echo " because the existing configuration files are safely"
67: @echo " dealt with (or so one hopes... :) )."
68: @echo "(option) HOSTNAME specifies the name of a remote server for"
69: @echo " which a NET_* Makefile target should be launched"
70: @echo "(option) VERSION; especially useful for the 'tardist' target"
71: @echo " this tags the tarball file and internal directories"
72: @echo " with a specific version string (conventionally "
73: @echo " numeric)"
74:
75: help_TARGETS:
76: @echo "*** RUNNING TESTS TO ENSURE SOLID PERFORMANCE ***"
77: @echo "test: test different parts of the LON-CAPA system (TEST_*)."
78: @echo " Makefile-dependent processes as well as horizontal and"
79: @echo " vertical aspects of the LON-CAPA system architecture"
80: @echo " are all tested."
81: @echo "TEST_lpml_scripts: make sure that the system can process"
82: @echo " the Linux Packaging Markup Language."
83: @echo " This is neither horizontal or vertical"
84: @echo " testing. The idea is to make sure that"
85: @echo " the installation software itself works"
86: @echo " as expected."
87: @echo "TEST_system_dependencies: make sure that all needed system "
88: @echo " components are active and present "
89: @echo " on the server such as perl modules"
90: @echo " and the MySQL database"
91: @echo " (horizontal testing)"
92: @echo "TEST_web_layer: mimic a login and various vertical actions on "
93: @echo " a LON-CAPA system"
94: @echo "TEST_hosts_and_domain_tab: make sure that a "
95: @echo " loncapa/loncom/hosts.tab and loncapa/loncom/domain.tab"
96: @echo " file is specified for installation"
97: @echo "TEST_html2ps: test for the presence of html2ps which is needed"
98: @echo " for making a PDF compilation for pdfdoc"
99: @echo "*** GENERAL TARGETS SUCH AS 'build' AND 'install' ***"
100: @echo "build: compile the source tree"
101: @echo "buildflag: a semaphore that helps educate the user to run"
102: @echo " 'make build' first before running 'make install'"
103: @echo "configinstall: install configuration files and restore with"
104: @echo " prior information"
105: @echo "install: install from a ***compiled*** source tree"
106: @echo " (see make build) to a specified TARGET destination"
107: @echo " on the filesystem (default setting is TARGET=/)."
108: @echo "rawinstall: just install files, links and directories without"
109: @echo " any bells or whistles (e.g. double-checking"
110: @echo " configurations, fine-tuning webserver, etc.)"
111: @echo "hosts_and_domain_tab: install the hosts.tab and domain.tab"
112: @echo " to the filesystem"
113: @echo "webserverconf: fine-tune the web server configuration;"
114: @echo " make sure the proper 'Include' statements"
115: @echo " are appended to httpd.conf"
116: @echo "vanillatar: generate top-level files such as README, UPDATE,"
117: @echo " CHECKRPMS, and TEST (needed by tardist)"
118: @echo "tardist: build a tarball that will upgrade the software on a "
119: @echo " system"
120: @echo "sanitycheck: probe for common errors and recommend fixes to"
121: @echo " the user"
122: @echo "accesscount_seed: Migrate the access counting mechanism from "
123: @echo " nohist_reseval.db to nohist_accesscount.db."
124: @echo "modify_config_files: Perform automatic update of the "
125: @echo " configuration files for yum and MySQL."
126: @echo "ntpcheck: test to see if ntp is installed and running."
127: @echo "html_parser_check: test functionality of HTML::Parser."
128: @echo "cron_lpmlcheck: remove cron file /etc/cron.d/loncapa.lpml."
129: @echo "chkconfig: test runlevels of httpd and loncontrol."
130: @echo "rpmcheck: test to see if rpms known to confict are installed."
131: @echo "updatequery: solicit the user for machine configuration"
132: @echo " information; to be incorporated during an update"
133: @echo " procedure (via the UPDATE command)"
134: @echo "postinstall: double-check things after installation"
135: @echo "VERSION: tag the filesystem with version information inside"
136: @echo " /etc/loncapa-release and"
137: @echo " /home/httpd/html/lon-status/version.txt"
138: @echo "aboutVERSION: place version information inside about.html"
139: @echo " and loncapa_apache.conf"
140: @echo "*** Makefile.* TARGETS BUILT DYNAMICALLY FROM loncapafiles.lpml ***"
141: @echo "Makefile.configinstall: generate a Makefile for configuration"
142: @echo " files; built dynamically from"
143: @echo " loncapafiles.lpml"
144: @echo "Makefile.build: generate a Makefile for compiling"
145: @echo " files inside the source directory; "
146: @echo " Makefile.build is generated from"
147: @echo " loncapafiles.lpml"
148: @echo "Makefile.install: generate a Makefile for installing"
149: @echo " files; built dynamically from"
150: @echo " loncapafiles.lpml"
151: @echo "*** TARGETS FOR OPERATING ON FILESYSTEMS ACROSS THE NETWORK ***"
152: @echo "lpmladm: coordinates username=lpmladm mediated secure shell"
153: @echo " processes; needed for the NET_* targets"
154: @echo "NET_hosts_and_domain_tab: install the hosts.tab and domain.tab"
155: @echo " to a filesystem elsewhere"
156: @echo " on the network"
157: @echo "NET_webserverconf: fine-tune the web server configuration on a"
158: @echo " filesystem elsewhere on the network"
159: @echo "NET_rawinstall: launch the rawinstall target on a filesystem"
160: @echo " elsewhere on the network"
161: @echo "*** TARGETS FOR MAKING LISTS (MANIFESTS) OF LON-CAPA FILES ***"
162: @echo "MANIFEST_all: generate a list of all files to be included in"
163: @echo " the distributed tarball"
164: @echo "MANIFEST_cvs: essentially a list of all CVS/Entries files used"
165: @echo " for 'time-checking' intelligence"
166: @echo "MANIFEST_lpml: a list of all LON-CAPA files to be installed,"
167: @echo " compile from, used as building software, and"
168: @echo " testing"
169: @echo "MANIFEST_vanillatar: 'README'-type top-level files that a user"
170: @echo " of the distributed tarball would first"
171: @echo " look at and work with"
172: @echo "*** STATUS REPORT TARGETS ***"
173: @echo "warningnote: analyze the WARNINGS file and produce a synopsis"
174: @echo " and recommended action to the user"
175: @echo "HTML: generate an HTML-formatted description of the LON-CAPA"
176: @echo " source files"
177: @echo "status: compare the TARGET filesystem with a compiled loncapa "
178: @echo " source directory"
179: @echo "statuspost: post the results of "make status" to "
180: @echo " TARGET/home/httpd/html/lon-status/filestatus.html"
181: @echo "rpmstatus: compare the rpms on a system to defined lists "
182: @echo " loncapa/doc/otherfiles/cd_rpms and "
183: @echo " loncapa/doc/otherfiles/rpm_list.txt"
184: @echo "rpmstatuspost: post the results of 'make rpmstatus' to "
185: @echo " TARGET/home/httpd/html/lon-status/rpmstatus.html"
186: @echo "*** ALTERNATIVE PACKAGING TARGETS ***"
187: @echo "RPM: build LON-CAPA-base RPM from loncapa source repository"
188: @echo " (still under development)"
189: @echo "DPKG: build a loncapa Debian package from loncapa source"
190: @echo " repository (still under development)"
191: @echo "base_rpm_file_list: create a file listing to be used for"
192: @echo " generating an RPM software package"
193: @echo "BinaryRoot: create a BinaryRoot directory to be used for"
194: @echo " generating an RPM software package"
195: @echo "*** MASTER DOCUMENTATION TARGETS ***"
196: @echo "doc: generate web-page documentation for install.lon-capa.org"
197: @echo " (and eventually for documentation on installed machines)"
198: @echo "pdfdoc: make a PDF-formatted compilation of all installation"
199: @echo " documentation"
200: @echo "*** KEEPING THINGS CLEAN ***"
201: @echo "clean: remove any files that might (even by remote chance)"
202: @echo " interfere with rebuilding/recompiling software"
203: @echo "reallyclean: remove all files that were generated during"
204: @echo " building or compilation of the software"
205: @echo "uninstall: remove all directories that do not contain files"
206: @echo " from other software packages and that do not contain"
207: @echo " student and instructor data; NOTE THAT THIS IS"
208: @echo " INTERACTIVE--you will be given a final chance"
209: @echo " to look at what will and will not be deleted."
210: @echo " Still, be careful. This is a very new target and is"
211: @echo " an alpha-level software feature for now."
212: @echo "backup: rolls a tarball backup of all important student and "
213: @echo " instructor data (NOT YET IMPLEMENTED)"
214: @echo "restore: reseeds a LON-CAPA server with tarball backups "
215: @echo " generated by \"make backup\" (NOT YET IMPLEMENTED)"
216: @echo "*** AUXILIARY TESTS ***"
217: @echo "localauth: tests to see if localauth exists or not and run"
218: @echo " appropriate tests"
219: @echo "*** A HELPFUL DEPENDENCY ***"
220: @echo "alwaysrun: blank target that is a dependency for targets"
221: @echo " that should \"always run\""
222:
223: # =========================== *** RUNNING TESTS TO ENSURE SOLID PERFORMANCE ***
224:
225: test: TEST_lpml_scripts TEST_system_dependencies TEST_web_layer
226: @echo "ALL SYSTEM DEPENDENCY TESTS SUCCESSFUL"
227:
228: TEST_system_dependencies:
229: @echo "TESTING SYSTEM DEPENDENCIES"
230: cd system_dependencies; make
231:
232: TEST_lpml_scripts:
233: @echo "TESTING LPML INSTALLATION CODE"
234: cd ../test; perl filecomparetest.pl
235:
236: TEST_web_layer:
237: @echo "TESTING WEB LAYER"
238: cd weblayer_test; make
239:
240: TEST_hosts_tab:
241: @echo "Testing hosts.tab"
242: @if (test -e ../hosts.tab); then \
243: echo "there is a defined link or file; assume okay"; \
244: else echo "**** ERROR **** hosts.tab not defined!" && \
245: echo -n "You need to do one of the following within your " && \
246: echo "CVS repository (cd loncapa/loncom)" && \
247: echo " 1) ln -s production_hosts.tab hosts.tab" && \
248: echo " 2) ln -s development_hosts.tab hosts.tab" && \
249: echo "or 3) ln -s rawhide_hosts.tab hosts.tab" && \
250: echo "(you most likely want option #1, production_hosts.tab)" && \
251: exit 1; \
252: fi
253:
254: TEST_domain_tab:
255: @echo "Testing domain.tab"
256: @if (test -e ../domain.tab); then \
257: echo "there is a defined link or file; assume okay"; \
258: else echo "**** ERROR **** domain.tab not defined!" && \
259: echo -n "You need to do one of the following within your " && \
260: echo "CVS repository (cd loncapa/loncom)" && \
261: echo " 1) ln -s production_domain.tab domain.tab" && \
262: echo " 2) ln -s development_domain.tab domain.tab" && \
263: echo "or 3) ln -s rawhide_domain.tab domain.tab" && \
264: echo "(you most likely want option #1, production_domain.tab)" && \
265: exit 1; \
266: fi
267:
268: TEST_html2ps:
269: @if (test -e /usr/local/html2ps/bin/html2ps); then \
270: echo "I can find html2ps; assume okay"; \
271: else \
272: echo "**** ERROR **** cannot find /usr/local/html2ps/bin/html2ps!" && \
273: echo "Please visit http://www.tdb.uu.se/~jan/html2ps.html" && \
274: exit 1; \
275: fi
276:
277: # ======================= *** GENERAL TARGETS SUCH AS 'build' AND 'install' ***
278:
279: build: Makefile.build pod2html.sh pod2man.sh
280: install -d $(SOURCE)/doc/man
281: install -d $(SOURCE)/doc/scripts
282: install -d $(SOURCE)/doc/lib/perl/Apache
283: echo -n "" > WARNINGS
284: make -f Makefile.build all
285: echo '1' > buildflag
286: make warningnote
287:
288: buildflag:
289: @echo "**** ERROR **** You need to run 'make build' first" > WARNINGS
290: make warningnote
291: @need_to_run_make_build_first 2>/dev/null
292:
293: configinstall: Makefile.configinstall
294: make -f Makefile.configinstall SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
295: configfiles
296: if (test "0" = $(NORESTORECONF)); then \
297: perl loncaparestoreconfigurations suffix .lpmlnew; fi
298:
299: install: buildflag VERSION TEST_hosts_tab TEST_domain_tab Makefile.install Makefile
300: echo -n "" > WARNINGS
301: make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
302: directories
303: make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" files
304: make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" links
305: make SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
306: NORESTORECONF="$(NORESTORECONF)" configinstall
307: make postinstall
308: make warningnote
309: @echo "You can now run 'make test' to see if your system is ready to go!"
310: # @echo "NOTE THAT YOUR SYSTEM MUST HAVE MYSQL WITH A USER=\"www\" AND"
311: # @echo -n "PASSWORD=\"localhostkey\" FOR www\@localhost"
312: # @echo -n "(YOU MAY NEED TO REINITIALIZE YOUR MYSQL www\@localhost USER)"
313: # @echo -n "Please see http://install.lon-capa.org/ for more information"
314:
315: rawinstall: VERSION Makefile.install Makefile
316: echo -n "" > WARNINGS
317: make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
318: directories
319: make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" files
320: make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" links
321: make SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
322: NORESTORECONF="$(NORESTORECONF)" configinstall
323:
324: hosts_and_domain_tab: TEST_hosts_tab TEST_domain_tab
325: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
326: perl xfml_parse.pl $(SOURCE)/doc/loncapafiles/valid_hosts.xfml | \
327: perl lpml_parse.pl install $(CATEGORY) $(DIST) "$(SOURCE)" \
328: "$(TARGET)" > Makefile.install
329: make -f Makefile.install directories
330: make -f Makefile.install files
331: @echo "If hosts.tab or domain.tab has changed, restart httpd and loncontrol:"
332: @echo " /etc/rc.d/init.d/httpd restart"
333: @echo " /etc/rc.d/init.d/loncontrol restart"
334:
335: webserverconf:
336: cat $(SOURCE)/doc/loncapafiles/webserver.piml | \
337: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
338: tee -a WARNINGS
339:
340: # ---------------- Top-level files such as README, UPDATE, CHECKRPMS, and TEST
341: vanillatar:
342: # --------------------------- Point UPDATE to the internal make process
343: echo '#!/bin/sh' > $(SOURCE)/UPDATE
344: echo 'touch loncom/build/WARNINGS' >> $(SOURCE)/UPDATE;
345: echo 'ln -s loncom/build/WARNINGS WARNINGS' >> $(SOURCE)/UPDATE;
346: echo 'cd loncom/build; make build' >> $(SOURCE)/UPDATE
347: echo 'make rawinstall' >> $(SOURCE)/UPDATE
348: echo 'make configinstall' >> $(SOURCE)/UPDATE
349: echo 'make updatequery' >> $(SOURCE)/UPDATE
350: echo 'make hosts_and_domain_tab' >> $(SOURCE)/UPDATE
351: echo 'make postinstall' >> $(SOURCE)/UPDATE
352: echo 'make run_searchcat' >> $(SOURCE)/UPDATE
353: echo 'make aboutVERSION' >> $(SOURCE)/UPDATE
354: echo 'make warningnote' >> $(SOURCE)/UPDATE
355: # ----------------------------- Point TEST to the internal make process
356: echo '#!/bin/sh' > $(SOURCE)/TEST
357: echo 'cd loncom/build; make test' >> $(SOURCE)/TEST
358: echo 'cd system_dependencies || cd loncom/build/system_dependencies; cp -v CPAN_STATUS_REPORT ../../../CPAN_STATUS_REPORT' >> $(SOURCE)/TEST
359: # ----------------------------- Copy CHECKRPMS to the vanilla top-level
360: cp -v $(SOURCE)/loncom/build/CHECKRPMS $(SOURCE)/CHECKRPMS
361: # ----------------------- vanilla executables must indeed be executable
362: chmod a+rx $(SOURCE)/UPDATE
363: chmod a+rx $(SOURCE)/TEST
364: chmod a+rx $(SOURCE)/CHECKRPMS
365: # -------------------------------- Copy README to the vanilla top-level
366: #cp -v $(SOURCE)/doc/shortest_path_redhat7.2.txt $(SOURCE)/README
367:
368: tardist:
369: make MANIFEST_all
370: make vanillatar
371: # -------------------------------------------------------- Make tardist
372: @cd $(SOURCE); \
373: if (test -h $(DIRTARGET)); then \
374: echo "$(DIRTARGET) link already defined; assume okay"; \
375: else \
376: ln -s . $(DIRTARGET); \
377: fi
378: cp -v $(SOURCE)/loncom/license/about.html \
379: $(SOURCE)/loncom/license/about.html.orig
380: cp -v $(SOURCE)/loncom/loncapa_apache.conf \
381: $(SOURCE)/loncom/loncapa_apache.conf.orig
382: make aboutVERSION
383: cd $(SOURCE); \
384: tar --no-recursion --numeric-owner --files-from MANIFEST \
385: -h -czf $(DIRTARGET).tar.gz 2>tar_WARNINGS || [ "0" == "0" ]
386: mv -v $(SOURCE)/loncom/license/about.html.orig \
387: $(SOURCE)/loncom/license/about.html
388: mv -v $(SOURCE)/loncom/loncapa_apache.conf.orig \
389: $(SOURCE)/loncom/loncapa_apache.conf
390: cat $(SOURCE)/tar_WARNINGS | \
391: xargs --replace=XXX echo '**** WARNING **** XXX' > WARNINGS
392: rm -f $(SOURCE)/tar_WARNINGS
393: make warningnote
394:
395: ntpcheck:
396: cat $(SOURCE)/doc/loncapafiles/ntpcheck.piml | \
397: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
398: tee -a WARNINGS
399:
400: html_parser_check:
401: cat $(SOURCE)/doc/loncapafiles/html_parser_check.piml | \
402: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
403: tee -a WARNINGS
404:
405: cron_lpmlcheck:
406: cat $(SOURCE)/doc/loncapafiles/cron_lpmlcheck.piml | \
407: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
408: tee -a WARNINGS
409:
410: chkconfig:
411: cat $(SOURCE)/doc/loncapafiles/chkconfig.piml | \
412: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
413: tee -a WARNINGS
414:
415: rpmcheck:
416: cat $(SOURCE)/doc/loncapafiles/rpmcheck.piml | \
417: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
418: tee -a WARNINGS
419:
420: sanitycheck:
421: cat $(SOURCE)/doc/loncapafiles/sanitycheck.piml | \
422: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
423: tee -a WARNINGS
424:
425: updatequery:
426: cat $(SOURCE)/doc/loncapafiles/updatequery.piml | \
427: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(QUERYLAUNCH)
428:
429: run_searchcat:
430: cat $(SOURCE)/doc/loncapafiles/run_searchcat.piml | \
431: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(QUERYLAUNCH)
432:
433: accesscount_seed:
434: cat $(SOURCE)/doc/loncapafiles/accesscount_seed.piml | \
435: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
436: tee -a WARNINGS
437:
438: modify_config_files:
439: cat $(SOURCE)/doc/loncapafiles/modify_config_files.piml | \
440: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
441: tee -a WARNINGS
442:
443: reseval_fixup:
444: cat $(SOURCE)/doc/loncapafiles/reseval_fixup.piml | \
445: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
446: tee -a WARNINGS
447:
448: clearoutoldspreadsheetcache:
449: cat $(SOURCE)/doc/loncapafiles/clearoutoldspreadsheetcache.piml | \
450: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
451: tee -a WARNINGS
452:
453: sendmail_fix:
454: cat $(SOURCE)/doc/loncapafiles/sendmail_fix.piml | \
455: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
456: tee -a WARNINGS
457:
458: ownership_fix:
459: cat $(SOURCE)/doc/loncapafiles/ownership_fix.piml | \
460: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
461: tee -a WARNINGS
462:
463: postinstall:
464: make webserverconf
465: make reseval_fixup
466: make accesscount_seed
467: make modify_config_files
468: make clearoutoldspreadsheetcache
469: make chkconfig
470: make rpmcheck
471: make ntpcheck
472: make html_parser_check
473: make cron_lpmlcheck
474: make sanitycheck
475: make sendmail_fix
476: make ownership_fix
477:
478: VERSION:
479: install -d $(TARGET)/etc
480: echo -n "LON-CAPA release $(VERSION)-" > $(TARGET)/etc/loncapa-release
481: date +"%Y%m%d" >> $(TARGET)/etc/loncapa-release
482: install -d $(TARGET)/home/httpd/html/lon-status
483: echo -n "$(VERSION)-" > $(TARGET)/home/httpd/html/lon-status/version.txt
484: date +"%Y%m%d" >> $(TARGET)/home/httpd/html/lon-status/version.txt
485:
486: aboutVERSION:
487: cat $(SOURCE)/loncom/license/about.html | \
488: perl -e '$$d=`date +"%Y%m%d"`;chomp($$d);while(<>){s/\<\!\-\- VERSION \-\-\>/$(VERSION)-$$d/; print;}' > \
489: $(SOURCE)/loncom/license/about.html.new
490: mv -v $(SOURCE)/loncom/license/about.html.new \
491: $(SOURCE)/loncom/license/about.html
492: cat $(SOURCE)/loncom/loncapa_apache.conf | \
493: perl -e '$$d=`date +"%Y%m%d"`;chomp($$d);while(<>){s/\<\!\-\- VERSION \-\-\>/$(VERSION)-$$d/; print;}' > \
494: $(SOURCE)/loncom/loncapa_apache.conf.new
495: mv -v $(SOURCE)/loncom/loncapa_apache.conf.new \
496: $(SOURCE)/loncom/loncapa_apache.conf
497:
498: # ========= *** Makefile.* TARGETS BUILT DYNAMICALLY FROM loncapafiles.lpml ***
499:
500: Makefile.configinstall: $(SOURCE)/doc/loncapafiles/loncapafiles.lpml \
501: lpml_parse.pl
502: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
503: perl lpml_parse.pl configinstall $(CATEGORY) $(DIST) "$(SOURCE)" \
504: "$(TARGET)" > Makefile.configinstall
505:
506: Makefile.build: $(SOURCE)/doc/loncapafiles/loncapafiles.lpml lpml_parse.pl
507: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
508: perl lpml_parse.pl build $(CATEGORY) $(DIST) "$(SOURCE)" "$(TARGET)" \
509: > Makefile.build
510:
511: Makefile.install: alwaysrun
512: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
513: perl lpml_parse.pl install $(CATEGORY) $(DIST) "$(SOURCE)" \
514: "$(TARGET)" > Makefile.install
515:
516: # ============= *** TARGETS FOR OPERATING ON FILESYSTEMS ACROSS THE NETWORK ***
517:
518: lpmladm:
519: @if (test $(METAMTARGET) = "TRANSPORT"); then \
520: echo "Transporting to $(HOSTNAME)"; \
521: sudo make DIST=$(DIST) CATEGORY=$(CATEGORY) \
522: SOURCE="$(SOURCE)" \
523: TARGET="lpmladm.$(TIMESTAMP)" \
524: NORESTORECONF="$(NORESTORECONF)" "$(MTARGET)"; \
525: cd lpmladm.$(TIMESTAMP); \
526: sudo tar czvf ../tarball$(TIMESTAMP).tar.gz .; \
527: cd ..; scp tarball$(TIMESTAMP).tar.gz \
528: lpmladm@$(HOSTNAME):~/tarball$(TIMESTAMP).tar.gz; \
529: ssh lpmladm@$(HOSTNAME) sudo mv tarball$(TIMESTAMP).tar.gz /; \
530: ssh lpmladm@$(HOSTNAME) sudo tar -x -z -v -C / \
531: -p --same-owner -f \
532: /tarball$(TIMESTAMP).tar.gz; \
533: ssh lpmladm@$(HOSTNAME) sudo rm -f \
534: /tarball$(TIMESTAMP).tar.gz; \
535: elif (test $(METAMTARGET) = "LAUNCH"); then \
536: echo "Launching process on $(HOSTNAME)"; \
537: LAUNCHSAVE=$(OUTSTREAM) $(SAVE); \
538: make DIST=$(DIST) CATEGORY=$(CATEGORY) SOURCE="$(SOURCE)" \
539: TARGET="$(TARGET)" NORESTORECONF="$(NORESTORECONF)" \
540: LAUNCH="$(LAUNCHSAVE)" "$(MTARGET)"; \
541: scp $(SAVE) lpmladm@$(HOSTNAME):~/$(SAVE); \
542: ssh lpmladm@$(HOSTNAME) sudo perl $(SAVE); \
543: ssh lpmladm@$(HOSTNAME) sudo rm -f $(SAVE); \
544: else \
545: echo "**** ERROR **** Incorrect METAMTARGET"; \
546: fi
547:
548: NET_hosts_and_domain_tab:
549: make TIMESTAMP=`date +"%s"` METAMTARGET="TRANSPORT" \
550: MTARGET="hosts_and_domain_tab" HOSTNAME="$(HOSTNAME)" lpmladm
551:
552: NET_webserverconf:
553: make TIMESTAMP=`date +"%s"` METAMTARGET="LAUNCH" \
554: MTARGET="webserverconf" HOSTNAME="$(HOSTNAME)" lpmladm
555:
556: NET_rawinstall:
557: make TIMESTAMP=`date +"%s"` METAMTARGET="TRANSPORT" \
558: MTARGET="rawinstall" HOSTNAME="$(HOSTNAME)" lpmladm
559:
560: # ============== *** TARGETS FOR MAKING LISTS (MANIFESTS) OF LON-CAPA FILES ***
561:
562: MANIFEST_all:
563: # --------------------------------------------------------- start clean
564: rm -f $(SOURCE)/MANIFEST
565: make MANIFEST_lpml
566: make MANIFEST_vanillatar
567: make MANIFEST_cvs
568: # ---------------------------------- might as well include the MANIFEST
569: echo 'MANIFEST' >> $(SOURCE)/MANIFEST
570: # ------------------------------------------ hosts.tab are belong to us
571: echo 'loncom/rawhide_hosts.tab' >> $(SOURCE)/MANIFEST
572: echo 'loncom/production_hosts.tab' >> $(SOURCE)/MANIFEST
573: echo 'loncom/development_hosts.tab' >> $(SOURCE)/MANIFEST
574: echo 'loncom/production_domain.tab' >> $(SOURCE)/MANIFEST
575: echo 'loncom/development_domain.tab' >> $(SOURCE)/MANIFEST
576: # ------------------ Files needed for dynamically generated directories
577: echo 'doc/man' >> $(SOURCE)/MANIFEST
578: echo 'doc/lib' >> $(SOURCE)/MANIFEST
579: echo 'doc/lib/perl' >> $(SOURCE)/MANIFEST
580: echo 'doc/lib/perl/Apache' >> $(SOURCE)/MANIFEST
581: echo 'doc/scripts' >> $(SOURCE)/MANIFEST
582: # --------------------------------------------------- Clean up MANIFEST
583: cd $(SOURCE); \
584: sort MANIFEST | perl -nle 'print "$(DIRTARGET)/$$_"' | \
585: perl -nle 's/\w+\/\.\.\///g;s/\w+\/\.\.\///g;print' | \
586: perl -nle 's/\w+\/\.\.\///g;s/\w+\/\.\.\///g;print' | \
587: perl -nle 's/\w+\/\.\.\///g;s/\w+\/\.\.\///g;print' | \
588: perl -nle 's/\/\.\//\//g;print' | sort | uniq > \
589: MANIFEST_loncapa
590: cd $(SOURCE); mv -v MANIFEST_loncapa MANIFEST
591:
592: # --------------- MANIFEST files with important CVS versioning/date information
593: MANIFEST_cvs:
594: # ------ CVS/Entries directories to retain 'time-checking' intelligence
595: cd $(SOURCE); find . -type f -name 'Entries' | grep 'CVS/Entries' >> \
596: MANIFEST
597:
598: # ------------------- MANIFEST the building, testing and standard loncapa files
599: MANIFEST_lpml:
600: cat $(SOURCE)/doc/loncapafiles/buildfiles.lpml | \
601: perl lpml_parse.pl MANIFEST development $(DIST) \
602: '$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' >> $(SOURCE)/MANIFEST
603: cat $(SOURCE)/doc/loncapafiles/testfiles.lpml | \
604: perl lpml_parse.pl MANIFEST development $(DIST) \
605: '$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' >> $(SOURCE)/MANIFEST
606: cat $(SOURCE)/doc/loncapafiles/installfiles.lpml | \
607: perl lpml_parse.pl MANIFEST development $(DIST) \
608: '$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' >> $(SOURCE)/MANIFEST
609: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
610: perl lpml_parse.pl MANIFEST development $(DIST) \
611: '$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' >> $(SOURCE)/MANIFEST
612:
613: # ------------ Files for top-level (the vanilla layer that the user first sees)
614: MANIFEST_vanillatar:
615: echo 'README' >> $(SOURCE)/MANIFEST
616: echo 'UPDATE' >> $(SOURCE)/MANIFEST
617: echo 'TEST' >> $(SOURCE)/MANIFEST
618: echo 'CHECKRPMS' >> $(SOURCE)/MANIFEST
619:
620: # =============================================== *** STATUS REPORT TARGETS ***
621:
622: warningnote:
623: @if (test -s WARNINGS); then \
624: W=`grep -c '\*\*\*\* WARNING' WARNINGS`; \
625: E=`grep -c '\*\*\*\* ERROR' WARNINGS`; \
626: N=`grep -c '\*\*\*\* NOTE' WARNINGS`; \
627: echo "---> $$W WARNINGS ENCOUNTERED! "; \
628: echo "---> $$E ERRORS ENCOUNTERED! "; \
629: echo "---> $$N NOTES ENCOUNTERED! "; \
630: echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
631: echo "!!!! Please read the WARNINGS file !!!!"; \
632: echo "!!!! to make sure everything is !!!!"; \
633: echo "!!!! correct and taken care of !!!!"; \
634: echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
635: fi
636:
637: HTML:
638: install -d HTML
639: cp $(SOURCE)/doc/loncapafiles/*.gif HTML
640: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
641: perl lpml_parse.pl html development default "$(SOURCE)" '$(TARGET)' \
642: > HTML/index.html
643:
644: status:
645: install -d HTML
646: cp $(SOURCE)/doc/loncapafiles/*.gif HTML
647: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
648: perl lpml_parse.pl html $(CATEGORY) $(DIST) "$(SOURCE)" "($TARGET)" | \
649: perl lpml_html_posteval.pl > \
650: HTML/filestatus.html
651:
652: statuspost: status
653: cp $(SOURCE)/doc/loncapafiles/*.gif \
654: $(TARGET)/home/httpd/html/lon-status
655: cp HTML/filestatus.html \
656: $(TARGET)/home/httpd/html/lon-status/filestatus.html
657:
658: rpmstatus:
659: install -d RPMSTATUS
660: rpm -qa --queryformat \
661: '%{NAME}\t%{VERSION}\t%{RELEASE}\t%{BUILDTIME}\n' | sort > \
662: RPMSTATUS/current.tmp
663: cat $(SOURCE)/doc/otherfiles/cd_rpms.txt > RPMSTATUS/standard.tmp
664: cat $(SOURCE)/doc/otherfiles/rpm_list.txt > RPMSTATUS/expected.tmp
665: perl rpmparse.pl RPMSTATUS/standard.tmp RPMSTATUS/current.tmp \
666: RPMSTATUS/expected.tmp > RPMSTATUS/rpmstatus.html
667:
668: rpmstatuspost: rpmstatus
669: cp RPMSTATUS/rpmstatus.html /home/httpd/html/lon-status/rpmstatus.html
670:
671: # ======================================= *** ALTERNATIVE PACKAGING TARGETS ***
672:
673: RPM: BinaryRoot base_rpm_file_list
674: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
675: perl lpml_parse.pl make_rpm $(CATEGORY) $(DIST) $(SOURCE) $(TARGET) \
676: > base_customizerpm.xml
677: cat base_rpm_file_list.txt | perl make_rpm.pl base $(VERSION) \
678: $(RELEASE) '' '' BinaryRoot base_customizerpm.xml
679:
680: DPKG:
681: make TARGET='lon-capa-$(VERSION)' NORESTORECONF='1' install
682: @echo "You will next need to follow instructions at:"
683: @echo "http://people.debian.org/~jaldhar/make_package1.html"
684: @echo "A directory with a snapshot of the debian package files"
685: @echo "is LON-CAPA-base."
686: # What DPKG steps need to happen (for future implementation):
687: # export EMAIL="" ... probably sharrison@mail.lon-capa.org
688: # deb-make
689: # edit debian/control
690: # make debian/dirs file
691: # make debian/copyright file
692: # debian/README.debian... point them to LON-CAPA URLS
693: # debian/changelog
694: # debian/conffiles
695: # debuild
696: # and maybe do some GPG-related steps around here
697:
698: base_rpm_file_list:
699: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
700: perl lpml_parse.pl rpm_file_list $(CATEGORY) $(DIST) $(SOURCE) \
701: 'BinaryRoot' | sort > base_rpm_file_list.txt
702:
703: BinaryRoot: base_rpm_file_list
704: make TARGET='BinaryRoot' NORESTORECONF='1' install
705:
706: # ======================================== *** MASTER DOCUMENTATION TARGETS ***
707:
708: buildwebsite:
709: cd ../../doc/build; perl ./generate_web_pages.pl
710:
711:
712: # Generates CVS:loncom/build/docs; root location of install.lon-capa.org
713: doc:
714: install -d docs
715: @if (test -e installation_manual.pdf); then \
716: cp -vf installation_manual.pdf docs/.; \
717: else \
718: touch docs/installation_manual.pdf; \
719: fi
720: install -m 0755 -d docs/icons
721: install -m 0644 $(SOURCE)/doc/icons/[^C][^V]* docs/icons
722: install -m 0755 -d docs/reconfig
723: cd docs; ln -fs installation_manual.pdf index.pdf
724: cd docs/reconfig; ln -fs ../installation_manual.pdf index.pdf
725: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
726: $(SOURCE)/doc/build/reconfig.html > docs/reconfig/index.html
727: install -m 0755 -d docs/reconfig/confexamples
728: install -m 0644 $(SOURCE)/doc/build/confexamples/[^C][^V]* \
729: docs/reconfig/confexamples
730: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
731: $(SOURCE)/doc/build/installindex.html > docs/index.html
732: install -m 0755 -d docs/license
733: cd docs/license; ln -fs ../installation_manual.pdf index.pdf
734: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
735: $(SOURCE)/doc/build/license.html > docs/license/index.html
736: install -m 0755 -d docs/contact
737: cd docs/contact; ln -fs ../installation_manual.pdf index.pdf
738: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
739: $(SOURCE)/doc/build/contact.html > docs/contact/index.html
740: install -m 0755 -d docs/faq
741: cd docs/faq; ln -fs ../installation_manual.pdf index.pdf
742: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
743: $(SOURCE)/doc/build/faq.html > docs/faq/index.html
744: install -m 0755 -d docs/downloads
745: cd docs/downloads; ln -fs ../installation_manual.pdf download.pdf
746: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
747: $(SOURCE)/doc/build/download.html > docs/downloads/index.html
748: install -m 0755 -d docs/install
749: cd docs/install; ln -fs ../installation_manual.pdf install.pdf
750: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
751: $(SOURCE)/doc/build/install.html > docs/install/index.html
752: cp -v $(SOURCE)/doc/install/redhat7.3/new_install_rh73.html \
753: docs/install/rh73.html
754: cp -v $(SOURCE)/doc/install/redhat7.3/new_install_rh73.html \
755: docs/downloads/rh73.html
756: install -m 0755 -d docs/upgrade
757: cd docs/upgrade; ln -fs ../installation_manual.pdf upgrade.pdf
758: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
759: $(SOURCE)/doc/build/upgrade.html > docs/upgrade/index.html
760: cd docs; tar czvpf ../docs.tar.gz .
761:
762: pdfdoc: TEST_html2ps
763: install -d pdfdoc
764: /usr/local/html2ps/bin/html2ps -D \
765: $(SOURCE)/doc/build/installindex_noform.html > pdfdoc/installindex.ps
766: /usr/local/html2ps/bin/html2ps -D \
767: $(SOURCE)/doc/build/reconfig.html | \
768: perl -nle 's/\[EXAMPLE\]/\[EXAMPLE \(at end of document\)\]/g;print' \
769: > pdfdoc/reconfig.ps
770: /usr/local/html2ps/bin/html2ps -D \
771: $(SOURCE)/doc/build/install.html > pdfdoc/install.ps
772: /usr/local/html2ps/bin/html2ps -D \
773: $(SOURCE)/doc/build/upgrade.html > pdfdoc/upgrade.ps
774: /usr/local/html2ps/bin/html2ps -D \
775: $(SOURCE)/doc/build/faq.html > pdfdoc/faq.ps
776: /usr/local/html2ps/bin/html2ps -D \
777: $(SOURCE)/doc/build/download.html > pdfdoc/download.ps
778: /usr/local/html2ps/bin/html2ps -D \
779: $(SOURCE)/doc/build/contact.html > pdfdoc/contact.ps
780: /usr/local/html2ps/bin/html2ps -D \
781: $(SOURCE)/doc/build/license.html > pdfdoc/license.ps
782: # This creates a bad confexamples.ps... so take the long way around
783: # cd $(SOURCE)/doc/build/confexamples; \
784: # mpage -P- -1 -H [^C]* > ../../../loncom/build/pdfdoc/confexamples.ps
785: install -d pdfdoc/confexamples
786: cd $(SOURCE)/doc/build/confexamples; \
787: find . -type f | cut -b3- | grep -v '^C' | grep -v 'keyword' | \
788: perl -nle \
789: '`mpage -P- -1 -H $$_ > ../../../loncom/build/pdfdoc/confexamples/$$_.ps`;'
790: echo '' > pdfdoc/contents.txt
791: echo '' >> pdfdoc/contents.txt
792: echo ' The Learning Online Network' >> pdfdoc/contents.txt
793: echo ' with the' >> pdfdoc/contents.txt
794: echo ' Computer-Assisted Personalized Approach' >> \
795: pdfdoc/contents.txt
796: echo '' >> pdfdoc/contents.txt
797: echo '' >> pdfdoc/contents.txt
798: echo 'CONTENTS' >> pdfdoc/contents.txt
799: echo '--------' >> pdfdoc/contents.txt
800: echo 'Opening' >> pdfdoc/contents.txt
801: echo 'Configuration' >> pdfdoc/contents.txt
802: echo 'Installation' >> pdfdoc/contents.txt
803: echo 'Upgrading a LON-CAPA Server' >> pdfdoc/contents.txt
804: echo 'FAQ' >> pdfdoc/contents.txt
805: echo 'Download' >> pdfdoc/contents.txt
806: echo 'Contact Information' >> pdfdoc/contents.txt
807: echo 'License Information' >> pdfdoc/contents.txt
808: echo 'Configuration Examples' >> pdfdoc/contents.txt
809: mpage -P- -1 \
810: pdfdoc/contents.txt \
811: pdfdoc/installindex.ps \
812: pdfdoc/reconfig.ps \
813: pdfdoc/install.ps \
814: pdfdoc/upgrade.ps \
815: pdfdoc/faq.ps \
816: pdfdoc/download.ps \
817: pdfdoc/contact.ps \
818: pdfdoc/license.ps \
819: pdfdoc/confexamples/*.ps \
820: > pdfdoc/installation_manual.ps
821: ps2pdf pdfdoc/installation_manual.ps pdfdoc/installation_manual.pdf
822: mv -vf pdfdoc/installation_manual.pdf .
823:
824: # ================================================ *** KEEPING THINGS CLEAN ***
825:
826: clean:
827: rm -f buildflag
828: rm -Rf HTML
829: rm -f installation_manual.pdf
830: rm -f Makefile.build
831: rm -f Makefile.install
832: rm -f Makefile.configinstall
833: rm -Rf BinaryRoot
834: rm -Rf SetupBinaryRoot
835: rm -Rf LON-CAPA-base
836: rm -f base_rpm_file_list.txt
837: rm -f base_customizerpm.xml
838: rm -f setup_rpm_file_list.txt
839: rm -f docs.tar.gz
840: rm -Rf docs
841: rm -Rf pdfdoc
842: rm -f program.pl*
843: rm -Rf lpmladm.*
844: rm -f WARNINGS
845: rm -f CPAN_STATUS_REPORT
846: rm -f $(SOURCE)/loncom/build/hosts.tab
847:
848: reallyclean:
849: rm -f buildflag
850: rm -f $(SOURCE)/README
851: rm -f $(SOURCE)/UPDATE
852: rm -f $(SOURCE)/TEST
853: rm -f $(SOURCE)/MANIFEST
854: rm -f $(SOURCE)/MANIFEST_loncapa
855: rm -f $(SOURCE)/loncapa
856: rm -f $(SOURCE)/loncom/build/hosts.tab
857: rm -f $(SOURCE)/loncapa.tar.gz
858: rm -Rf HTML
859: rm -f installation_manual.pdf
860: rm -f Makefile.build
861: rm -f Makefile.install
862: rm -f Makefile.configinstall
863: rm -Rf BinaryRoot
864: rm -Rf SetupBinaryRoot
865: rm -Rf LON-CAPA-base
866: rm -f base_rpm_file_list.txt
867: rm -f base_customizerpm.xml
868: rm -f setup_rpm_file_list.txt
869: rm -f docs.tar.gz
870: rm -Rf docs
871: rm -Rf pdfdoc
872: rm -f program.pl*
873: rm -Rf lpmladm.*
874: make -f Makefile.cvs clean
875: rm -f WARNINGS
876:
877: uninstall:
878: rm -f UNINSTALL_SHELL_COMMANDS
879: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
880: perl lpml_parse.pl uninstall_shell_commands $(CATEGORY) $(DIST) \
881: "$(SOURCE)" "$(TARGET)" > UNINSTALL_SHELL_COMMANDS
882: @echo -n "**** NOTE **** A file \"UNINSTALL_SHELL_COMMANDS\" has been "
883: @echo "generated."
884: @echo "First, you should view the contents of this file."
885: @echo "If you are happy with the 'rm -Rf'! commands (or at least"
886: @echo "have another job lined up in case of catastrophe), then you "
887: @echo "can execute the following: sh ./UNINSTALL_SHELL_COMMANDS"
888:
889: backup:
890: @echo "Not yet implemented"
891:
892: restore:
893: @echo "Not yet implemented"
894:
895: # ===================================================== *** AUXILIARY TESTS ***
896: localauth:
897: @if (test -e $(LOCALAUTHPATH)/localauth.pm) && \
898: !(diff $(LOCALAUTHPATH)/localauth-std.pm \
899: $(LOCALAUTHPATH)/localauth.pm > /dev/null); then \
900: echo "**** WARNING **** $(LOCALAUTHPATH)/localauth.pm is different than the $(LOCALAUTHPATH)/localauth-std.pm; if you have not customized localauth.pm, then please manually overwrite localauth.pm (rm $(LOCALAUTHPATH)/localauth.pm; ln -s $(LOCALAUTHPATH)/localauth-std.pm $(LOCALAUTHPATH)/localauth.pm); if you have customized localauth.pm, then please double-check to see that your customized localauth.pm is compatible with any localauth-std.pm changes for this version of LON-CAPA"| tee -a WARNINGS; \
901: elif (test -e $(LOCALAUTHPATH)/localauth.pm) && \
902: (diff $(LOCALAUTHPATH)/localauth-std.pm \
903: $(LOCALAUTHPATH)/localauth.pm > /dev/null); then \
904: echo "**** NOTE **** LOCAL AUTH IS IDENTICAL WITH STANDARD TEMPLATE"| tee -a WARNINGS; \
905: elif !(test -e $(LOCALAUTHPATH)/localauth.pm) && \
906: (test -e $(LOCALAUTHPATH)/localauth-std.pm); then \
907: ln -s $(LOCALAUTHPATH)/localauth-std.pm $(LOCALAUTHPATH)/localauth.pm; \
908: fi
909:
910: # ================================================ *** A HELPFUL DEPENDENCY ***
911: alwaysrun:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>