#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (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
#
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2020, Michal Nowak
# Copyright (c) 2023, Friedrich Kink
#

<transform file path=usr/share/doc/bind/html/(.+)$ -> \
	set action.hash doc/arm/%<\1> >

set name=pkg.fmri value=pkg:/service/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=pkg.description value="$(COMPONENT_DESCRIPTION)"
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)'

# This package name has known conflicts with other packages in the WOS
#set pkg.linted.pkglint.manifest004=true


# Solaris additions
file Solaris/server.xml path=lib/svc/manifest/network/dns/server.xml
file Solaris/dns-server.sh path=lib/svc/method/dns-server mode=0555
file Solaris/migration.txt path=usr/share/doc/bind/migration.txt

# Libs
file path=usr/lib/dns/$(MACH64)/bind/filter-aaaa.so
file path=usr/lib/dns/$(MACH64)/bind/filter-a.so

# Tools
file path=usr/bin/dnssec-cds
file path=usr/bin/dnssec-dsfromkey
file path=usr/bin/dnssec-importkey
file path=usr/bin/dnssec-keyfromlabel
file path=usr/bin/dnssec-keygen
file path=usr/bin/dnssec-revoke
file path=usr/bin/dnssec-settime
file path=usr/bin/dnssec-signzone
file path=usr/bin/dnssec-verify
file path=usr/bin/named-checkconf
file path=usr/bin/named-checkzone
hardlink path=usr/bin/named-compilezone target=named-checkzone
file path=usr/bin/named-journalprint
file path=usr/bin/named-nzd2nzf
file path=usr/bin/named-rrchecker
file path=usr/bin/nsec3hash
file path=usr/sbin/ddns-confgen
hardlink path=usr/sbin/tsig-keygen target=ddns-confgen
file path=usr/sbin/named

# Compatibiliy symlinks
link path=usr/sbin/dnssec-cds target=../bin/dnssec-cds
link path=usr/sbin/dnssec-dsfromkey target=../bin/dnssec-dsfromkey
link path=usr/sbin/dnssec-importkey target=../bin/dnssec-importkey
link path=usr/sbin/dnssec-keyfromlabel target=../bin/dnssec-keyfromlabel
link path=usr/sbin/dnssec-keygen target=../bin/dnssec-keygen
link path=usr/sbin/dnssec-revoke target=../bin/dnssec-revoke
link path=usr/sbin/dnssec-settime target=../bin/dnssec-settime
link path=usr/sbin/dnssec-signzone target=../bin/dnssec-signzone
link path=usr/sbin/dnssec-verify target=../bin/dnssec-verify
link path=usr/sbin/named-checkconf target=../bin/named-checkconf
link path=usr/sbin/named-checkzone target=../bin/named-checkzone
link path=usr/sbin/named-compilezone target=../bin/named-checkzone
link path=usr/sbin/named-journalprint target=../bin/named-journalprint
link path=usr/sbin/named-nzd2nzf target=../bin/named-nzd2nzf

# Man
file path=usr/share/man/man1/dnssec-cds.1
file path=usr/share/man/man1/dnssec-dsfromkey.1
file path=usr/share/man/man1/dnssec-importkey.1
file path=usr/share/man/man1/dnssec-keyfromlabel.1
file path=usr/share/man/man1/dnssec-keygen.1
file path=usr/share/man/man1/dnssec-revoke.1
file path=usr/share/man/man1/dnssec-settime.1
file path=usr/share/man/man1/dnssec-signzone.1
file path=usr/share/man/man1/dnssec-verify.1
file path=usr/share/man/man1/named-checkconf.1
file path=usr/share/man/man1/named-checkzone.1
file path=usr/share/man/man1/named-compilezone.1
file path=usr/share/man/man1/named-journalprint.1
file path=usr/share/man/man1/named-nzd2nzf.1
file path=usr/share/man/man1/named-rrchecker.1
file path=usr/share/man/man1/nsec3hash.1
file path=usr/share/man/man5/named.conf.5
file path=usr/share/man/man8/ddns-confgen.8
file path=usr/share/man/man8/filter-a.8
file path=usr/share/man/man8/filter-aaaa.8
file path=usr/share/man/man8/named.8
file path=usr/share/man/man8/tsig-keygen.8

group groupname=named gid=53
user username=named ftpuser=false gcos-field="BIND Reserved UID" group=named \
    password=NP uid=53 home-dir="/var/chroot/named"