<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">

<!--

 Copyright 2008 filibeto.org, Stoyan Angelov (s_angelov@filibeto.org)
 All rights reserved.

 Use is subject to license terms.

 CDDL HEADER START

 The contents of this file are subject to the terms of the
 Common Development and Distribution License, Version 1.0 only
 (the "License").  You may not use this file except in compliance
 with the License.

 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 or http://www.opensolaris.org/os/licensing.
 See the License for the specific language governing permissions
 and limitations under the License.

 When distributing Covered Code, include this CDDL HEADER in each
 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 If applicable, add the following below this CDDL HEADER, with the
 fields enclosed by brackets "[]" replaced with your own identifying
 information: Portions Copyright [yyyy] [name of copyright owner]

 CDDL HEADER END

-->

<service_bundle type='manifest' name='qpopper'>

<service
	name='network/qpopper'
	type='service'
	version='1'>

	<create_default_instance enabled='false' />

	<single_instance />

	<dependency
		name='net-loopback'
		grouping='require_all'
		restart_on='none'
		type='service'>
		<service_fmri value='svc:/network/loopback' />
	</dependency>

	<dependency
		name='net-physical'
		grouping='require_all'
		restart_on='none'
		type='service'>
		<service_fmri value='svc:/network/physical' />
	</dependency>

	<dependency
		name='fs-local'
		grouping='require_all'
		restart_on='none'
		type='service'>
		<service_fmri value='svc:/system/filesystem/local' />
	</dependency>

	<exec_method
		name='start'
		type='method'
		exec='/lib/svc/method/qpopper %m'
		timeout_seconds='60' />

	<exec_method
		name='stop'
		type='method'
		exec=':kill'
		timeout_seconds='60' />

	<exec_method
		name='refresh'
		type='method'
		exec=':kill -HUP'
		timeout_seconds='60' />

	<property_group
		name='qpopper'
		type='application'>
		<propval
			name='bin'
			type='astring'
			value='/usr/local/sbin' />
		<propval
			name='config_dir'
			type='astring'
			value='/usr/local/etc' />
	</property_group>

	<stability value='Unstable' />

	<template>
		<common_name>
			<loctext xml:lang='C'>
			Qpopper POP3 daemon
			</loctext>
		</common_name>

		<description>
			<loctext xml:lang='C'>
			Qpopper enables a UNIX machine to act as a Post Office Protocol version 3 (POP) server.
			You may use this manifest (and the corresponding SMF method) to run Qpopper in "standalone mode",
			that is when the "--enable-standalone" configure option was used during compilation.
                        </loctext>
                </description>

		<documentation>
			<manpage title='popper'
				manpath='/usr/local/man' section='8' />
			<doc_link name='Qpopper page'
				uri='http://www.eudora.com/products/unsupported/qpopper/index.html' />
			<doc_link name='Qpopper documentation'
				uri='http://www.eudora.com/products/unsupported/qpopper/documentation.html' />
		</documentation>
	</template>

</service>

</service_bundle>

