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