summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2019-01-09 16:03:49 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2019-01-09 16:03:49 +0000
commit6f64c6e0b4c79f54393ed5eb2cd0ce907f4f5cbd (patch)
treeec1029ad1df00bc49e46e2e6ae9537d441dcc616
parentgames/cockatrice: (diff)
- Optionize SSL support in postgresql11-contrib
PR: 233257 Submitted by: amdmi3 Approved by: maintainer timeout (pgsql, 7 weeks)
Notes
Notes: svn path=/head/; revision=489813
-rw-r--r--databases/postgresql11-contrib/Makefile14
-rw-r--r--databases/postgresql11-server/pkg-plist-contrib12
2 files changed, 16 insertions, 10 deletions
diff --git a/databases/postgresql11-contrib/Makefile b/databases/postgresql11-contrib/Makefile
index b3246b65d2f6..56a02b0852a6 100644
--- a/databases/postgresql11-contrib/Makefile
+++ b/databases/postgresql11-contrib/Makefile
@@ -20,13 +20,19 @@ INSTALL_DIRS= contrib
SLAVE_ONLY= yes
COMPONENT= -contrib
-CONFIGURE_ARGS+=--with-libxslt --with-libxml --with-openssl --disable-nls --with-uuid=bsd
+CONFIGURE_ARGS= --with-libxslt --with-libxml --disable-nls --with-uuid=bsd
LDFLAGS+= -lpthread -L${PREFIX}/lib
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS OPENSSL
+OPTIONS_DEFAULT=OPENSSL
+OPTIONS_SUB= yes
-post-configure:
- @cd ${WRKSRC}/src/backend && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} symlinks
+OPENSSL_DESC= Build with OpenSSL support
+OPENSSL_USES= ssl
+OPENSSL_CONFIGURE_WITH= openssl
+
+post-configure:
+ @cd ${WRKSRC}/src/backend && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} symlinks
post-install:
@- ${INSTALL_DATA} ${WRKSRC}/contrib/README ${STAGEDIR}${DOCSDIR}/extension/README
diff --git a/databases/postgresql11-server/pkg-plist-contrib b/databases/postgresql11-server/pkg-plist-contrib
index e13ac706b704..da6c7f5289e9 100644
--- a/databases/postgresql11-server/pkg-plist-contrib
+++ b/databases/postgresql11-server/pkg-plist-contrib
@@ -44,7 +44,7 @@ lib/postgresql/pgxml.so
lib/postgresql/postgres_fdw.so
lib/postgresql/refint.so
lib/postgresql/seg.so
-lib/postgresql/sslinfo.so
+%%OPENSSL%%lib/postgresql/sslinfo.so
lib/postgresql/tablefunc.so
lib/postgresql/tcn.so
lib/postgresql/test_decoding.so
@@ -233,11 +233,11 @@ lib/postgresql/uuid-ossp.so
%%DATADIR%%/extension/seg--1.2--1.3.sql
%%DATADIR%%/extension/seg--unpackaged--1.0.sql
%%DATADIR%%/extension/seg.control
-%%DATADIR%%/extension/sslinfo--1.0--1.1.sql
-%%DATADIR%%/extension/sslinfo--1.1--1.2.sql
-%%DATADIR%%/extension/sslinfo--1.2.sql
-%%DATADIR%%/extension/sslinfo--unpackaged--1.0.sql
-%%DATADIR%%/extension/sslinfo.control
+%%OPENSSL%%%%DATADIR%%/extension/sslinfo--1.0--1.1.sql
+%%OPENSSL%%%%DATADIR%%/extension/sslinfo--1.1--1.2.sql
+%%OPENSSL%%%%DATADIR%%/extension/sslinfo--1.2.sql
+%%OPENSSL%%%%DATADIR%%/extension/sslinfo--unpackaged--1.0.sql
+%%OPENSSL%%%%DATADIR%%/extension/sslinfo.control
%%DATADIR%%/extension/tablefunc--1.0.sql
%%DATADIR%%/extension/tablefunc--unpackaged--1.0.sql
%%DATADIR%%/extension/tablefunc.control