pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/php72 add new option argon2 to compile in the sup...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/390f5f8c2136
branches:  trunk
changeset: 374936:390f5f8c2136
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Wed Jan 31 21:10:18 2018 +0000

description:
add new option argon2 to compile in the support for Argon2 password hashes
(new in php 7.2.0)

diffstat:

 lang/php72/Makefile.php |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r e774651a91c2 -r 390f5f8c2136 lang/php72/Makefile.php
--- a/lang/php72/Makefile.php   Wed Jan 31 20:33:39 2018 +0000
+++ b/lang/php72/Makefile.php   Wed Jan 31 21:10:18 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.php,v 1.1 2017/11/15 08:56:12 jdolecek Exp $
+# $NetBSD: Makefile.php,v 1.2 2018/01/31 21:10:18 jdolecek Exp $
 # used by lang/php72/Makefile
 # used by www/ap-php/Makefile
 # used by www/php-fpm/Makefile
@@ -45,7 +45,7 @@
 .include "../../textproc/libxml2/buildlink3.mk"
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.${PHP_PKG_PREFIX}
-PKG_SUPPORTED_OPTIONS+=        inet6 ssl maintainer-zts readline
+PKG_SUPPORTED_OPTIONS+=        inet6 ssl maintainer-zts readline argon2
 PKG_SUGGESTED_OPTIONS+=        inet6 ssl readline
 
 .if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD"
@@ -92,5 +92,10 @@
 INSTALL_MAKE_FLAGS+=   -r
 .endif
 
+.if !empty(PKG_OPTIONS:Margon2)
+CONFIGURE_ARGS+=       --with-password-argon2=${BUILDLINK_PREFIX.argon2}
+.include "../../security/argon2/buildlink3.mk"
+.endif
+
 DL_AUTO_VARS=          yes
 .include "../../mk/dlopen.buildlink3.mk"



Home | Main Index | Thread Index | Old Index