ffmpeg-6: fix COMPONENT_REVISION
[oi-userland.git] / components / perl / Mail-SpamAssassin / files / spamassassin.xml
blobdc58532665a1769d67b29efafd0fb28204624c2f
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 <!--
4     CDDL HEADER START
5    
6     The contents of this file are subject to the terms of the
7     Common Development and Distribution License (the "License").
8     You may not use this file except in compliance with the License.
9    
10     You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11     or http://www.opensolaris.org/os/licensing.
12     See the License for the specific language governing permissions
13     and limitations under the License.
14    
15     When distributing Covered Code, include this CDDL HEADER in each
16     file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17     If applicable, add the following below this CDDL HEADER, with the
18     fields enclosed by brackets "[]" replaced with your own identifying
19     information: Portions Copyright [yyyy] [name of copyright owner]
20    
21     CDDL HEADER END
22    
23     Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24     Use is subject to license terms.
26     NOTE:  This service manifest is not editable; its contents will
27     be overwritten by package or patch operations, including
28     operating system upgrade.  Make customizations in a different
29     file.
30 -->
32 <service_bundle type='manifest' name='spamassassin'>
34 <service
35         name='network/spamassassin'
36         type='service'
37         version='1'>
39         <single_instance />
41         <dependency
42             name='fs-local'
43             grouping='require_all'
44             restart_on='none'
45             type='service'>
46                 <service_fmri value='svc:/system/filesystem/local' />
47         </dependency>
49         <dependency
50             name='network-service'
51             grouping='require_all'
52             restart_on='none'
53             type='service'>
54                 <service_fmri value='svc:/network/service' />
55         </dependency>
57         <dependency
58             name='name-services'
59             grouping='require_all'
60             restart_on='refresh'
61             type='service'>
62                 <service_fmri value='svc:/milestone/name-services' />
63         </dependency>
65         <dependency
66             name='identity'
67             grouping='optional_all'
68             restart_on='refresh'
69             type='service'>
70                 <service_fmri value='svc:/system/identity:domain' />
71         </dependency>
73         <dependency
74             name='system-log'
75             grouping='optional_all'
76             restart_on='none'
77             type='service'>
78                 <service_fmri value='svc:/system/system-log' />
79         </dependency>
81         <property_group name='firewall_context' type='com.sun,fw_definition'>
82                 <propval name='name' type='astring' value='smtp' />
83         </property_group>
85         <property_group name='firewall_config' type='com.sun,fw_configuration'>
86                 <propval name='policy' type='astring' value='use_global' />
87                 <propval name='apply_to' type='astring' value='' />
88                 <propval name='exceptions' type='astring' value='' />
89                 <propval name='value_authorization' type='astring'
90                         value='solaris.smf.value.firewall.config' />
91         </property_group>
93         <instance name='spamassassin' enabled='false'>
95                 <dependency
96                     name='config-file'
97                     grouping='require_all'
98                     restart_on='refresh'
99                     type='path'>
100                         <service_fmri
101                             value='file://localhost/etc/mail/spamassassin/local.cf' />
102                 </dependency>
104                 <dependency
105                     name='nsswitch'
106                     grouping='require_all'
107                     restart_on='refresh'
108                     type='path'>
109                         <service_fmri
110                             value='file://localhost/etc/nsswitch.conf' />
111                 </dependency>
113                 <!--
114                 If autofs is enabled, wait for it to get users' home
115                 directories.
116                 -->
117                 <dependency
118                     name='autofs'
119                     grouping='optional_all'
120                     restart_on='none'
121                     type='service'>
122                         <service_fmri value='svc:/system/filesystem/autofs' />
123                 </dependency>
125                 <dependent
126                         name='spamassassin_multi-user'
127                         grouping='optional_all'
128                         restart_on='none'>
129                                 <service_fmri
130                                     value='svc:/milestone/multi-user' />
131                 </dependent>
133                 <exec_method
134                         type='method'
135                         name='start'
136                         exec='/lib/svc/method/spamassassin start'
137                         timeout_seconds='120' />
139                 <exec_method
140                         type='method'
141                         name='stop'
142                         exec='/lib/svc/method/spamassassin stop %{restarter/contract}'
143                         timeout_seconds='60' />
145                 <exec_method
146                         type='method'
147                         name='refresh'
148                         exec='/lib/svc/method/spamassassin refresh'
149                         timeout_seconds='60' />
151                 <property_group name='startd' type='framework'>
152                         <propval name='ignore_error' type='astring'
153                             value='core,signal' />
154                 </property_group>
156                 <property_group name='general' type='framework'>
157                         <propval name='action_authorization' type='astring'
158                                 value='solaris.smf.manage.spamassassin' />
159                 </property_group>
161                 <template>
162                         <common_name>
163                                 <loctext xml:lang='C'>
164                                 spamassassin The Powerful #1 Open-Source Spam Filter
165                                 </loctext>
166                         </common_name>
167                         <documentation>
168                                 <manpage title='spamassassin' section='1M'
169                                     manpath='/usr/share/man' />
170                         </documentation>
171                 </template>
173         </instance>
175         <stability value='Unstable' />
177 </service>
179 </service_bundle>