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

Annotation of pkgsrc/net/bind914/options.mk, Revision 1.4

1.4     ! rillig      1: # $NetBSD: options.mk,v 1.3 2019/11/03 11:45:30 rillig Exp $
1.1       taca        2:
                      3: PKG_OPTIONS_VAR=       PKG_OPTIONS.bind914
                      4: PKG_SUPPORTED_OPTIONS= bind-dig-sigchase bind-xml-statistics-server
                      5: PKG_SUPPORTED_OPTIONS+=        bind-json-statistics-server blacklist
                      6: PKG_SUPPORTED_OPTIONS+=        threads readline mysql pgsql ldap dlz-filesystem
1.2       taca        7: PKG_SUPPORTED_OPTIONS+=        geoip tuning dnstap # pkcs11
1.1       taca        8: PKG_SUGGESTED_OPTIONS+=        readline
                      9:
                     10: PLIST_VARS+=   dnstap pkcs11
                     11:
                     12: PTHREAD_OPTS+=         native
                     13: .include "../../mk/pthread.buildlink3.mk"
                     14:
                     15: .if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none") || \
                     16:        !empty(MACHINE_PLATFORM:MNetBSD-*-vax) || \
                     17:        !empty(MACHINE_PLATFORM:MNetBSD-*-sparc) || \
                     18:        !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) || \
                     19:        !empty(MACHINE_PLATFORM:MNetBSD-*-m68k)
                     20: # don't touch PKG_SUGGESTED_OPTIONS
                     21: .else
                     22: PKG_SUGGESTED_OPTIONS+=        threads
                     23: .endif
                     24:
                     25: .if ${OPSYS} == "NetBSD"
1.3       rillig     26: .  if !empty(OS_VERSION:M[8-9].*)
1.1       taca       27: PKG_SUGGESTED_OPTIONS+=        blacklist
1.3       rillig     28: .  endif
1.1       taca       29: .endif
                     30:
                     31: .include "../../mk/bsd.options.mk"
                     32:
                     33: ###
                     34: ### The mysql pgsql ldap dlz-filesystem options are all for BIND
                     35: ### DLZ (Dynamically Loadable Zones) functionality
                     36: ###
                     37: ### NOTE: bdb is excluded on purpose as pkgsrc does not contain
                     38: ###       a bdb v4.1 or 4.2 package which is what BIND needs.
                     39: ###       The majority of these are compile tested only
                     40: ###
                     41:
                     42: .if !empty(PKG_OPTIONS:Mmysql)
                     43: .include "../../mk/mysql.buildlink3.mk"
                     44: CONFIGURE_ARGS+=       --with-dlz-mysql=${BUILDLINK_PREFIX.mysql-client}
                     45: .endif
                     46:
                     47: .if !empty(PKG_OPTIONS:Mpgsql)
                     48: .include "../../mk/pgsql.buildlink3.mk"
                     49: CONFIGURE_ARGS+=       --with-dlz-postgres=${BUILDLINK_PREFIX.${PGSQL_TYPE}}
                     50: CONFIGURE_ENV+=                ac_cv_path_PG_CONFIG=${PREFIX}/bin/pg_config
                     51: .endif
                     52:
                     53: .if !empty(PKG_OPTIONS:Mldap)
                     54: .include "../../databases/openldap-client/buildlink3.mk"
                     55: CONFIGURE_ARGS+=       --with-dlz-ldap=${BUILDLINK_PREFIX.openldap-client}
                     56: .endif
                     57:
                     58: .if !empty(PKG_OPTIONS:Mdlz-filesystem)
                     59: CONFIGURE_ARGS+=       --with-dlz-filesystem
                     60: .endif
                     61:
                     62: .if !empty(PKG_OPTIONS:Mblacklist)
                     63: CONFIGURE_ARGS+=       --with-blacklist=yes
                     64: .else
                     65: CONFIGURE_ARGS+=       --with-blacklist=no
                     66: .endif
                     67:
                     68: .if !empty(PKG_OPTIONS:Mgeoip)
                     69: CONFIGURE_ARGS+=       --with-geoip=${PREFIX}
                     70: LDFLAGS+=              -lGeoIP
                     71: .include "../../net/GeoIP/buildlink3.mk"
                     72: .endif
                     73:
                     74: .if !empty(PKG_OPTIONS:Mpkcs11)
                     75: CONFIGURE_ARGS+=       --enable-native-pkcs11
                     76: PLIST.pkcs11=          yes
                     77: .else
                     78: CONFIGURE_ARGS+=       --disable-native-pkcs11
                     79: .endif
                     80:
                     81: .if !empty(PKG_OPTIONS:Mtuning)
                     82: CONFIGURE_ARGS+=       --with-tuning=large
                     83: .endif
                     84:
                     85: .if !empty(PKG_OPTIONS:Mdnstap)
                     86: CONFIGURE_ARGS+=       --enable-dnstap
                     87: PLIST.dnstap=          yes
                     88: .include "../../net/fstrm/buildlink3.mk"
                     89: .include "../../devel/protobuf/buildlink3.mk"
                     90: .include "../../devel/protobuf-c/buildlink3.mk"
                     91: .endif
                     92:
                     93: ###
                     94: ### The statistics server in bind99 and later needs libxml2
                     95: ###
                     96: .if !empty(PKG_OPTIONS:Mbind-xml-statistics-server)
                     97: .include "../../textproc/libxml2/buildlink3.mk"
                     98: CONFIGURE_ARGS+=       --with-libxml2
                     99: LDFLAGS+=              -lxml2
                    100: .else
                    101: CONFIGURE_ARGS+=       --without-libxml2
                    102: .endif
                    103:
                    104: ###
                    105: ### The statistics server in bind911 and later supports json
                    106: ###
                    107: .if !empty(PKG_OPTIONS:Mbind-json-statistics-server)
                    108: .include "../../textproc/json-c/buildlink3.mk"
                    109: CONFIGURE_ARGS+=       --with-libjson
                    110: .else
                    111: CONFIGURE_ARGS+=       --without-libjson
                    112: .endif
                    113:
                    114: ###
                    115: ### pthreads support (also see magic above)
                    116: ###
                    117: .if !empty(PKG_OPTIONS:Mthreads)
                    118: PTHREAD_AUTO_VARS=     yes
                    119: .endif
                    120:
                    121: ###
                    122: ### readline support in dig(1) and nsupdate(1).
                    123: ###
                    124: .if !empty(PKG_OPTIONS:Mreadline)
                    125: .include "../../mk/readline.buildlink3.mk"
                    126: CONFIGURE_ARGS+=       --with-readline
                    127: .else
                    128: CONFIGURE_ARGS+=       --without-readline
                    129: .endif
                    130:
                    131: ###
                    132: ### dig(1) option +sigchase for DNSSEC signature chasing
                    133: ###
                    134: .if !empty(PKG_OPTIONS:Mbind-dig-sigchase)
                    135: # If anything else needs to add entries to STD_CDEFINES, this will need
                    136: # to be changed so that the two can cooperate.
                    137: CONFIGURE_ENV+=                STD_CDEFINES=-DDIG_SIGCHASE=1
                    138: .endif

CVSweb <webmaster@jp.NetBSD.org>