ffmpeg-6: fix COMPONENT_REVISION
[oi-userland.git] / components / web / lighttpd / Makefile
blobb1e9dbefd33654cf121131f175db01b0f86c2546
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2022 Niklas Poslovski
27 OPENSSL_VERSION= 3.1
28 USE_DEFAULT_TEST_TRANSFORMS= yes
29 include ../../../make-rules/shared-macros.mk
31 COMPONENT_NAME= lighttpd
32 COMPONENT_VERSION= 1.4.73
33 COMPONENT_SUMMARY= The Lighttpd Web Server
34 COMPONENT_PROJECT_URL= https://www.lighttpd.net/
35 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
36 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
37 COMPONENT_ARCHIVE_HASH= sha256:816cbec71e8d02d874f1d5c798d76d091a76d5acbeb6e017ba76aeb4263d6995
38 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
39 COMPONENT_FMRI= web/server/$(COMPONENT_NAME)-14
40 COMPONENT_CLASSIFICATION= Web Services/Application and Web Servers
41 COMPONENT_LICENSE= Lighttpd license
42 COMPONENT_LICENSE_FILE= COPYING
44 include $(WS_MAKE_RULES)/common.mk
46 PATCH_LEVEL= 0
48 ELFEDIT= /usr/bin/elfedit
50 LIGHTTPD_INSTALLDIR= /usr/lighttpd/1.4
52 CFLAGS += -I/usr/include/openldap
53 LDFLAGS += -lldap_r-2.4
54 LDFLAGS += -lnsl -lsocket
56 # libtool linking will fail unless we re-create configure.
57 COMPONENT_PREP_ACTION = ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh )
59 # lighttpd is logging using __FILE__ macro. Cloning will make this happen
60 # using just source file names (without full absolute paths).
61 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
63 CONFIGURE_PREFIX= $(LIGHTTPD_INSTALLDIR)
64 CONFIGURE_MANDIR= $(CONFIGURE_PREFIX)/man
65 CONFIGURE_SBINDIR = $(CONFIGURE_PREFIX)/sbin
66 CONFIGURE_BINDIR = $(CONFIGURE_PREFIX)/bin
68 CONFIGURE_OPTIONS += --with-pic
69 CONFIGURE_OPTIONS += --without-lua
70 CONFIGURE_OPTIONS += --with-openssl=$(OPENSSL_PREFIX)
71 CONFIGURE_OPTIONS += --with-pcre
72 CONFIGURE_OPTIONS += --with-mysql=$(MYSQL_CONFIG)
73 CONFIGURE_OPTIONS += --with-ldap
74 CONFIGURE_OPTIONS += --enable-rpath
75 CONFIGURE_OPTIONS += LDFLAGS="-L$(OPENSSL_LIBDIR) -L$(MYSQL_LIBDIR)"
76 CONFIGURE_OPTIONS += LIBS="-L$(OPENSSL_LIBDIR) -L$(MYSQL_LIBDIR)"
78 # Enable ASLR for this component
79 ASLR_MODE = $(ASLR_ENABLE)
81 # mod_vhostdb_mysql.so doesn't find its mariadb lib without this:
82 COMPONENT_POST_INSTALL_ACTION += \
83 $(ELFEDIT) -e "dyn:runpath $(MYSQL_LIBDIR)" \
84 $(PROTO_DIR)$(LIGHTTPD_INSTALLDIR)/lib/$(MACH64)/mod_vhostdb_mysql.so
86 # Auto-generated dependencies
87 REQUIRED_PACKAGES += $(MYSQL_LIBRARY_PKG)
88 REQUIRED_PACKAGES += SUNWcs
89 REQUIRED_PACKAGES += library/openldap
90 REQUIRED_PACKAGES += library/pcre
91 REQUIRED_PACKAGES += library/security/openssl-31
92 REQUIRED_PACKAGES += library/zlib
93 REQUIRED_PACKAGES += system/library
94 REQUIRED_PACKAGES += web/fastcgi/spawn-fcgi