| @@ -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 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.samba4 | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.samba4 |
4 | PKG_SUPPORTED_OPTIONS= ads avahi fam ldap pam winbind # cups # cups option is broken for me. | | 4 | PKG_SUPPORTED_OPTIONS= ads avahi fam ldap pam winbind # cups # cups option is broken for me. |
5 | PKG_SUGGESTED_OPTIONS= avahi ldap pam winbind | | 5 | PKG_SUGGESTED_OPTIONS= avahi ldap pam winbind |
6 | | | 6 | |
7 | .include "../../mk/bsd.fast.prefs.mk" | | 7 | .include "../../mk/bsd.fast.prefs.mk" |
8 | | | 8 | |
9 | SAMBA_ACL_OPSYS= AIX Darwin FreeBSD HPUX IRIX Linux NetBSD OSF1 SunOS | | 9 | SAMBA_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}) |
11 | PKG_SUPPORTED_OPTIONS+= acl | | 11 | PKG_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].*) |
15 | PKG_SUGGESTED_OPTIONS+= ads | | 15 | PKG_SUGGESTED_OPTIONS+= ads |
16 | .endif | | 16 | .endif |
17 | | | 17 | |
18 | .if ${OPSYS} == "Linux" | | 18 | .if ${OPSYS} == "Linux" |
19 | PKG_SUPPORTED_OPTIONS+= snapper | | 19 | PKG_SUPPORTED_OPTIONS+= snapper |
20 | PKG_SUGGESTED_OPTIONS+= snapper | | 20 | PKG_SUGGESTED_OPTIONS+= snapper |
21 | .endif | | 21 | .endif |
22 | | | 22 | |
23 | .include "../../mk/bsd.options.mk" | | 23 | .include "../../mk/bsd.options.mk" |
24 | | | 24 | |
25 | PLIST_VARS+= ads cups fam ldap pam snapper winbind | | 25 | PLIST_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) |
31 | CONFIGURE_ARGS+= --with-acl-support | | 31 | CONFIGURE_ARGS+= --with-acl-support |
32 | .else | | 32 | .else |
33 | CONFIGURE_ARGS+= --without-acl-support | | 33 | CONFIGURE_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) |
40 | CONFIGURE_ARGS+= --with-ads | | 40 | CONFIGURE_ARGS+= --with-ads |
41 | PLIST.ads= yes | | 41 | PLIST.ads= yes |
42 | .else | | 42 | .else |
43 | CONFIGURE_ARGS+= --without-ads | | 43 | CONFIGURE_ARGS+= --without-ads |
| | | 44 | CONFIGURE_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" |
51 | CONFIGURE_ARGS+= --enable-cups | | 52 | CONFIGURE_ARGS+= --enable-cups |
52 | PLIST.cups= yes | | 53 | PLIST.cups= yes |
53 | INSTALLATION_DIRS+= libexec/cups/backend | | 54 | INSTALLATION_DIRS+= libexec/cups/backend |
54 | .else | | 55 | .else |
55 | CONFIGURE_ARGS+= --disable-cups | | 56 | CONFIGURE_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" |
63 | CONFIGURE_ARGS+= --with-fam | | 64 | CONFIGURE_ARGS+= --with-fam |
64 | PLIST.fam= yes | | 65 | PLIST.fam= yes |
65 | .else | | 66 | .else |
66 | CONFIGURE_ARGS+= --without-fam | | 67 | CONFIGURE_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" |
75 | CONFIGURE_ARGS+= --with-ldap | | 76 | CONFIGURE_ARGS+= --with-ldap |
76 | PLIST.ldap= yes | | 77 | PLIST.ldap= yes |
77 | .else | | 78 | .else |
78 | CONFIGURE_ARGS+= --without-ldap | | 79 | CONFIGURE_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 | |
87 | CONFIGURE_ARGS+= --with-pam | | 88 | CONFIGURE_ARGS+= --with-pam |
88 | CONFIGURE_ARGS+= --with-pammodulesdir=${SMB_PAMMODULES} | | 89 | CONFIGURE_ARGS+= --with-pammodulesdir=${SMB_PAMMODULES} |
89 | PLIST.pam= yes | | 90 | PLIST.pam= yes |
90 | INSTALLATION_DIRS+= ${EGDIR}/pam_smbpass | | 91 | INSTALLATION_DIRS+= ${EGDIR}/pam_smbpass |
91 | .else | | 92 | .else |
92 | CONFIGURE_ARGS+= --without-pam | | 93 | CONFIGURE_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) |
100 | CONFIGURE_ARGS+= --with-winbind | | 101 | CONFIGURE_ARGS+= --with-winbind |
101 | PLIST.winbind= yes | | 102 | PLIST.winbind= yes |
102 | WINBINDD_RCD_SCRIPT= winbindd | | 103 | WINBINDD_RCD_SCRIPT= winbindd |
103 | .else | | 104 | .else |
104 | CONFIGURE_ARGS+= --without-winbind | | 105 | CONFIGURE_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" |
112 | CONFIGURE_ARGS+= --enable-avahi | | 113 | CONFIGURE_ARGS+= --enable-avahi |
113 | .else | | 114 | .else |
114 | CONFIGURE_ARGS+= --disable-avahi | | 115 | CONFIGURE_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" |
120 | PLIST.snapper= yes | | 121 | PLIST.snapper= yes |
121 | . else | | 122 | . else |
122 | CONFIGURE_ARGS+= --with-shared-modules='!vfs_snapper' | | 123 | CONFIGURE_ARGS+= --with-shared-modules='!vfs_snapper' |
123 | . endif | | 124 | . endif |
124 | .endif | | 125 | .endif |