Marcel Telka
2024-04-03 72d66ff28ec33bc2c05b355c6218d98d13b79450
commit | author | age
f05ab0 1 #
AP 2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
6 #
7 # A full copy of the text of the CDDL should have accompanied this
8 # source.  A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
10 #
11
12 #
13 # Copyright 2017 Alexander Pyhalov
14 #
15
80f5ed 16 BUILD_BITS= 64
5062ad 17 OPENSSL_VERSION= 3.1
f05ab0 18 include ../../../make-rules/shared-macros.mk
AP 19
20 COMPONENT_NAME=     pgpool-II
889883 21 COMPONENT_VERSION=     4.5.1
aba4f2 22 COMPONENT_SUMMARY=     A connection pooling/replication server for PostgreSQL
f05ab0 23 COMPONENT_SRC=         $(COMPONENT_NAME)-$(COMPONENT_VERSION)
AP 24 COMPONENT_ARCHIVE=     $(COMPONENT_SRC).tar.gz
889883 25 COMPONENT_ARCHIVE_HASH= sha256:8e14b0558a15dae8767c8e1acee3f2f6c7c08ebfffda66a359367eaaa56c3936
aba4f2 26 COMPONENT_PROJECT_URL=    https://www.pgpool.net
AW 27 COMPONENT_ARCHIVE_URL=    $(COMPONENT_PROJECT_URL)/download.php?f=$(COMPONENT_ARCHIVE)
28 COMPONENT_FMRI=    database/postgres/$(COMPONENT_NAME)
f05ab0 29 COMPONENT_CLASSIFICATION=    System/Databases
AP 30 COMPONENT_LICENSE=    BSD
31 COMPONENT_LICENSE_FILE=    COPYING
32
33 # Don't depend on host default pg_config
34 PATH=$(PG_BINDIR.$(BITS)):/usr/sbin:/usr/bin
35
63e644 36 include $(WS_MAKE_RULES)/common.mk
f05ab0 37
1492ac 38 CFLAGS += -D__EXTENSIONS__ -I/usr/include/openldap
f05ab0 39
aba4f2 40 COMPONENT_PREP_ACTION = ( cd $(SOURCE_DIR) && autoreconf -fi )
AW 41 COMPONENT_PRE_CONFIGURE_ACTION = ( cp -a $(SOURCE_DIR)/* $(@D) )
1492ac 42 COMPONENT_POST_CONFIGURE_ACTION = ( find $(@D) -name Makefile -exec $(GSED) -i -e 's/lldap /lldap-2.6 /' {} \; )
f05ab0 43
aba4f2 44 CONFIGURE_BINDIR = $(CONFIGURE_PREFIX)/bin
964f57 45
f05ab0 46 # Earlier all binaries were delivered in /usr/bin,
AP 47 # preserve this behavior
aba4f2 48 CONFIGURE_SBINDIR = $(CONFIGURE_PREFIX)/bin
f05ab0 49
AP 50 CONFIGURE_SCRIPT = $(@D)/configure
51
aba4f2 52 CONFIGURE_OPTIONS += --sysconfdir=/etc/pgpool-II
1492ac 53 CONFIGURE_OPTIONS += --with-ldap
aba4f2 54 CONFIGURE_OPTIONS += --with-pam
AW 55 CONFIGURE_OPTIONS += --with-openssl
56 CONFIGURE_OPTIONS += LDFLAGS=-L$(OPENSSL_PREFIX)/lib/$(MACH64)
57 CONFIGURE_OPTIONS += CPPFLAGS=-I$(OPENSSL_PREFIX)/include
f05ab0 58
AP 59 COMPONENT_POST_BUILD_ACTION += $(ENV) $(COMPONENT_BUILD_ENV) \
60     $(GMAKE) $(COMPONENT_BUILD_GMAKE_ARGS) -C $(BUILD_DIR_$(BITS))/doc/src/sgml man1 man8
61
62 COMPONENT_POST_INSTALL_ACTION += \
63     $(MKDIR) $(PROTO_DIR)/usr/share/man && \
64     $(CP) -r $(BUILD_DIR_$(BITS))/doc/src/sgml/man[18] \
65         $(PROTO_DIR)/usr/share/man
66
47df5f 67 # Build dependencies
f05ab0 68 REQUIRED_PACKAGES += data/docbook/dtds
47df5f 69 REQUIRED_PACKAGES += developer/documentation-tool/openjade
HL 70
71 # Auto-generated dependencies
63e644 72 REQUIRED_PACKAGES += $(PG_LIBRARY_PKG)
f05ab0 73 REQUIRED_PACKAGES += SUNWcs
1492ac 74 REQUIRED_PACKAGES += library/openldap
5062ad 75 REQUIRED_PACKAGES += library/security/openssl-31
f05ab0 76 REQUIRED_PACKAGES += system/library
AP 77 REQUIRED_PACKAGES += system/library/math