openbsd-ports/www/nginx/patches/patch-nginx-auth-ldap_config
sthen 7c960e3aa2 nginx port tweaks, ok robert@
- add nginx-auth-ldap module (https://github.com/kvspb/nginx-auth-ldap/)
- reduce duplication in DISTFILES with foo{bar}ext syntax
- simplify RUN_DEPENDS*
- use perl MODULES to get ${P5ARCH} defined, use in PLIST-perl
2018-09-28 14:36:16 +00:00

16 lines
479 B
Plaintext

$OpenBSD: patch-nginx-auth-ldap_config,v 1.1 2018/09/28 14:36:16 sthen Exp $
Index: nginx-auth-ldap/config
--- nginx-auth-ldap/config.orig
+++ nginx-auth-ldap/config
@@ -3,6 +3,9 @@ ngx_addon_name=ngx_http_auth_ldap_module
LDAP_REQUIRED_LIBS="-lldap"
case "$NGX_PLATFORM" in
+ OpenBSD:*)
+ LDAP_REQUIRED_LIBS="-L${LOCALBASE}/lib $LDAP_REQUIRED_LIBS"
+ ;;
Darwin:*|FreeBSD:*|Linux:*|SunOS:*)
LDAP_REQUIRED_LIBS="$LDAP_REQUIRED_LIBS -llber"
;;