summaryrefslogtreecommitdiff
path: root/net/samba
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-08-22 19:32:51 +0000
committerjlam <jlam@pkgsrc.org>2004-08-22 19:32:51 +0000
commit9d5426ff76defa85311d3e55ed2c442fb5ae9977 (patch)
treebe106f064832dabfe855335adc4a7d14708a360a /net/samba
parent3c0724db4840983688df4cd77ea88653e9b13249 (diff)
downloadpkgsrc-9d5426ff76defa85311d3e55ed2c442fb5ae9977.tar.gz
Change the way that legacy USE_* and FOO_USE_* options are converted
into the bsd.options.mk framework. Instead of appending to ${PKG_OPTIONS_VAR}, it appends to PKG_DEFAULT_OPTIONS. This causes the default options to be the union of PKG_DEFAULT_OPTIONS and any old USE_* and FOO_USE_* settings. This fixes PR pkg/26590.
Diffstat (limited to 'net/samba')
-rw-r--r--net/samba/options.mk41
1 files changed, 16 insertions, 25 deletions
diff --git a/net/samba/options.mk b/net/samba/options.mk
index 318c28c4994..dd0d87bb015 100644
--- a/net/samba/options.mk
+++ b/net/samba/options.mk
@@ -1,30 +1,21 @@
-# $NetBSD: options.mk,v 1.1 2004/08/05 03:04:34 jlam Exp $
+# $NetBSD: options.mk,v 1.2 2004/08/22 19:32:52 jlam Exp $
# Global and legacy options
-.if defined(USE_CUPS) || defined(USE_PAM) || defined(USE_OPENLDAP) || \
- defined(SAMBA_WITH_ADS) || defined(SAMBA_USE_LDAP) || \
- defined(SAMBA_USE_LDAP_COMPAT)
-. if !defined(PKG_OPTIONS.samba)
-. if defined(USE_CUPS) && !empty(USE_CUPS:M[yY][eE][sS])
-PKG_OPTIONS.samba+= cups
-. endif
-. if defined(USE_PAM)
-PKG_OPTIONS.samba+= PAM
-. endif
-. if defined(USE_OPENLDAP) && !empty(USE_OPENLDAP:M[yY][eE][sS])
-PKG_OPTIONS.samba+= ldap
-. endif
-. if defined(SAMBA_WITH_ADS) && !empty(SAMBA_WITH_ADS:M[yY][eE][sS])
-PKG_OPTIONS.samba+= ads
-. endif
-. if defined(SAMBA_USE_LDAP)
-PKG_OPTIONS.samba+= ldap
-. endif
-. if defined(SAMBA_USE_LDAP_COMPAT) && \
- !empty(SAMBA_USE_LDAP_COMPAT:M[yY][eE][sS])
-PKG_OPTIONS.samba+= ldap-compat
-. endif
-. endif
+.if defined(USE_CUPS) && !empty(USE_CUPS:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+= cups
+.endif
+.if defined(USE_PAM)
+PKG_DEFAULT_OPTIONS+= PAM
+.endif
+.if defined(SAMBA_WITH_ADS) && !empty(SAMBA_WITH_ADS:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+= ads
+.endif
+.if defined(SAMBA_USE_LDAP)
+PKG_DEFAULT_OPTIONS+= ldap
+.endif
+.if defined(SAMBA_USE_LDAP_COMPAT) && \
+ !empty(SAMBA_USE_LDAP_COMPAT:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+= ldap-compat
.endif
PKG_OPTIONS_VAR= PKG_OPTIONS.samba