#
# 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 2013 Adam Stevko. All rights reserved.
# Copyright 2019 Michal Nowak
# Copyright 2022 Niklas Poslovski
#

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)
set name=variant.opensolaris.zone value="global" value="nonglobal"

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

file files/auth_openvpn path=etc/security/auth_attr.d/openvpn
file files/prof_openvpn path=etc/security/prof_attr.d/openvpn
file files/openvpn.xml path=lib/svc/manifest/network/openvpn.xml restart_fmri=svc:/system/manifest-import:default
#
file files/README.openindiana path=usr/share/doc/openvpn/README.openindiana

dir path=etc/openvpn
dir path=var/log/openvpn

depend type=require fmri=driver/network/tun variant.opensolaris.zone=global
depend type=require fmri=driver/network/tap variant.opensolaris.zone=global
depend type=require fmri=network/openvpn/easy-rsa

file path=usr/include/openvpn-msg.h
file path=usr/include/openvpn-plugin.h
file path=usr/lib/$(MACH64)/openvpn/plugins/openvpn-plugin-auth-pam.so
file path=usr/lib/$(MACH64)/openvpn/plugins/openvpn-plugin-down-root.so
file path=usr/sbin/openvpn
file path=usr/share/doc/openvpn/COPYING
file path=usr/share/doc/openvpn/COPYRIGHT.GPL
file path=usr/share/doc/openvpn/Changes.rst
file path=usr/share/doc/openvpn/README
file path=usr/share/doc/openvpn/README.auth-pam
file path=usr/share/doc/openvpn/README.down-root
file path=usr/share/doc/openvpn/README.mbedtls
file path=usr/share/doc/openvpn/gui-notes.txt
file path=usr/share/doc/openvpn/management-notes.txt
file path=usr/share/doc/openvpn/openvpn-examples.5.html
file path=usr/share/doc/openvpn/openvpn.8.html
file path=usr/share/doc/openvpn/sample/sample-config-files/README
file path=usr/share/doc/openvpn/sample/sample-config-files/client.conf
file path=usr/share/doc/openvpn/sample/sample-config-files/firewall.sh
file path=usr/share/doc/openvpn/sample/sample-config-files/loopback-client
file path=usr/share/doc/openvpn/sample/sample-config-files/loopback-server
file path=usr/share/doc/openvpn/sample/sample-config-files/openvpn-shutdown.sh
file path=usr/share/doc/openvpn/sample/sample-config-files/openvpn-startup.sh
file path=usr/share/doc/openvpn/sample/sample-config-files/server.conf
file path=usr/share/doc/openvpn/sample/sample-keys/README
file path=usr/share/doc/openvpn/sample/sample-keys/ca.crt
file path=usr/share/doc/openvpn/sample/sample-keys/ca.key
file path=usr/share/doc/openvpn/sample/sample-keys/client-ec.crt
file path=usr/share/doc/openvpn/sample/sample-keys/client-ec.key
file path=usr/share/doc/openvpn/sample/sample-keys/client-pass.key
file path=usr/share/doc/openvpn/sample/sample-keys/client.crt
file path=usr/share/doc/openvpn/sample/sample-keys/client.key
file path=usr/share/doc/openvpn/sample/sample-keys/client.p12
file path=usr/share/doc/openvpn/sample/sample-keys/dh2048.pem
file path=usr/share/doc/openvpn/sample/sample-keys/gen-sample-keys.sh
file path=usr/share/doc/openvpn/sample/sample-keys/openssl.cnf
file path=usr/share/doc/openvpn/sample/sample-keys/server-ec.crt
file path=usr/share/doc/openvpn/sample/sample-keys/server-ec.key
file path=usr/share/doc/openvpn/sample/sample-keys/server.crt
file path=usr/share/doc/openvpn/sample/sample-keys/server.key
file path=usr/share/doc/openvpn/sample/sample-keys/ta.key
file path=usr/share/doc/openvpn/sample/sample-scripts/auth-pam.pl
file path=usr/share/doc/openvpn/sample/sample-scripts/bridge-start
file path=usr/share/doc/openvpn/sample/sample-scripts/bridge-stop
file path=usr/share/doc/openvpn/sample/sample-scripts/totpauth.py
file path=usr/share/doc/openvpn/sample/sample-scripts/ucn.pl
file path=usr/share/doc/openvpn/sample/sample-scripts/verify-cn
file path=usr/share/man/man5/openvpn-examples.5
file path=usr/share/man/man8/openvpn.8