ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/config.local.template
Revision: 1.14
Committed: Wed Jan 19 20:46:37 2011 UTC (12 years, 8 months ago) by arta
Branch: MAIN
CVS Tags: NetDRMS_Ver_2-6, NetDRMS_Ver_9-9
Changes since 1.13: +6 -0 lines
Log Message:
Make the compiler autoconfiguration configurable so that the user can turn it off.

File Contents

# User Rev Content
1 arta 1.11 __DEFS__
2    
3 arta 1.1 # NetDRMS local site configuration info
4     # edit the values in the second column of each line in this file to reflect
5     # the values appropriate to your site
6    
7     # a marker to indicate whether this file has been checked/edited. You MUST
8     # either change its value to yes (or anything but NO) or comment it out.
9     LOCAL_CONFIG_SET NO
10    
11 arta 1.2 # the next three entries must almost certainly be changed to reflect your
12     # local configuration
13    
14     # the name of the NetDRMS database; the SUMS database will be assumed to
15     # have the same name with "_sums" appended
16     DRMS_DATABASE mydb
17 arta 1.1
18     # the host name of the default database server you will be accessing; you
19     # should include the internet domain (e.g. host.subnet.net) if the server is
20     # not on your subnet; but if it is on your subnet it may be better not to
21 arta 1.2 # the default value is only really appropriate if you are running in a
22     # single-user environment, such as a laptop; whether it is the default
23     # or a named host depends on how the postgres database named above and
24     # its dependent _sums have been configured in their pg_hba.conf files:
25     # localhost for METHOD "trust", a named host for METHOD "ident sameuser"
26 arta 1.1 DBSERVER_HOST localhost
27    
28 rick 1.13 # the port number for the DRMS database server - default should be okay
29     # unless in use otherwise
30     DRMS_DBPORT 5432
31    
32 arta 1.1 # a 15-bit numerical site identifier; values < 16384 (0x4000) are for
33     # publicly exporting sites, and must be registered to assure uniqueness
34 arta 1.2 # the default value is for a private unregistered site, and may not provide
35     # access to publicly exporting sites
36 arta 1.1 DRMS_SITE_CODE 0x4000
37    
38 rick 1.8 # the default values for the following five entries may or may not be
39 rick 1.5 # appropriate for your site configuration, depending on how and where
40     # third-party software has been set up and installed
41 arta 1.2
42     # the user name of the postgres administrative account; normally "postgres"
43     # if you have followed the PostgreSQL installation suggestions
44     POSTGRES_ADMIN postgres
45    
46     # a sample namespace appropriate to your site; this is only used for a
47     # couple of database initialization scripts and is not important for
48     # subsequent installations/updates
49     DRMS_SAMPLE_NAMESPACE drms
50 rick 1.5
51 rick 1.10 # The remaining definitions only need to be reviewed and modified as
52     # appropriate if you will be doing a "make sums" as or in behalf of the
53     # SUMS_MANAGER; they do not affect the functioning of the libraries and
54     # applications built by a regular user with plain "make"; nevertheless
55     # it is probably a good idea to keep them consistent for the site
56    
57     # The following entries are for slony processing of mirrored data archives;
58     # they are not currently used in the "make"
59 rick 1.8
60     # the postgres user name of the slony administrative account; normally "slony"
61     SLONY_ADMIN slony
62    
63     # the base directory for slony logs
64     SLONY_LOG_BASEDIR /usr/local/logs/slony
65    
66     # the user name(s) or email addresses for slony problem notifications
67     SLONY_NOTIFY production
68    
69 rick 1.10 # The following entries are specific to the SUMS configuration
70 rick 1.5
71     # the user name of the SUMS administrator account - a special account is
72     # recommended for multi-user systems, but not required
73     SUMS_MANAGER production
74    
75 rick 1.6 # the group name for users permitted to add data to DRMS/SUMS; not
76     # currently used in code, but should match the group ownership of
77     # the SUMS root directories /SUM*
78     SUMS_GROUP drms
79    
80 rick 1.5 # the host name of the default SUMS server you will be using; this is the
81     # the machine that the SUMS storage units are mounted on, not necessarily
82     # the machine serving the Postgres SUMS database
83     SUMS_SERVER_HOST localhost
84    
85 rick 1.13 # the port number for the DRMS database server - default should be okay
86     # unless in use otherwise
87     SUMS_DBPORT 5434
88    
89 rick 1.5 # the base directory for SUMS logs and configuration files; used by
90 rick 1.10 # base/sums/apps/sum_svc.c and sum_rm.c
91 rick 1.5 SUMS_LOG_BASEDIR /usr/local/logs/SUM
92    
93 rick 1.6 # the directory in which the binary of sum_chmown, a root setuid program,
94     # is installed; must be mounted locally on the machine on which the
95     # SUMS partition are mounted; used by base/sums/apps/sum_svc_proc.c
96 rick 1.7 SUMS_BIN_BASEDIR /usr/local/bin
97 rick 1.6
98 rick 1.5 # whether a tape archive service is available for SUMS or not; set to a
99 rick 1.10 # non-zero value if it is
100 rick 1.5 SUMS_TAPE_AVAILABLE 0
101 rick 1.8
102 arta 1.14 # If AUTOSELCOMP is 1, then the configure script will automatically select
103     # the 'best' compiler for use with the make system (choosing icc over gcc).
104     # Set this to 0 to permit manual selection via the JSOC_COMPILER and JSOC_FCOMPILER
105     # environment variables, or via editing of make_basic.mk
106     AUTOSELCOMP (1)
107    
108 rick 1.10 # SUMS Export - specify how to construct 4 arguments that represent the
109     # transfer program (e.g. scp), the user, the host, and the port to be used
110     # in a command line for fetching SUMS data from a server via sum_export_svc.
111     # Use a printf format string, followed by any combination of the following
112     # string variables: meth, user, host, domain, port. These string variables
113     # are populated from the SUMS_URL value in jsoc.drms_sites, which has the
114     # form:
115 arta 1.11 #
116     # <meth>://<user>@<host>.<domain>:<port>
117 arta 1.9 #
118 rick 1.10 # The meth variable is assigned the string <meth>, the user variable is
119     # assigned the string <user>, and so on.
120 arta 1.9 #
121     # The 4 arguments will be used as follows to construct a command line:
122 rick 1.10 # METH -P PORT USER@HOST:file destfile (if PORT is not 0)
123     # METH USER@HOST:file destfile (if PORT is 0)
124     #
125     # N.B. The default values, as provided in the commented-out definitions below,
126     # will result in a command of the form:
127     # METH -P PORT USER@HOST.DOMAIN:file destfile (if PORT is not 0)
128     # METH USER@HOST.DOMAIN:file destfile (if PORT is 0)
129     # It is only necessary to uncomment the definitions if you need to provide
130     # a different command, for example,
131     # METH USER@HOST-PORT:file destfile
132     # in which case you would have to define:
133 arta 1.11 # SUMEXP_HOSTFMT "%s-%s", host, port
134 rick 1.10 # and
135 arta 1.11 # SUMEXP_PORTFMT "0"
136 arta 1.9
137 arta 1.11 # METH argument - The transfer program name (eg., scp-hpn)
138     #SUMEXP_METHFMT "%s", meth
139 arta 1.9
140     # USER argument - The user account name on the HOST containing the source file
141 arta 1.11 #SUMEXP_USERFMT "%s", user
142 arta 1.9
143     # HOST argument - The host machine containing the source file
144 arta 1.11 #SUMEXP_HOSTFMT "%s.%s", host, domain
145 arta 1.9
146     # PORT argument - The port on the host machine to connect to
147 arta 1.11 #SUMEXP_PORTFMT "%s", port
148    
149     __MAKE__
150    
151     # Third-party libraries required in order to make NetDRMS binaries. Specify
152     # a default and also machine-specific locations (if desired). The default will
153     # be used if no machine-specific entry exists.
154    
155     # *** PostgreSQL ***
156    
157     # defaults
158     # PostgreSQL API headers (must contain libpq-fe.h)
159     POSTGRES_INCS:X86_64 /usr/include
160     POSTGRES_INCS:IA32 /usr/include
161     # the location of the PostgreSQL libs; likely to be either
162     # /usr/lib or /usr/lib64 or /usr/local/pgsql/lib
163     POSTGRES_LIBS:X86_64 /usr/lib64
164     POSTGRES_LIBS:IA32 /usr/lib
165    
166     # actual library names
167     POSTGRES_LIB pq
168    
169     # machine-specific
170     # The following is an example:
171     # POSTGRES_LIBS:N02 /usr/lib64
172    
173     # *** end PostgreSQL ***
174    
175     # *** CFITSIO ***
176    
177     # defaults
178     # CFITSIO API headers (must contain fitsio.h)
179     CFITSIO_INCS:X86_64 /home/jsoc/include
180     CFITSIO_INCS:IA32 /home/jsoc/include
181    
182     # the location of the cfitsio libraries
183     CFITSIO_LIBS:X86_64 /home/jsoc/lib/linux-x86_64
184     CFITSIO_LIBS:IA32 /home/jsoc/lib/linux-ia32
185    
186     # actual library names
187     CFITSIO_LIB cfitsio
188    
189     # machine-specific
190     # The following is an example:
191     # CFITSIO_LIBS:N02 /usr/lib64
192    
193     # *** end CFITSIO ***
194 arta 1.12
195     # NetDRMS users can request subdirectories from the Stanford proj directories
196     # (e.g., JSOC/proj/util). These users will need to contact Stanford and obtain
197     # the source subdirectories desired. They will then place these subdirectories
198     # in the JSOC/proj directory of their NetDRMS release. To properly build
199     # targets in these subdirectories, using the JSOC make system, the user needs
200     # to add entries to this configuration file - one entry for each subdirectory
201     # that contains source code to be compiled. Each entry is a space-separated pair
202     # of strings: the string "PROJDIR" followed by a subdirectory (of the proj
203     # directory). For example:
204     #
205     # PROJDIR util/apps
206     # PROJDIR util/libs
207     #
208     # NOTE: It is not sufficient to list only a parent directory, like util. Source code
209     # in child directories will not automatically be compiled.