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