Annotation of pkgsrc/sysutils/lsof/options.mk, revision 1.1

1.1     ! sbd         1: # $NetBSD$
        !             2: 
        !             3: PKG_OPTIONS_VAR=               PKG_OPTIONS.lsof
        !             4: PKG_SUPPORTED_OPTIONS=         lsof-more-secure lsof-less-secure-sockets
        !             5: 
        !             6: .if defined(LSOF_MORE_SECURE)
        !             7: .  if !empty(LSOF_MORE_SECURE:M1)
        !             8: PKG_LEGACY_OPTIONS+=   lsof-more-secure
        !             9: PKG_OPTIONS_DEPRECATED_WARNINGS+=      "Deprecated variable LSOF_MORE_SECURE set to 1, use PKG_OPTIONS.lsof+=lsof-more-secure instead."
        !            10: .  elif !empty(LSOF_MORE_SECURE:M0)
        !            11: PKG_LEGACY_OPTIONS+=   -lsof-more-secure
        !            12: PKG_OPTIONS_DEPRECATED_WARNINGS+=      "Deprecated variable LSOF_MORE_SECURE set to 0, use PKG_OPTIONS.lsof+=-lsof-more-secure instead."
        !            13: .  endif
        !            14: .endif
        !            15: 
        !            16: .if defined(LSOF_LESS_SECURE_SOCKETS)
        !            17: .  if !empty(LSOF_LESS_SECURE_SOCKETS:M1)
        !            18: PKG_LEGACY_OPTIONS+=   lsof-less-secure-sockets
        !            19: PKG_OPTIONS_DEPRECATED_WARNINGS+=      "Deprecated variable LSOF_LESS_SECURE_SOCKETS set to 1, use PKG_OPTIONS.lsof+=lsof-less-secure-sockets instead."
        !            20: .  elif !empty(LSOF_LESS_SECURE_SOCKETS:M0)
        !            21: PKG_LEGACY_OPTIONS+=   -lsof-less-secure-sockets
        !            22: PKG_OPTIONS_DEPRECATED_WARNINGS+=      "Deprecated variable LSOF_LESS_SECURE_SOCKETS set to 0, use PKG_OPTIONS.lsof+=lsof-less-secure-sockets instead."
        !            23: .  endif
        !            24: .endif
        !            25: 
        !            26: .include "../../mk/bsd.options.mk"
        !            27: 
        !            28: ## Emulate what ./Customize does.
        !            29: post-configure:
        !            30:        ${RUN} cd ${WRKSRC}; ${MV} -f machine.h machine.h.orig ;        \
        !            31:        ${CAT} machine.h.orig > machine.h ;                             \
        !            32:        ${ECHO} "#undef HASSECURITY" >> machine.h ;                     \
        !            33:        ${ECHO} "#undef HASNOSOCKSECURITY" >> machine.h ;
        !            34: .if !empty(PKG_OPTIONS:Mlsof-more-secure)
        !            35:        ${ECHO} "#define HASSECURITY 1" >> ${WRKSRC}/machine.h
        !            36: .  if !empty(PKG_OPTIONS:Mlsof-less-secure-sockets)
        !            37:        ${ECHO} "#define HASNOSOCKSECURITY 1" >> ${WRKSRC}/machine.h
        !            38: .  endif
        !            39: .endif

CVSweb <webmaster@jp.NetBSD.org>