1 (* HCoop
Domtool (http
://hcoop
.sourceforge
.net
/)
2 * Copyright (c
) 2007, Adam Chlipala
3 * Copyright (c
) 2014 Clinton Ebadi
<clinton@unknownlamer
.org
>
5 * This program is free software
; you can redistribute it
and/or
6 * modify it under the terms
of the GNU General Public License
7 * as published by the Free Software Foundation
; either version
2
8 * of the License
, or (at your option
) any later version
.
10 * This program is distributed
in the hope that it will be useful
,
11 * but WITHOUT ANY WARRANTY
; without even the implied warranty
of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
. See the
13 * GNU General Public License for more details
.
15 * You should have received a copy
of the GNU General Public License
16 * along
with this program
; if not
, write to the Free Software
17 * Foundation
, Inc
., 51 Franklin Street
, Fifth Floor
, Boston
, MA
02110-1301, USA
.
20 (* Derived directives
of general use
*)
22 structure EasyDomain
:> EASY_DOMAIN
= struct
26 val dl
= ErrorMsg
.dummyLoc
28 val _
= Defaults
.registerDefault ("WWW",
29 (TAction ((CConst
"Vhost", dl
),
31 StringMap
.empty
), dl
),
32 (fn () => (ESkip
, dl
)))
34 val _
= Defaults
.registerDefault ("CreateWWW",
36 (fn () => (EVar
"true", dl
)))
38 val _
= Defaults
.registerDefault ("DefaultA",
40 (fn () => (EVar
"true", dl
)))
42 val _
= Defaults
.registerDefault ("DefaultAlias",
44 (fn () => (EVar
"true", dl
)))
46 val _
= Defaults
.registerDefault ("DefaultAliasSource",
47 (TBase
"aliasSource", dl
),
48 (fn () => (EVar
"defaultSource", dl
)))
50 val _
= Defaults
.registerDefault ("HandleMail",
52 (fn () => (EVar
"true", dl
)))
54 val _
= Defaults
.registerDefault ("AddMX",
56 (fn () => (EVar
"true", dl
)))
58 val _
= Defaults
.registerDefault ("DefaultWebNode",
59 (TBase
"web_node", dl
),
60 (fn () => (EString
"navajos", dl
)))