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
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.
13 # Copyright 2017 Alexander Pyhalov
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= pgpool-II
19 COMPONENT_VERSION
= 4.5.5
20 COMPONENT_SUMMARY
= A connection pooling
/replication server for PostgreSQL
21 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
22 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
23 COMPONENT_ARCHIVE_HASH
= sha256
:95ffeeaeb6b0cebea8034e30fc1933fec7384b227ad511305eaccc5d090ff998
24 COMPONENT_PROJECT_URL
= https
://www.pgpool.net
25 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/download.php?f
=$(COMPONENT_ARCHIVE
)
26 COMPONENT_FMRI
= database
/postgres
/$(COMPONENT_NAME
)
27 COMPONENT_CLASSIFICATION
= System
/Databases
28 COMPONENT_LICENSE
= BSD
29 COMPONENT_LICENSE_FILE
= COPYING
31 # Don't depend on host default pg_config
32 PATH
=$(PG_BINDIR.
$(BITS
)):$(PATH.illumos
)
34 include $(WS_MAKE_RULES
)/common.mk
36 CFLAGS
+= -D__EXTENSIONS__
-I
/usr
/include/openldap
38 COMPONENT_PREP_ACTION
= ( cd
$(SOURCE_DIR
) && autoreconf
-fi
)
39 COMPONENT_PRE_CONFIGURE_ACTION
= ( cp
-a
$(SOURCE_DIR
)/* $(@D
) )
40 COMPONENT_POST_CONFIGURE_ACTION
= ( find
$(@D
) -name Makefile
-exec
$(GSED
) -i
-e
's/lldap /lldap-2.6 /' {} \
; )
42 CONFIGURE_BINDIR
= $(CONFIGURE_PREFIX
)/bin
44 # Earlier all binaries were delivered in /usr/bin,
45 # preserve this behavior
46 CONFIGURE_SBINDIR
= $(CONFIGURE_PREFIX
)/bin
48 CONFIGURE_SCRIPT
= $(@D
)/configure
50 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)/pgpool-II
51 CONFIGURE_OPTIONS
+= --with-ldap
52 CONFIGURE_OPTIONS
+= --with-pam
53 CONFIGURE_OPTIONS
+= --with-openssl
54 CONFIGURE_OPTIONS
+= LDFLAGS
=-L
$(OPENSSL_PREFIX
)/lib
/$(MACH64
)
55 CONFIGURE_OPTIONS
+= CPPFLAGS
=-I
$(OPENSSL_PREFIX
)/include
57 COMPONENT_POST_BUILD_ACTION
+= $(ENV
) $(COMPONENT_BUILD_ENV
) \
58 $(GMAKE
) $(COMPONENT_BUILD_GMAKE_ARGS
) -C
$(BUILD_DIR_
$(BITS
))/doc
/src
/sgml man1 man8
60 COMPONENT_POST_INSTALL_ACTION
+= \
61 $(MKDIR
) $(PROTO_DIR
)/usr
/share
/man
&& \
62 $(CP
) -r
$(BUILD_DIR_
$(BITS
))/doc
/src
/sgml
/man
[18] \
63 $(PROTO_DIR
)/usr
/share
/man
66 REQUIRED_PACKAGES
+= data
/docbook
/dtds
67 REQUIRED_PACKAGES
+= developer
/documentation-tool
/openjade
69 # Auto-generated dependencies
70 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
71 REQUIRED_PACKAGES
+= $(PG_LIBRARY_PKG
)
72 REQUIRED_PACKAGES
+= SUNWcs
73 REQUIRED_PACKAGES
+= library
/openldap
74 REQUIRED_PACKAGES
+= system
/library
75 REQUIRED_PACKAGES
+= system
/library
/math