[BACK]Return to options.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / samba

Annotation of pkgsrc/net/samba/options.mk, Revision 1.1

1.1     ! jlam        1: # $NetBSD: Makefile.options,v 1.1 2004/07/30 21:05:41 jlam Exp $
        !             2:
        !             3: # Global and legacy options
        !             4: .if defined(USE_CUPS) || defined(USE_PAM) || defined(USE_OPENLDAP) || \
        !             5:     defined(SAMBA_WITH_ADS) || defined(SAMBA_USE_LDAP) || \
        !             6:     defined(SAMBA_USE_LDAP_COMPAT)
        !             7: .  if !defined(PKG_OPTIONS.samba)
        !             8: .    if defined(USE_CUPS) && !empty(USE_CUPS:M[yY][eE][sS])
        !             9: PKG_OPTIONS.samba+=    cups
        !            10: .    endif
        !            11: .    if defined(USE_PAM)
        !            12: PKG_OPTIONS.samba+=    PAM
        !            13: .    endif
        !            14: .    if defined(USE_OPENLDAP) && !empty(USE_OPENLDAP:M[yY][eE][sS])
        !            15: PKG_OPTIONS.samba+=    ldap
        !            16: .    endif
        !            17: .    if defined(SAMBA_WITH_ADS) && !empty(SAMBA_WITH_ADS:M[yY][eE][sS])
        !            18: PKG_OPTIONS.samba+=    ads
        !            19: .    endif
        !            20: .    if defined(SAMBA_USE_LDAP)
        !            21: PKG_OPTIONS.samba+=    ldap
        !            22: .    endif
        !            23: .    if defined(SAMBA_USE_LDAP_COMPAT) && \
        !            24:         !empty(SAMBA_USE_LDAP_COMPAT:M[yY][eE][sS])
        !            25: PKG_OPTIONS.samba+=    ldap-compat
        !            26: .    endif
        !            27: .  endif
        !            28: .endif
        !            29:
        !            30: PKG_OPTIONS_VAR=       PKG_OPTIONS.samba
        !            31: PKG_SUPPORTED_OPTIONS= PAM ads cups ldap ldap-compat
        !            32: .include "../../mk/bsd.options.mk"
        !            33:
        !            34: ###
        !            35: ### Support PAM authentication and build smbpass and winbind PAM modules.
        !            36: ###
        !            37: .if !empty(PKG_OPTIONS:MPAM)
        !            38: .  include "../../security/PAM/module.mk"
        !            39: CONFIGURE_ARGS+=       --with-pam
        !            40: CONFIGURE_ARGS+=       --with-pam_smbpass
        !            41: PLIST_SUBST+=          PAM=
        !            42: .else
        !            43: PLIST_SUBST+=          PAM="@comment "
        !            44: .endif
        !            45:
        !            46: ###
        !            47: ### Allow Samba to join as a member server of an Active Directory domain.
        !            48: ###
        !            49: .if !empty(PKG_OPTIONS:Mads)
        !            50: .  include "../../mk/krb5.buildlink3.mk"
        !            51: PKG_OPTIONS+=          ldap
        !            52: CONFIGURE_ARGS+=       --with-ads
        !            53: CONFIGURE_ARGS+=       --with-krb5=${KRB5BASE}
        !            54: .else
        !            55: CONFIGURE_ARGS+=       --without-ads
        !            56: CONFIGURE_ARGS+=       --without-krb5
        !            57: .endif
        !            58:
        !            59: ###
        !            60: ### Native CUPS support for printing
        !            61: ###
        !            62: .if !empty(PKG_OPTIONS:Mcups)
        !            63: .  include "../../print/cups/buildlink3.mk"
        !            64: CONFIGURE_ARGS+=       --enable-cups
        !            65: .else
        !            66: CONFIGURE_ARGS+=       --disable-cups
        !            67: .endif
        !            68:
        !            69: ###
        !            70: ### Support Samba-2.x LDAP password and account databases.
        !            71: ###
        !            72: .if !empty(PKG_OPTIONS:Mldap-compat)
        !            73: PKG_OPTIONS+=          ldap
        !            74: CONFIGURE_ARGS+=       --with-ldapsam
        !            75: .endif
        !            76:
        !            77: ###
        !            78: ### Support LDAP authentication and storage of Samba account information.
        !            79: ###
        !            80: .if !empty(PKG_OPTIONS:Mldap)
        !            81: .  include "../../databases/openldap/buildlink3.mk"
        !            82: CONFIGURE_ARGS+=       --with-ldap
        !            83: .else
        !            84: CONFIGURE_ARGS+=       --without-ldap
        !            85: .endif
        !            86:
        !            87: ###
        !            88: ### Only Linux supports smbmount for mounting a Samba share into the
        !            89: ### filesystem.
        !            90: ###
        !            91: .if ${OPSYS} == "Linux"
        !            92: CONFIGURE_ARGS+=       --with-smbmount
        !            93: PLIST_SUBST+=          SMBMOUNT=
        !            94: .else
        !            95: PLIST_SUBST+=          SMBMOUNT="@comment "
        !            96: .endif

CVSweb <webmaster@jp.NetBSD.org>