#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2016 Adam Stevko
#

<transform file path=usr/lib/postfix/.+ -> default mode 0555>
<transform dir path=var/spool/postfix/.+ -> default mode 0700>
<transform dir path=var/spool/postfix/.+ -> default owner postfix>

set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)

license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'

group groupname=postdrop gid=28
group groupname=postfix gid=27
user username=postfix gcos-field=Postfix group=postfix home-dir=/var/spool/postfix password=NP uid=27

file files/postfix.auth_attr path=etc/security/auth_attr.d/postfix
file files/postfix.prof_attr path=etc/security/prof_attr.d/postfix
file files/postfix.exec_attr path=etc/security/exec_attr.d/postfix
file files/postfix.xml path=lib/svc/manifest/network/smtp-postfix.xml restart_fmri=svc:/system/manifest-import:default

file etc/postfix/LICENSE path=usr/share/doc/postfix/LICENSE
file etc/postfix/TLS_LICENSE path=usr/share/doc/postfix/TLS_LICENSE
file etc/postfix/main.cf.default path=usr/share/doc/postfix/main.cf.default
file etc/postfix/main.cf.proto path=usr/share/doc/postfix/main.cf.proto
file etc/postfix/bounce.cf.default path=usr/share/doc/postfix/bounce.cf.default
file etc/postfix/master.cf.proto path=usr/share/doc/postfix/master.cf.proto

file path=etc/postfix/access mode=0644 preserve=true
file path=etc/postfix/aliases mode=0644 preserve=true
link path=etc/aliases mediator=mta mediator-implementation=postfix \
    target=./postfix/aliases
file path=etc/postfix/canonical mode=0644 preserve=true
file path=etc/postfix/generic mode=0644 preserve=true
file path=etc/postfix/header_checks mode=0644 preserve=true
file path=etc/postfix/main.cf mode=0644 preserve=true
file path=etc/postfix/master.cf mode=0644 preserve=true
file path=etc/postfix/postfix-files
file path=etc/postfix/relocated mode=0644 preserve=true
file path=etc/postfix/transport mode=0644 preserve=true
file path=etc/postfix/virtual mode=0644 preserve=true
link path=usr/bin/mailq target=../../usr/lib/sendmail \
	mediator=mta mediator-implementation=postfix
file path=usr/lib/postfix/anvil
file path=usr/lib/postfix/bounce
file path=usr/lib/postfix/cleanup
file path=usr/lib/postfix/discard
file path=usr/lib/postfix/dnsblog
file path=usr/lib/postfix/error
file path=usr/lib/postfix/flush
file path=usr/lib/postfix/lmtp
file path=usr/lib/postfix/local
file path=usr/lib/postfix/master
hardlink path=usr/lib/postfix/nqmgr target=qmgr
file path=usr/lib/postfix/oqmgr
file path=usr/lib/postfix/pickup
file path=usr/lib/postfix/pipe
file path=usr/lib/postfix/post-install
file path=usr/lib/postfix/postfix-script
file path=usr/lib/postfix/postfix-tls-script
file path=usr/lib/postfix/postfix-wrapper
file path=usr/lib/postfix/postlogd
file path=usr/lib/postfix/postmulti-script
file path=usr/lib/postfix/postscreen
file path=usr/lib/postfix/proxymap
file path=usr/lib/postfix/qmgr
file path=usr/lib/postfix/qmqpd
file path=usr/lib/postfix/scache
file path=usr/lib/postfix/showq
hardlink path=usr/lib/postfix/smtp target=lmtp
file path=usr/lib/postfix/smtpd
file path=usr/lib/postfix/spawn
file path=usr/lib/postfix/tlsmgr
file path=usr/lib/postfix/tlsproxy
file path=usr/lib/postfix/trivial-rewrite
file path=usr/lib/postfix/verify
file path=usr/lib/postfix/virtual
file usr/lib/sendmail path=usr/lib/postfix/sendmail
link path=usr/lib/sendmail target=postfix/sendmail \
	mediator=mta mediator-implementation=postfix
link path=usr/sbin/newaliases target=../../usr/lib/sendmail \
	mediator=mta mediator-implementation=postfix
file path=usr/sbin/postalias
file path=usr/sbin/postcat
file path=usr/sbin/postconf
file path=usr/sbin/postdrop group=postdrop mode=02555
file path=usr/sbin/postfix
file path=usr/sbin/postkick
file path=usr/sbin/postlock
file path=usr/sbin/postlog
file path=usr/sbin/postmap
file path=usr/sbin/postmulti
file path=usr/sbin/postqueue group=postdrop mode=02555
file path=usr/sbin/postsuper
link path=usr/share/man/man1/mailq.1 target=postfix-mailq.1 \
    mediator=mta mediator-implementation=postfix
file usr/share/man/man1/mailq.1 path=usr/share/man/man1/postfix-mailq.1
file path=usr/share/man/man1/newaliases.1
file path=usr/share/man/man1/postalias.1
file path=usr/share/man/man1/postcat.1
file path=usr/share/man/man1/postconf.1
file path=usr/share/man/man1/postdrop.1
file path=usr/share/man/man1/postfix-tls.1
file path=usr/share/man/man1/postfix.1
file path=usr/share/man/man1/postkick.1
file path=usr/share/man/man1/postlock.1
file path=usr/share/man/man1/postlog.1
file path=usr/share/man/man1/postmap.1
file path=usr/share/man/man1/postmulti.1
file path=usr/share/man/man1/postqueue.1
file path=usr/share/man/man1/postsuper.1
file path=usr/share/man/man1/sendmail.1
file path=usr/share/man/man5/access.5
link path=usr/share/man/man5/aliases.5 target=postfix-aliases.5 \
    mediator=mta mediator-implementation=postfix
file usr/share/man/man5/aliases.5 path=usr/share/man/man5/postfix-aliases.5
file path=usr/share/man/man5/body_checks.5
file path=usr/share/man/man5/bounce.5
file path=usr/share/man/man5/canonical.5
file path=usr/share/man/man5/cidr_table.5
file path=usr/share/man/man5/generic.5
file path=usr/share/man/man5/header_checks.5
file path=usr/share/man/man5/ldap_table.5
file path=usr/share/man/man5/lmdb_table.5
file path=usr/share/man/man5/master.5
file path=usr/share/man/man5/memcache_table.5
file path=usr/share/man/man5/mongodb_table.5
file path=usr/share/man/man5/mysql_table.5
file path=usr/share/man/man5/nisplus_table.5
file path=usr/share/man/man5/pcre_table.5
file path=usr/share/man/man5/pgsql_table.5
file path=usr/share/man/man5/postconf.5
file path=usr/share/man/man5/postfix-wrapper.5
file path=usr/share/man/man5/regexp_table.5
file path=usr/share/man/man5/relocated.5
file path=usr/share/man/man5/socketmap_table.5
file path=usr/share/man/man5/sqlite_table.5
file path=usr/share/man/man5/tcp_table.5
file path=usr/share/man/man5/transport.5
file path=usr/share/man/man5/virtual.5
file path=usr/share/man/man8/anvil.8
file path=usr/share/man/man8/bounce.8
file path=usr/share/man/man8/cleanup.8
file path=usr/share/man/man8/defer.8
file path=usr/share/man/man8/discard.8
file path=usr/share/man/man8/dnsblog.8
file path=usr/share/man/man8/error.8
file path=usr/share/man/man8/flush.8
file path=usr/share/man/man8/lmtp.8
file path=usr/share/man/man8/local.8
file path=usr/share/man/man8/master.8
file path=usr/share/man/man8/oqmgr.8
file path=usr/share/man/man8/pickup.8
file path=usr/share/man/man8/pipe.8
file path=usr/share/man/man8/postlogd.8
file path=usr/share/man/man8/postscreen.8
file path=usr/share/man/man8/proxymap.8
file path=usr/share/man/man8/qmgr.8
file path=usr/share/man/man8/qmqpd.8
file path=usr/share/man/man8/scache.8
file path=usr/share/man/man8/showq.8
file path=usr/share/man/man8/smtp.8
file path=usr/share/man/man8/smtpd.8
file path=usr/share/man/man8/spawn.8
file path=usr/share/man/man8/tlsmgr.8
file path=usr/share/man/man8/tlsproxy.8
file path=usr/share/man/man8/trace.8
file path=usr/share/man/man8/trivial-rewrite.8
file path=usr/share/man/man8/verify.8
file path=usr/share/man/man8/virtual.8
dir path=var/lib/postfix owner=postfix mode=0700
dir path=var/spool
dir path=var/spool/postfix
dir path=var/spool/postfix/active
dir path=var/spool/postfix/bounce
dir path=var/spool/postfix/corrupt
dir path=var/spool/postfix/defer
dir path=var/spool/postfix/deferred
dir path=var/spool/postfix/flush
dir path=var/spool/postfix/hold
dir path=var/spool/postfix/incoming
dir path=var/spool/postfix/maildrop group=postdrop mode=0730
dir path=var/spool/postfix/pid owner=root mode=0755
dir path=var/spool/postfix/private
dir path=var/spool/postfix/public group=postdrop mode=0710
dir path=var/spool/postfix/saved
dir path=var/spool/postfix/trace