diff options
author | jperkin <jperkin@pkgsrc.org> | 2014-03-11 14:34:36 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2014-03-11 14:34:36 +0000 |
commit | 30ff9a3c34485e532105b167d6b5496c99da9e1e (patch) | |
tree | 7ee5b13abb9f96749121a307db970b8b85e953da /mail | |
parent | 44defc51cc7a3e6fb9a76073078e8c92bb29dd7c (diff) | |
download | pkgsrc-30ff9a3c34485e532105b167d6b5496c99da9e1e.tar.gz |
Import initial SMF support for individual packages.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/amavisd-new/Makefile | 3 | ||||
-rw-r--r-- | mail/amavisd-new/files/smf/manifest.xml | 39 | ||||
-rw-r--r-- | mail/courier-imap/Makefile | 3 | ||||
-rw-r--r-- | mail/courier-imap/files/smf/courier-imap.sh | 122 | ||||
-rw-r--r-- | mail/courier-imap/files/smf/manifest.xml | 43 | ||||
-rw-r--r-- | mail/dovecot/files/smf/manifest.xml | 34 | ||||
-rw-r--r-- | mail/dovecot2/Makefile | 3 | ||||
-rw-r--r-- | mail/dovecot2/files/smf/manifest.xml | 34 | ||||
-rw-r--r-- | mail/mailman/files/smf/manifest.xml | 27 | ||||
-rw-r--r-- | mail/postfix/files/smf/manifest.xml | 43 | ||||
-rw-r--r-- | mail/postgrey/Makefile | 5 | ||||
-rw-r--r-- | mail/postgrey/files/smf/manifest.xml | 51 | ||||
-rw-r--r-- | mail/sendmail/files/smf/manifest.xml | 41 |
13 files changed, 444 insertions, 4 deletions
diff --git a/mail/amavisd-new/Makefile b/mail/amavisd-new/Makefile index 9d326252f2c..ad43a1001a3 100644 --- a/mail/amavisd-new/Makefile +++ b/mail/amavisd-new/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2013/12/09 14:17:48 obache Exp $ +# $NetBSD: Makefile,v 1.12 2014/03/11 14:34:38 jperkin Exp $ DISTNAME= amavisd-new-${VERSION}${PATCHLEVEL} PKGNAME= amavisd-new-${VERSION}${PATCHLEVEL:S/-//} @@ -75,6 +75,7 @@ OWN_DIRS_PERMS+= ${AMAVIS_DIR}/tmp ${AMAVIS_USER} ${AMAVIS_GROUP} 750 OWN_DIRS_PERMS+= ${AMAVIS_QUARANTINE} ${AMAVIS_USER} ${AMAVIS_GROUP} 750 RCD_SCRIPTS= amavisd +SMF_NAME= amavisd CONF_FILES= ${EGDIR}/amavisd.conf-minimal ${PKG_SYSCONFDIR}/amavisd.conf PKG_OPTIONS_VAR= PKG_OPTIONS.amavisd-new diff --git a/mail/amavisd-new/files/smf/manifest.xml b/mail/amavisd-new/files/smf/manifest.xml new file mode 100644 index 00000000000..5178d250563 --- /dev/null +++ b/mail/amavisd-new/files/smf/manifest.xml @@ -0,0 +1,39 @@ +<?xml version="1.0"?> +<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> +<service_bundle type="manifest" name="@SMF_NAME@"> + <service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="1"> + <create_default_instance enabled="false" /> + <single_instance /> + <dependency name='fs-local' grouping='require_all' restart_on='none' type='service'> + <service_fmri value='svc:/system/filesystem/local' /> + </dependency> + <dependency name='loopback' grouping='require_all' restart_on='error' type='service'> + <service_fmri value='svc:/network/loopback:default' /> + </dependency> + <dependency name='physical' grouping='require_all' restart_on='error' type='service'> + <service_fmri value='svc:/network/physical:default' /> + </dependency> + <dependency name='name-services' grouping='require_all' restart_on='refresh' type='service'> + <service_fmri value='svc:/milestone/name-services' /> + </dependency> + <dependency name='system-log' grouping='optional_all' restart_on='none' type='service'> + <service_fmri value='svc:/system/system-log' /> + </dependency> + <exec_method type="method" name="start" exec="@PREFIX@/sbin/amavisd start" timeout_seconds="60" /> + <exec_method type="method" name="stop" exec="@PREFIX@/sbin/amavisd stop" timeout_seconds="120" /> + <exec_method type="method" name="refresh" exec="@PREFIX@/sbin/amavisd reload" timeout_seconds="60" /> + <property_group name="startd" type="framework"> + <propval name="duration" type="astring" value="contract" /> + <propval name="ignore_error" type="astring" value="core,signal" /> + </property_group> + <property_group name="application" type="application"> + <propval name="config_file" type="astring" value="@PKG_SYSCONFDIR@/amavisd.conf" /> + </property_group> + <stability value="Evolving" /> + <template> + <common_name> + <loctext xml:lang="C">Amavisd</loctext> + </common_name> + </template> + </service> +</service_bundle> diff --git a/mail/courier-imap/Makefile b/mail/courier-imap/Makefile index f2502e4be77..96b06ad356a 100644 --- a/mail/courier-imap/Makefile +++ b/mail/courier-imap/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.78 2013/07/12 10:44:55 jperkin Exp $ +# $NetBSD: Makefile,v 1.79 2014/03/11 14:34:38 jperkin Exp $ DISTNAME= courier-imap-4.10.0 PKGREVISION= 3 @@ -52,6 +52,7 @@ CONF_FILES_PERMS+= ${EGDIR}/${_file_} \ ${COURIER_FILE_PERMS} .endfor RCD_SCRIPTS= courierimap courierimaps courierpop courierpops +SMF_METHODS= courier-imap SUBST_CLASSES+= courier SUBST_FILES.courier= imap/imapd-ssl.dist.in imap/imapd.8.in \ diff --git a/mail/courier-imap/files/smf/courier-imap.sh b/mail/courier-imap/files/smf/courier-imap.sh new file mode 100644 index 00000000000..2f4dc767178 --- /dev/null +++ b/mail/courier-imap/files/smf/courier-imap.sh @@ -0,0 +1,122 @@ +#!@SMF_METHOD_SHELL@ +# +# $NetBSD: courier-imap.sh,v 1.1 2014/03/11 14:34:38 jperkin Exp $ +# +# Init script for Courier-IMAP. +# + +. /lib/svc/share/smf_include.sh + +prefix=@PREFIX@ +exec_prefix=@PREFIX@ +bindir=${exec_prefix}/bin +sbindir=${exec_prefix}/sbin + +case "$1" in +start) + cd / + . $prefix/etc/courier/imapd + + printf "Starting Courier-IMAP server:" + + case x$IMAPDSTART in + x[yY]*) + # Start daemons. + $sbindir/imapd start + printf "\n imap" + ;; + esac + + . $prefix/etc/courier/imapd-ssl + case x$IMAPDSSLSTART in + x[yY]*) + if test -x $COURIERTLS + then + + # First time we start this, generate a dummy SSL certificate. + + if test ! -f $TLS_CERTFILE + then + printf "\n generating-SSL-certificate..." + $prefix/share/courier/mkimapdcert >/dev/null 2>&1 + fi + $sbindir/imapd-ssl start + printf "\n imap-ssl" + fi + ;; + esac + + POP3DSTART="" + POP3DSSLSTART="" + + if test -f $prefix/etc/courier/pop3d + then + . $prefix/etc/courier/pop3d + fi + + case x$POP3DSTART in + x[yY]*) + # Start daemons. + $sbindir/pop3d start + printf "\n pop3" + ;; + esac + + if test -f $prefix/etc/courier/pop3d-ssl + then + . $prefix/etc/courier/pop3d-ssl + fi + + case x$POP3DSSLSTART in + x[yY]*) + if test -x $COURIERTLS + then + + # First time we start this, generate a dummy SSL certificate. + + if test ! -f $TLS_CERTFILE + then + printf "\n generating-SSL-certificate..." + $prefix/share/courier/mkpop3dcert >/dev/null 2>&1 + fi + $sbindir/pop3d-ssl start + printf "\n pop3-ssl" + fi + ;; + esac + + echo "" + ;; +stop) + printf "Stopping Courier-IMAP server:" + . $prefix/etc/courier/imapd + . $prefix/etc/courier/imapd-ssl + $sbindir/imapd stop + printf "\n imap" + if test -x $COURIERTLS + then + $sbindir/imapd-ssl stop + printf "\n imap-ssl" + fi + + if test -f $prefix/etc/courier/pop3d + then + $sbindir/pop3d stop + printf "\n pop3" + + if test -x $COURIERTLS + then + $sbindir/pop3d-ssl stop + printf "\n pop3-ssl" + fi + fi + + echo "" + ;; +restart) + $0 stop + sleep 3 + $0 start + ;; +esac +exit 0 diff --git a/mail/courier-imap/files/smf/manifest.xml b/mail/courier-imap/files/smf/manifest.xml new file mode 100644 index 00000000000..06c7fff895d --- /dev/null +++ b/mail/courier-imap/files/smf/manifest.xml @@ -0,0 +1,43 @@ +<?xml version='1.0'?> +<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> +<service_bundle type='manifest' name='@SMF_NAME@'> + <service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='1'> + <dependency name='fs-local' grouping='require_all' restart_on='none' type='service'> + <service_fmri value='svc:/system/filesystem/local' /> + </dependency> + <dependency name='network-service' grouping='require_all' restart_on='none' type='service'> + <service_fmri value='svc:/network/service' /> + </dependency> + <dependency name='system-log' grouping='optional_all' restart_on='none' type='service'> + <service_fmri value='svc:/system/system-log' /> + </dependency> + <instance name='@SMF_INSTANCE@' enabled='false'> + <dependency name='config-files' grouping='require_any' restart_on='refresh' type='path'> + <service_fmri value='file://localhost@PKG_SYSCONFDIR@/pop3d-ssl' /> + <service_fmri value='file://localhost@PKG_SYSCONFDIR@/pop3d' /> + <service_fmri value='file://localhost@PKG_SYSCONFDIR@/imapd-ssl' /> + <service_fmri value='file://localhost@PKG_SYSCONFDIR@/imapd' /> + </dependency> + <dependency name='authlib' grouping='require_all' restart_on='none' type='service'> + <service_fmri value='svc:/@SMF_PREFIX@/courier:authlib' /> + </dependency> + <exec_method name='start' type='method' exec='@PREFIX@/@SMF_METHOD_FILE.courier-imap@ start' timeout_seconds='120' /> + <exec_method name='stop' type='method' exec='@PREFIX@/@SMF_METHOD_FILE.courier-imap@ stop' timeout_seconds='60' /> + <property_group name='startd' type='framework'> + <propval name='ignore_error' type='astring' value='core,signal' /> + </property_group> + <property_group name='general' type='framework'> + <propval name='action_authorization' type='astring' value='solaris.smf.manage.courier-imap' /> + </property_group> + <template> + <common_name> + <loctext xml:lang='C'>imap - Courier IMAP provides access to Maildirs</loctext> + </common_name> + <documentation> + <manpage title='imapd' section='8' manpath='@PREFIX@/@PKGMANDIR@' /> + </documentation> + </template> + </instance> + <stability value='Evolving' /> + </service> +</service_bundle> diff --git a/mail/dovecot/files/smf/manifest.xml b/mail/dovecot/files/smf/manifest.xml new file mode 100644 index 00000000000..714f9739a27 --- /dev/null +++ b/mail/dovecot/files/smf/manifest.xml @@ -0,0 +1,34 @@ +<?xml version="1.0"?> +<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> +<service_bundle type="manifest" name="@SMF_NAME@"> + <service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="1"> + <create_default_instance enabled="false" /> + <single_instance /> + <dependency name="network" grouping="require_all" restart_on="error" type="service"> + <service_fmri value="svc:/milestone/network:default" /> + </dependency> + <dependency name="filesystem" grouping="require_all" restart_on="error" type="service"> + <service_fmri value="svc:/system/filesystem/local" /> + </dependency> + <method_context> + <method_environment> + <envvar name="MASTER_IS_PARENT_ENV" value="1" /> + </method_environment> + </method_context> + <exec_method type="method" name="start" exec="@PREFIX@/sbin/dovecot" timeout_seconds="60" /> + <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60" /> + <property_group name="startd" type="framework"> + <propval name="duration" type="astring" value="contract" /> + <propval name="ignore_error" type="astring" value="core,signal" /> + </property_group> + <property_group name="application" type="application"> + <propval name="config_file" type="astring" value="@PKG_SYSCONFDIR@/dovecot/dovecot.conf" /> + </property_group> + <stability value="Evolving" /> + <template> + <common_name> + <loctext xml:lang="C">Dovecot IMAP Server</loctext> + </common_name> + </template> + </service> +</service_bundle> diff --git a/mail/dovecot2/Makefile b/mail/dovecot2/Makefile index 8f03b5c29be..e41ed61c9f3 100644 --- a/mail/dovecot2/Makefile +++ b/mail/dovecot2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.59 2014/02/19 15:29:23 taca Exp $ +# $NetBSD: Makefile,v 1.60 2014/03/11 14:34:38 jperkin Exp $ DISTNAME= dovecot-2.2.12 CATEGORIES= mail @@ -21,6 +21,7 @@ CONFIGURE_ARGS+= --with-ssldir=${SSLDIR} .include "../../mk/bsd.prefs.mk" RCD_SCRIPTS= dovecot +SMF_NAME= dovecot DOVECOT_USER?= dovecot DOVECOT_GROUP?= dovecot diff --git a/mail/dovecot2/files/smf/manifest.xml b/mail/dovecot2/files/smf/manifest.xml new file mode 100644 index 00000000000..714f9739a27 --- /dev/null +++ b/mail/dovecot2/files/smf/manifest.xml @@ -0,0 +1,34 @@ +<?xml version="1.0"?> +<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> +<service_bundle type="manifest" name="@SMF_NAME@"> + <service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="1"> + <create_default_instance enabled="false" /> + <single_instance /> + <dependency name="network" grouping="require_all" restart_on="error" type="service"> + <service_fmri value="svc:/milestone/network:default" /> + </dependency> + <dependency name="filesystem" grouping="require_all" restart_on="error" type="service"> + <service_fmri value="svc:/system/filesystem/local" /> + </dependency> + <method_context> + <method_environment> + <envvar name="MASTER_IS_PARENT_ENV" value="1" /> + </method_environment> + </method_context> + <exec_method type="method" name="start" exec="@PREFIX@/sbin/dovecot" timeout_seconds="60" /> + <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60" /> + <property_group name="startd" type="framework"> + <propval name="duration" type="astring" value="contract" /> + <propval name="ignore_error" type="astring" value="core,signal" /> + </property_group> + <property_group name="application" type="application"> + <propval name="config_file" type="astring" value="@PKG_SYSCONFDIR@/dovecot/dovecot.conf" /> + </property_group> + <stability value="Evolving" /> + <template> + <common_name> + <loctext xml:lang="C">Dovecot IMAP Server</loctext> + </common_name> + </template> + </service> +</service_bundle> diff --git a/mail/mailman/files/smf/manifest.xml b/mail/mailman/files/smf/manifest.xml new file mode 100644 index 00000000000..67c0516c6cf --- /dev/null +++ b/mail/mailman/files/smf/manifest.xml @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> +<service_bundle type="manifest" name="@SMF_NAME@"> + <service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="1"> + <create_default_instance enabled="false" /> + <single_instance /> + <dependency name="network" grouping="require_all" restart_on="error" type="service"> + <service_fmri value="svc:/milestone/network:default" /> + </dependency> + <dependency name="filesystem" grouping="require_all" restart_on="error" type="service"> + <service_fmri value="svc:/system/filesystem/local" /> + </dependency> + <method_context></method_context> + <exec_method type="method" name="start" exec="@PREFIX@/lib/mailman/bin/mailmanctl -s start" timeout_seconds="60" /> + <exec_method type="method" name="stop" exec="@PREFIX@/lib/mailman/bin/mailmanctl stop" timeout_seconds="60" /> + <property_group name="startd" type="framework"> + <propval name="duration" type="astring" value="contract" /> + <propval name="ignore_error" type="astring" value="core,signal" /> + </property_group> + <stability value="Evolving" /> + <template> + <common_name> + <loctext xml:lang="C">Mailman Master</loctext> + </common_name> + </template> + </service> +</service_bundle> diff --git a/mail/postfix/files/smf/manifest.xml b/mail/postfix/files/smf/manifest.xml new file mode 100644 index 00000000000..68029cd3bb2 --- /dev/null +++ b/mail/postfix/files/smf/manifest.xml @@ -0,0 +1,43 @@ +<?xml version='1.0'?> +<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> +<service_bundle type='manifest' name='@SMF_NAME@'> + <service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='1'> + <create_default_instance enabled="false" /> + <single_instance /> + <dependency name='fs-local' grouping='require_all' restart_on='none' type='service'> + <service_fmri value='svc:/system/filesystem/local' /> + </dependency> + <dependency name='loopback' grouping='require_all' restart_on='error' type='service'> + <service_fmri value='svc:/network/loopback:default' /> + </dependency> + <dependency name='physical' grouping='require_all' restart_on='error' type='service'> + <service_fmri value='svc:/network/physical:default' /> + </dependency> + <dependency name='name-services' grouping='require_all' restart_on='refresh' type='service'> + <service_fmri value='svc:/milestone/name-services' /> + </dependency> + <dependency name='system-log' grouping='optional_all' restart_on='none' type='service'> + <service_fmri value='svc:/system/system-log' /> + </dependency> + <dependency name='config-files' grouping='require_all' restart_on='refresh' type='path'> + <service_fmri value='file://@PKG_SYSCONFDIR@/main.cf' /> + <service_fmri value='file://@PKG_SYSCONFDIR@/master.cf' /> + </dependency> + <exec_method name='start' type='method' exec='@PREFIX@/sbin/postfix start' timeout_seconds='60' /> + <exec_method name='stop' type='method' exec='@PREFIX@/sbin/postfix stop' timeout_seconds='60' /> + <exec_method name='refresh' type='method' exec='@PREFIX@/sbin/postfix reload' timeout_seconds='60' /> + <property_group name='startd' type='framework'> + <propval name='ignore_error' type='astring' value='core,signal' /> + </property_group> + <stability value='Evolving' /> + <template> + <common_name> + <loctext xml:lang='C'>Postfix SMTP Server</loctext> + </common_name> + <documentation> + <manpage title='postfix' section='1' /> + <doc_link name='postfix.org' uri='http://www.postfix.org/documentation.html' /> + </documentation> + </template> + </service> +</service_bundle> diff --git a/mail/postgrey/Makefile b/mail/postgrey/Makefile index 22bde8673a7..e0bd5ea158e 100644 --- a/mail/postgrey/Makefile +++ b/mail/postgrey/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.39 2013/08/21 16:15:58 wiz Exp $ +# $NetBSD: Makefile,v 1.40 2014/03/11 14:34:38 jperkin Exp $ DISTNAME= postgrey-1.34 CATEGORIES= mail @@ -47,6 +47,9 @@ OWN_DIRS_PERMS+= ${POSTGREY_DBDIR} \ ${POSTGREY_USER} ${POSTGREY_GROUP} 0775 FILES_SUBST+= PERL=${PERL5:Q} +FILES_SUBST+= POSTGREY_USER=${POSTGREY_USER} +FILES_SUBST+= POSTGREY_GROUP=${POSTGREY_GROUP} +FILES_SUBST+= POSTGREY_DBDIR=${POSTGREY_DBDIR} SUBST_CLASSES+= postgrey SUBST_STAGE.postgrey= pre-build diff --git a/mail/postgrey/files/smf/manifest.xml b/mail/postgrey/files/smf/manifest.xml new file mode 100644 index 00000000000..eeff27af2b2 --- /dev/null +++ b/mail/postgrey/files/smf/manifest.xml @@ -0,0 +1,51 @@ +<?xml version='1.0'?> +<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> +<service_bundle type='manifest' name='@SMF_NAME@'> + <service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='1'> + <create_default_instance enabled="false" /> + <single_instance /> + <dependency name='fs-local' grouping='require_all' restart_on='none' type='service'> + <service_fmri value='svc:/system/filesystem/local' /> + </dependency> + <dependency name='loopback' grouping='require_all' restart_on='error' type='service'> + <service_fmri value='svc:/network/loopback:default' /> + </dependency> + <dependency name='physical' grouping='require_all' restart_on='error' type='service'> + <service_fmri value='svc:/network/physical:default' /> + </dependency> + <dependency name='name-services' grouping='require_all' restart_on='refresh' type='service'> + <service_fmri value='svc:/milestone/name-services' /> + </dependency> + <dependency name='system-log' grouping='optional_all' restart_on='none' type='service'> + <service_fmri value='svc:/system/system-log' /> + </dependency> + <dependency name='config-file' grouping='require_all' restart_on='none' type='path'> + <service_fmri value='file://@PKG_SYSCONFDIR@/postgrey_whitelist_clients' /> + </dependency> + <method_context working_directory='@POSTGREY_DBDIR@'> + <method_credential user='@POSTGREY_USER@' group='@POSTGREY_GROUP@' /> + </method_context> + <exec_method name='start' type='method' exec='@PREFIX@/sbin/postgrey --daemonize --privacy --inet=%{postgrey/port} %{postgrey/targrey} --tarpit=%{postgrey/tarpit} --pidfile=@POSTGREY_DBDIR@/postgrey.pid --greylist-action=%{postgrey/action} --greylist-text=%{postgrey/text} --delay=%{postgrey/delay} --max-age=%{postgrey/maxage} --retry-window=%{postgrey/retry}' timeout_seconds='30' /> + <exec_method name='stop' type='method' exec=':kill' timeout_seconds='30' /> + <property_group name='postgrey' type='application'> + <propval name='port' type='integer' value='10025'/> + <propval name='targrey' type='astring' value='--targrey'/> + <propval name='tarpit' type='integer' value='35'/> + <propval name='maxage' type='integer' value='35'/> + <propval name='delay' type='integer' value='300'/> + <propval name='retry' type='integer' value='2'/> + <propval name='action' type='astring' value='DEFER_IF_PERMIT'/> + <propval name='text' type='astring' value='Policy restrictions; try later'/> + </property_group> + <stability value='Unstable' /> + <template> + <common_name> + <loctext xml:lang='C'>Postgrey Greylisting for Postfix</loctext> + </common_name> + <documentation> + <manpage title='postgrey' section='1' /> + <doc_link name='postgrey website' uri='http://postgrey.schweikert.ch' /> + </documentation> + </template> + </service> +</service_bundle> diff --git a/mail/sendmail/files/smf/manifest.xml b/mail/sendmail/files/smf/manifest.xml new file mode 100644 index 00000000000..6b97beabd20 --- /dev/null +++ b/mail/sendmail/files/smf/manifest.xml @@ -0,0 +1,41 @@ +<?xml version='1.0'?> +<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> +<service_bundle type='manifest' name='@SMF_NAME@'> + <service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='0'> + <create_default_instance enabled="false" /> + <single_instance /> + <dependency name='fs-local' grouping='require_all' restart_on='none' type='service'> + <service_fmri value='svc:/system/filesystem/local' /> + </dependency> + <dependency name='loopback' grouping='require_all' restart_on='error' type='service'> + <service_fmri value='svc:/network/loopback:default' /> + </dependency> + <dependency name='physical' grouping='require_all' restart_on='error' type='service'> + <service_fmri value='svc:/network/physical:default' /> + </dependency> + <dependency name='name-services' grouping='require_all' restart_on='refresh' type='service'> + <service_fmri value='svc:/milestone/name-services' /> + </dependency> + <dependency name='system-log' grouping='optional_all' restart_on='none' type='service'> + <service_fmri value='svc:/system/system-log' /> + </dependency> + <dependency name='config-files' grouping='require_all' restart_on='refresh' type='path'> + <service_fmri value='file:///etc/mail/sendmail.cf' /> + </dependency> + <exec_method name='start' type='method' exec='@PREFIX@/libexec/sendmail/sendmail -Lsm-mta -bd -q30m' timeout_seconds='60' /> + <exec_method name='stop' type='method' exec=':kill' timeout_seconds='60' /> + <property_group name='startd' type='framework'> + <propval name='ignore_error' type='astring' value='core,signal' /> + </property_group> + <stability value='Evolving' /> + <template> + <common_name> + <loctext xml:lang='C'>Sendmail SMTP Server</loctext> + </common_name> + <documentation> + <manpage title='sendmail' section='8' /> + <doc_link name='sendmail.com' uri='http://www.sendmail.com/sm/open_source/docs/' /> + </documentation> + </template> + </service> +</service_bundle> |