Mon Jul 12 22:30:44 2021 UTC ()
samba4: "Building --without-ads requires also building --without-ad-dc."


(nia)
diff -r1.15 -r1.16 pkgsrc/net/samba4/options.mk

cvs diff -r1.15 -r1.16 pkgsrc/net/samba4/options.mk (switch to unified diff)

--- pkgsrc/net/samba4/options.mk 2021/06/02 20:05:20 1.15
+++ pkgsrc/net/samba4/options.mk 2021/07/12 22:30:44 1.16
@@ -1,124 +1,125 @@ @@ -1,124 +1,125 @@
1# $NetBSD: options.mk,v 1.15 2021/06/02 20:05:20 nia Exp $ 1# $NetBSD: options.mk,v 1.16 2021/07/12 22:30:44 nia Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.samba4 3PKG_OPTIONS_VAR= PKG_OPTIONS.samba4
4PKG_SUPPORTED_OPTIONS= ads avahi fam ldap pam winbind # cups # cups option is broken for me. 4PKG_SUPPORTED_OPTIONS= ads avahi fam ldap pam winbind # cups # cups option is broken for me.
5PKG_SUGGESTED_OPTIONS= avahi ldap pam winbind 5PKG_SUGGESTED_OPTIONS= avahi ldap pam winbind
6 6
7.include "../../mk/bsd.fast.prefs.mk" 7.include "../../mk/bsd.fast.prefs.mk"
8 8
9SAMBA_ACL_OPSYS= AIX Darwin FreeBSD HPUX IRIX Linux NetBSD OSF1 SunOS 9SAMBA_ACL_OPSYS= AIX Darwin FreeBSD HPUX IRIX Linux NetBSD OSF1 SunOS
10.if !empty(SAMBA_ACL_OPSYS:M${OPSYS}) 10.if !empty(SAMBA_ACL_OPSYS:M${OPSYS})
11PKG_SUPPORTED_OPTIONS+= acl 11PKG_SUPPORTED_OPTIONS+= acl
12.endif 12.endif
13 13
14.if empty(MACHINE_PLATFORM:MDarwin-1[1-9].*) 14.if empty(MACHINE_PLATFORM:MDarwin-1[1-9].*)
15PKG_SUGGESTED_OPTIONS+= ads 15PKG_SUGGESTED_OPTIONS+= ads
16.endif 16.endif
17 17
18.if ${OPSYS} == "Linux" 18.if ${OPSYS} == "Linux"
19PKG_SUPPORTED_OPTIONS+= snapper 19PKG_SUPPORTED_OPTIONS+= snapper
20PKG_SUGGESTED_OPTIONS+= snapper 20PKG_SUGGESTED_OPTIONS+= snapper
21.endif 21.endif
22 22
23.include "../../mk/bsd.options.mk" 23.include "../../mk/bsd.options.mk"
24 24
25PLIST_VARS+= ads cups fam ldap pam snapper winbind 25PLIST_VARS+= ads cups fam ldap pam snapper winbind
26 26
27### 27###
28### Access Control List support. 28### Access Control List support.
29### 29###
30.if !empty(PKG_OPTIONS:Macl) 30.if !empty(PKG_OPTIONS:Macl)
31CONFIGURE_ARGS+= --with-acl-support 31CONFIGURE_ARGS+= --with-acl-support
32.else 32.else
33CONFIGURE_ARGS+= --without-acl-support 33CONFIGURE_ARGS+= --without-acl-support
34.endif 34.endif
35 35
36### 36###
37### Allow Samba to join as a member server of an Active Directory domain. 37### Allow Samba to join as a member server of an Active Directory domain.
38### 38###
39.if !empty(PKG_OPTIONS:Mads) 39.if !empty(PKG_OPTIONS:Mads)
40CONFIGURE_ARGS+= --with-ads 40CONFIGURE_ARGS+= --with-ads
41PLIST.ads= yes 41PLIST.ads= yes
42.else 42.else
43CONFIGURE_ARGS+= --without-ads 43CONFIGURE_ARGS+= --without-ads
 44CONFIGURE_ARGS+= --without-ad-dc
44.endif 45.endif
45 46
46### 47###
47### Native CUPS support for providing printing services. 48### Native CUPS support for providing printing services.
48### 49###
49.if !empty(PKG_OPTIONS:Mcups) 50.if !empty(PKG_OPTIONS:Mcups)
50. include "../../print/cups-base/buildlink3.mk" 51. include "../../print/cups-base/buildlink3.mk"
51CONFIGURE_ARGS+= --enable-cups 52CONFIGURE_ARGS+= --enable-cups
52PLIST.cups= yes 53PLIST.cups= yes
53INSTALLATION_DIRS+= libexec/cups/backend 54INSTALLATION_DIRS+= libexec/cups/backend
54.else 55.else
55CONFIGURE_ARGS+= --disable-cups 56CONFIGURE_ARGS+= --disable-cups
56.endif 57.endif
57 58
58### 59###
59### File Alteration Monitor support. 60### File Alteration Monitor support.
60### 61###
61.if !empty(PKG_OPTIONS:Mfam) 62.if !empty(PKG_OPTIONS:Mfam)
62. include "../../mk/fam.buildlink3.mk" 63. include "../../mk/fam.buildlink3.mk"
63CONFIGURE_ARGS+= --with-fam 64CONFIGURE_ARGS+= --with-fam
64PLIST.fam= yes 65PLIST.fam= yes
65.else 66.else
66CONFIGURE_ARGS+= --without-fam 67CONFIGURE_ARGS+= --without-fam
67.endif 68.endif
68 69
69### 70###
70### Support LDAP authentication and storage of Samba account information. 71### Support LDAP authentication and storage of Samba account information.
71### 72###
72# Active Directory requires ldap 73# Active Directory requires ldap
73.if !empty(PKG_OPTIONS:Mldap) || !empty(PKG_OPTIONS:Mads) 74.if !empty(PKG_OPTIONS:Mldap) || !empty(PKG_OPTIONS:Mads)
74. include "../../databases/openldap-client/buildlink3.mk" 75. include "../../databases/openldap-client/buildlink3.mk"
75CONFIGURE_ARGS+= --with-ldap 76CONFIGURE_ARGS+= --with-ldap
76PLIST.ldap= yes 77PLIST.ldap= yes
77.else 78.else
78CONFIGURE_ARGS+= --without-ldap 79CONFIGURE_ARGS+= --without-ldap
79.endif 80.endif
80 81
81### 82###
82### Support PAM authentication and build smbpass and winbind PAM modules. 83### Support PAM authentication and build smbpass and winbind PAM modules.
83### 84###
84.if !empty(PKG_OPTIONS:Mpam) 85.if !empty(PKG_OPTIONS:Mpam)
85. include "../../mk/pam.buildlink3.mk" 86. include "../../mk/pam.buildlink3.mk"
86 87
87CONFIGURE_ARGS+= --with-pam 88CONFIGURE_ARGS+= --with-pam
88CONFIGURE_ARGS+= --with-pammodulesdir=${SMB_PAMMODULES} 89CONFIGURE_ARGS+= --with-pammodulesdir=${SMB_PAMMODULES}
89PLIST.pam= yes 90PLIST.pam= yes
90INSTALLATION_DIRS+= ${EGDIR}/pam_smbpass 91INSTALLATION_DIRS+= ${EGDIR}/pam_smbpass
91.else 92.else
92CONFIGURE_ARGS+= --without-pam 93CONFIGURE_ARGS+= --without-pam
93.endif 94.endif
94 95
95### 96###
96### Support querying a PDC for domain user and group information, e.g., 97### Support querying a PDC for domain user and group information, e.g.,
97### through NSS or PAM. 98### through NSS or PAM.
98### 99###
99.if !empty(PKG_OPTIONS:Mwinbind) 100.if !empty(PKG_OPTIONS:Mwinbind)
100CONFIGURE_ARGS+= --with-winbind 101CONFIGURE_ARGS+= --with-winbind
101PLIST.winbind= yes 102PLIST.winbind= yes
102WINBINDD_RCD_SCRIPT= winbindd 103WINBINDD_RCD_SCRIPT= winbindd
103.else 104.else
104CONFIGURE_ARGS+= --without-winbind 105CONFIGURE_ARGS+= --without-winbind
105.endif 106.endif
106 107
107### 108###
108### Avahi DNS Service Discovery. 109### Avahi DNS Service Discovery.
109### 110###
110.if !empty(PKG_OPTIONS:Mavahi) 111.if !empty(PKG_OPTIONS:Mavahi)
111.include "../../net/avahi/buildlink3.mk" 112.include "../../net/avahi/buildlink3.mk"
112CONFIGURE_ARGS+= --enable-avahi 113CONFIGURE_ARGS+= --enable-avahi
113.else 114.else
114CONFIGURE_ARGS+= --disable-avahi 115CONFIGURE_ARGS+= --disable-avahi
115.endif 116.endif
116 117
117.if ${OPSYS} == "Linux" 118.if ${OPSYS} == "Linux"
118. if !empty(PKG_OPTIONS:Msnapper) 119. if !empty(PKG_OPTIONS:Msnapper)
119.include "../../sysutils/dbus/buildlink3.mk" 120.include "../../sysutils/dbus/buildlink3.mk"
120PLIST.snapper= yes 121PLIST.snapper= yes
121. else 122. else
122CONFIGURE_ARGS+= --with-shared-modules='!vfs_snapper' 123CONFIGURE_ARGS+= --with-shared-modules='!vfs_snapper'
123. endif 124. endif
124.endif 125.endif