Samba is the standard Windows interoperability suite of programs for Linux and Unix. Samba is Free Software licensed under the GNU General Public License, the Samba project is a member of the Software Freedom Conservancy. Since 1992, Samba has provided secure, stable and fast file and print services for all clients using the SMB/CIFS protocol, such as all versions of DOS and Windows, OS/2, Linux and many others. Samba is an important component to seamlessly integrate Linux/Unix Servers and Desktops into Active Directory environments. It can function both as a domain controller or as a regular domain member. This package tracks 4.x branch release.
84 lines
2 KiB
Makefile
84 lines
2 KiB
Makefile
# $NetBSD: options.mk,v 1.1 2015/05/12 12:19:52 ryoon Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.samba4
|
|
PKG_SUPPORTED_OPTIONS= fam pam winbind # cups # cups option is broken for me.
|
|
PKG_SUGGESTED_OPTIONS= pam winbind
|
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
|
|
|
SAMBA_ACL_OPSYS= AIX Darwin FreeBSD HPUX IRIX Linux OSF1 SunOS
|
|
.if !empty(SAMBA_ACL_OPSYS:M${OPSYS})
|
|
PKG_SUPPORTED_OPTIONS+= acl
|
|
.endif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
###
|
|
### Access Control List support.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Macl)
|
|
CONFIGURE_ARGS+= --with-acl-support
|
|
.else
|
|
CONFIGURE_ARGS+= --without-acl-support
|
|
.endif
|
|
|
|
###
|
|
### Native CUPS support for providing printing services.
|
|
###
|
|
PLIST_VARS+= cups
|
|
.if !empty(PKG_OPTIONS:Mcups)
|
|
. include "../../print/cups/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-cups
|
|
PLIST.cups= yes
|
|
INSTALLATION_DIRS+= libexec/cups/backend
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-cups
|
|
.endif
|
|
|
|
###
|
|
### File Alteration Monitor support.
|
|
###
|
|
PLIST_VARS+= fam
|
|
.if !empty(PKG_OPTIONS:Mfam)
|
|
. include "../../mk/fam.buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-fam
|
|
PLIST.fam= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --without-fam
|
|
.endif
|
|
|
|
###
|
|
### Support PAM authentication and build smbpass and winbind PAM modules.
|
|
###
|
|
PLIST_VARS+= pam
|
|
.if !empty(PKG_OPTIONS:Mpam)
|
|
. include "../../mk/pam.buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-pam
|
|
CONFIGURE_ARGS+= --with-pam_smbpass
|
|
CONFIGURE_ARGS+= --with-pammodulesdir=${SMB_PAMMODULES}
|
|
PLIST.pam= yes
|
|
INSTALLATION_DIRS+= ${EGDIR}/pam_smbpass
|
|
|
|
.PHONY: samba-pam-smbpass-install
|
|
post-install: samba-pam-smbpass-install
|
|
samba-pam-smbpass-install:
|
|
cd ${WRKSRC}/source3/pam_smbpass/samples; for f in [a-z]*; do \
|
|
${INSTALL_DATA} $${f} \
|
|
${DESTDIR}${PREFIX}/${EGDIR}/pam_smbpass/$${f}; \
|
|
done
|
|
.else
|
|
CONFIGURE_ARGS+= --without-pam
|
|
.endif
|
|
|
|
###
|
|
### Support querying a PDC for domain user and group information, e.g.,
|
|
### through NSS or PAM.
|
|
###
|
|
PLIST_VARS+= winbind
|
|
.if !empty(PKG_OPTIONS:Mwinbind)
|
|
CONFIGURE_ARGS+= --with-winbind
|
|
PLIST.winbind= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --without-winbind
|
|
.endif
|