<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!-- Copyright 1999-2016. Parallels IP Holdings GmbH. All Rights Reserved. -->
<!-- vim: set foldmethod=marker sw=4 ts=4: --> 

<!DOCTYPE package SYSTEM "package.dtd" []>

<package xmlns:xi="http://www.w3.org/2001/XInclude">
	<summary>Dovecot v&_VERSION_; secure IMAP and POP3 server</summary>
	<packager name="&__PACKAGER;" email="&__PACKAGER_EMAIL;" />
	<description>
		<line>Dovecot is a mail server whose major goals are security and extreme</line>
		<line>reliability. It tries very hard to handle all error conditions and verify</line>
		<line>that all data is valid, making it nearly impossible to crash. It should</line>
		<line>also be pretty fast, extensible, and portable.</line>
		<line></line>
		<line>This package is a standalone version for use with &__PRODNAME_MNEMONIC;.</line>
	</description>

	<version>&_VERSION_;</version>
	<release>&_RELEASE_;</release>
	<license>MIT and LGPLv2.1</license>
	<vendor>&_VENDOR_;</vendor>
	<url>&__PRODVENDOR_URL;</url>

	<architecture target="default" />
	<autoreqprov val="yes" />

	<files>
		<attr mode="-" uid="root" gid="root" />
		<file type="dir" name="&__DOVECOT_CONFDIR;/private" >
			<!-- certificate storage -->
			<attr mode="700" uid="&__ROOT_UID;" gid="&__ROOT_GID;" />
		</file>
		<file name="&__DOVECOT_CONFDIR;/dovecot.conf" />
		<file type="dir" name="&__DOVECOT_INCLUDE_DIR;" />
		<file name="&__DOVECOT_INCLUDE_DIR;/*" />
		<file name="&__DOVECOT_DIST_CONFDIR;/*" />
		<file type="config" name="&__SERVICE_CONFIG;" />
		<file name="&__INIT_SCRIPT;" />
		<file name="&__SYSTEMD_POLICY;" />
		<file type="dir" name="&__DOVECOT_VAR_RUN_DIR;" >
			<attr mode="755" uid="&__ROOT_UID;" gid="&__DOVECOT_USERGROUP;" />
		</file>
		<file type="dir" name="&__DOVECOT_VAR_LIB_DIR;" >
			<attr mode="750" uid="&__DOVECOT_USERGROUP;" gid="&__DOVECOT_USERGROUP;" />
		</file>
		<file type="dir" name="&__DOVECOT_VAR_RUN_LOGIN_DIR;" >
			<attr mode="750" uid="&__ROOT_UID;" gid="&__DOVECOT_LOGIN_USERGROUP;" />
		</file>
	</files>

	<subpackage alias="core">
		<summary>Dovecot v&_VERSION_; secure IMAP and POP3 server core files</summary>
		<description>
			<line>Dovecot is a mail server whose major goals are security and extreme</line>
			<line>reliability. It tries very hard to handle all error conditions and verify</line>
			<line>that all data is valid, making it nearly impossible to crash. It should</line>
			<line>also be pretty fast, extensible, and portable.</line>
			<line></line>
			<line>This package is a standalone version for use with &__PRODNAME_MNEMONIC;.</line>
			<line>It provides core binaries and file layout of Dovecot.</line>
		</description>

		<!-- IMPORTANT: ship only files in this package, since it will be installed on builders as well. -->

		<files>
			<attr mode="-" uid="root" gid="root" />
			<file name="&__MANDIR;/*" />
			<file name="&__DOCDIR;/dovecot/*" />
			<file name="&__BINDIR;/*" />
			<file name="&__SBINDIR;/*" />
			<file type="dir" name="&__SYSCONFDIR;/dovecot" />
			<file type="dir" name="&__LIBDIR;/dovecot" />
			<file name="&__LIBDIR;/dovecot/*.so.*" />
			<file name="&__LIBEXECDIR;/dovecot/modules/lib*.so" />
			<file name="&__LIBEXECDIR;/dovecot/modules/*/lib*.so" />
			<file name="&__LIBEXECDIR;/dovecot/imap-hibernate" />
			<file name="&__SHAREDIR;/dovecot/stopwords/*" />

			<!-- Everything in $LIBEXECDIR/dovecot except for dovecot-config, modules/, and library files goes here. -->
			<!-- [[[cog
					# To update the generated code just run:
					# $ cog.py -ecr package.xml

					import cog
					files = "aggregator anvil auth checkpassword-reply config decode2text.sh deliver dict director dns-client doveadm-server dovecot-lda gdbhelper imap imap-login imap-urlauth imap-urlauth-login imap-urlauth-worker indexer indexer-worker ipc lmtp log maildirlock pop3 pop3-login quota-status rawlog replicator script script-login ssl-params stats xml2text"
					for file in files.split():
						cog.outl('<file name="&__LIBEXECDIR;/dovecot/%s" />' % file)
				]]] -->
			<file name="&__LIBEXECDIR;/dovecot/aggregator" />
			<file name="&__LIBEXECDIR;/dovecot/anvil" />
			<file name="&__LIBEXECDIR;/dovecot/auth" />
			<file name="&__LIBEXECDIR;/dovecot/checkpassword-reply" />
			<file name="&__LIBEXECDIR;/dovecot/config" />
			<file name="&__LIBEXECDIR;/dovecot/decode2text.sh" />
			<file name="&__LIBEXECDIR;/dovecot/deliver" />
			<file name="&__LIBEXECDIR;/dovecot/dict" />
			<file name="&__LIBEXECDIR;/dovecot/director" />
			<file name="&__LIBEXECDIR;/dovecot/dns-client" />
			<file name="&__LIBEXECDIR;/dovecot/doveadm-server" />
			<file name="&__LIBEXECDIR;/dovecot/dovecot-lda" />
			<file name="&__LIBEXECDIR;/dovecot/gdbhelper" />
			<file name="&__LIBEXECDIR;/dovecot/imap" />
			<file name="&__LIBEXECDIR;/dovecot/imap-login" />
			<file name="&__LIBEXECDIR;/dovecot/imap-urlauth" />
			<file name="&__LIBEXECDIR;/dovecot/imap-urlauth-login" />
			<file name="&__LIBEXECDIR;/dovecot/imap-urlauth-worker" />
			<file name="&__LIBEXECDIR;/dovecot/indexer" />
			<file name="&__LIBEXECDIR;/dovecot/indexer-worker" />
			<file name="&__LIBEXECDIR;/dovecot/ipc" />
			<file name="&__LIBEXECDIR;/dovecot/lmtp" />
			<file name="&__LIBEXECDIR;/dovecot/log" />
			<file name="&__LIBEXECDIR;/dovecot/maildirlock" />
			<file name="&__LIBEXECDIR;/dovecot/pop3" />
			<file name="&__LIBEXECDIR;/dovecot/pop3-login" />
			<file name="&__LIBEXECDIR;/dovecot/quota-status" />
			<file name="&__LIBEXECDIR;/dovecot/rawlog" />
			<file name="&__LIBEXECDIR;/dovecot/replicator" />
			<file name="&__LIBEXECDIR;/dovecot/script" />
			<file name="&__LIBEXECDIR;/dovecot/script-login" />
			<file name="&__LIBEXECDIR;/dovecot/ssl-params" />
			<file name="&__LIBEXECDIR;/dovecot/stats" />
			<file name="&__LIBEXECDIR;/dovecot/xml2text" />
			<!-- [[[end]]] (checksum: 0a153a5de2d2fddf7ed0367376b618ec) -->
		</files>
	</subpackage>

	<subpackage alias="devel">
		<summary>Development libraries and header files for the Dovecot mail server</summary>
		<description>
			<line>This package contains header files and other development files needed to </line>
			<line>compile plugins for the Dovecot mail server.</line>
			<line>Files in this package are not needed at runtime.</line>
			<line></line>
			<line>The package is used to compile Plesk custom Dovecot auth module.</line>
		</description>

		<files>
			<attr mode="-" uid="root" gid="root" />
			<file name="&__SHAREDIR;/aclocal/*" />
			<file name="&__INCLUDEDIR;/*" />
			<file type="dir" name="&__LIBDIR;/dovecot" />
			<file name="&__LIBDIR;/dovecot/dovecot-config" />
			<file name="&__LIBDIR;/dovecot/*.la" />
			<file name="&__LIBDIR;/dovecot/*.so" />
			<file name="&__LIBEXECDIR;/dovecot/modules/lib*.la" />
			<file name="&__LIBEXECDIR;/dovecot/modules/*/lib*.la" />
		</files>
	</subpackage>

	<xi:include href="component.xml" />
</package>
