#
# 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 (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
# 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)

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

<transform file path=usr.*/man/.+ -> default mangler.man.stability uncommitted>

dir path=var/lighttpd/1.4/docroot
dir path=var/lighttpd/1.4/errors
dir path=var/lighttpd/1.4/logs group=webservd owner=webservd
dir path=var/lighttpd/1.4/vhosts

file Solaris/fcgi-php.conf path=etc/lighttpd/1.4/conf.d/fcgi-php.conf \
    mode=0644 preserve=renamenew \
    original_name=SUNWlighttpd14:etc/lighttpd/1.4/conf.d/fcgi-php.conf
file Solaris/ssl.conf path=etc/lighttpd/1.4/conf.d/ssl.conf  \
    mode=0644 preserve=renamenew \
    original_name=SUNWlighttpd14:etc/lighttpd/1.4/conf.d/ssl.conf
file Solaris/auth_attr path=etc/security/auth_attr.d/lighttpd
file Solaris/prof_attr path=etc/security/prof_attr.d/lighttpd
file Solaris/http-lighttpd14.xml path=lib/svc/manifest/network/http-lighttpd14.xml
file Solaris/lighttpd.1m.sunman path=usr/share/man/man1m/lighttpd.1m
link path=usr/lighttpd/1.4/man/man1/spawn-fcgi.1 target=../../../../share/man/man1/spawn-fcgi.1 pkg.linted.userland.action002.0=true
link path=usr/lighttpd/1.4/bin/spawn-fcgi target=../../../bin/spawn-fcgi pkg.linted.userland.action002.0=true
depend fmri=__TBD pkg.debug.depend.file=usr/bin/spawn-fcgi type=require
depend fmri=__TBD pkg.debug.depend.file=usr/share/man/man1/spawn-fcgi.1 type=require

file doc/config/conf.d/access_log.conf \
    path=etc/lighttpd/1.4/conf.d/access_log.conf mode=0644 preserve=renamenew
file doc/config/conf.d/auth.conf path=etc/lighttpd/1.4/conf.d/auth.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/cgi.conf path=etc/lighttpd/1.4/conf.d/cgi.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/debug.conf path=etc/lighttpd/1.4/conf.d/debug.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/deflate.conf path=etc/lighttpd/1.4/conf.d/deflate.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/dirlisting.conf \
    path=etc/lighttpd/1.4/conf.d/dirlisting.conf mode=0644 preserve=renamenew
file doc/config/conf.d/evhost.conf path=etc/lighttpd/1.4/conf.d/evhost.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/expire.conf path=etc/lighttpd/1.4/conf.d/expire.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/fastcgi.conf path=etc/lighttpd/1.4/conf.d/fastcgi.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/magnet.conf path=etc/lighttpd/1.4/conf.d/magnet.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/mime.conf path=etc/lighttpd/1.4/conf.d/mime.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/proxy.conf path=etc/lighttpd/1.4/conf.d/proxy.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/rrdtool.conf path=etc/lighttpd/1.4/conf.d/rrdtool.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/scgi.conf path=etc/lighttpd/1.4/conf.d/scgi.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/simple_vhost.conf \
    path=etc/lighttpd/1.4/conf.d/simple_vhost.conf mode=0644 preserve=renamenew
file doc/config/conf.d/ssi.conf path=etc/lighttpd/1.4/conf.d/ssi.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/status.conf path=etc/lighttpd/1.4/conf.d/status.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/userdir.conf path=etc/lighttpd/1.4/conf.d/userdir.conf \
    mode=0644 preserve=renamenew
file doc/config/conf.d/webdav.conf path=etc/lighttpd/1.4/conf.d/webdav.conf \
    mode=0644 preserve=renamenew
file doc/config/lighttpd.conf path=etc/lighttpd/1.4/lighttpd.conf mode=0644 \
    original_name=SUNWlighttpd14:etc/lighttpd/1.4/lighttpd.conf \
    preserve=renamenew
file doc/config/modules.conf path=etc/lighttpd/1.4/modules.conf mode=0644 \
    preserve=renamenew

file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_accesslog.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_ajp13.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_auth.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_authn_file.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_authn_ldap.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_cgi.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_deflate.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_dirlisting.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_extforward.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_h2.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_openssl.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_proxy.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_rrdtool.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_sockproxy.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_ssi.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_status.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_userdir.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_vhostdb.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_vhostdb_ldap.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_vhostdb_mysql.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_webdav.so
file path=usr/lighttpd/1.4/lib/$(MACH64)/mod_wstunnel.so
file path=usr/lighttpd/1.4/man/man8/lighttpd-angel.8
file path=usr/lighttpd/1.4/man/man8/lighttpd.8
file path=usr/lighttpd/1.4/sbin/lighttpd
file path=usr/lighttpd/1.4/sbin/lighttpd-angel