mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
- Use OPTIONS.
- Obey the default BDB version defined in bsd.database.mk.
This commit is contained in:
parent
1018eae50c
commit
a60962f145
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197299
@ -42,16 +42,14 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
|
||||
--with-rc4=openssl \
|
||||
--with-saslauthd=${SASLAUTHD_RUNPATH}
|
||||
|
||||
.if defined(WITH_BDB_VER)
|
||||
.if ${WITH_BDB_VER} == 4
|
||||
USE_BDB= 40
|
||||
.elif ${WITH_BDB_VER} != 3 && ${WITH_BDB_VER} != 41 && \
|
||||
${WITH_BDB_VER} != 42 && ${WITH_BDB_VER} != 43 && \
|
||||
${WITH_BDB_VER} != 44 && ${WITH_BDB_VER} != 45 && ${WITH_BDB_VER} != 46
|
||||
IGNORE= "cannot install: WITH_BDB_VER must be 3, 4, 41, 42, 43, 44, 45 or 46"
|
||||
.endif
|
||||
USE_BDB?= ${WITH_BDB_VER}
|
||||
BDB_SUFFIX?= ${WITH_BDB_VER}
|
||||
OPTIONS= BDB "Use Berkeley DB" off \
|
||||
OPENLDAP "Use OpenLDAP" off \
|
||||
HTTPFORM "Enable HTTP form authentication" off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_BDB)
|
||||
USE_BDB= yes
|
||||
CONFIGURE_ARGS+=--with-dblib=berkeley --with-bdb-libdir=${LOCALBASE}/lib \
|
||||
--with-bdb-incdir=${BDB_INCLUDE_DIR} \
|
||||
--with-bdb=${BDB_LIB_NAME}
|
||||
@ -59,13 +57,9 @@ CONFIGURE_ARGS+=--with-dblib=berkeley --with-bdb-libdir=${LOCALBASE}/lib \
|
||||
CONFIGURE_ARGS+=--with-dblib=ndbm
|
||||
.endif
|
||||
|
||||
.if defined(WITH_OPENLDAP_VER)
|
||||
WITH_OPENLDAP= yes
|
||||
WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
|
||||
.endif
|
||||
.if defined(WITH_OPENLDAP)
|
||||
.if defined(WANT_OPENLDAP_VER) && ${WANT_OPENLDAP_VER} == 12
|
||||
BROKEN= "this port requires OpenLDAP >= 2.0"
|
||||
.if defined(WITH_OPENLDAP_VER)
|
||||
WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
|
||||
.endif
|
||||
USE_OPENLDAP= yes
|
||||
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
|
||||
@ -75,8 +69,6 @@ CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
|
||||
CONFIGURE_ARGS+=--enable-httpform
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if !defined(WITHOUT_GSSAPI) && defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.so)
|
||||
CONFIGURE_ARGS+=--enable-gssapi=${KRB5_HOME} --with-gss_impl=mit
|
||||
.elif !defined(WITHOUT_GSSAPI) && defined(HEIMDAL_HOME) && exists(${HEIMDAL_HOME}/lib/libgssapi.a)
|
||||
|
@ -54,15 +54,25 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
|
||||
--with-rc4=openssl \
|
||||
--with-saslauthd=${SASLAUTHD_RUNPATH}
|
||||
|
||||
.if defined(WITH_BDB_VER)
|
||||
.if ${WITH_BDB_VER} == 4
|
||||
USE_BDB= 40
|
||||
.elif ${WITH_BDB_VER} != 3 && ${WITH_BDB_VER} != 41 && \
|
||||
${WITH_BDB_VER} != 42 && ${WITH_BDB_VER} != 43 && \
|
||||
${WITH_BDB_VER} != 44 && ${WITH_BDB_VER} != 45 && ${WITH_BDB_VER} != 46
|
||||
IGNORE= "cannot install: WITH_BDB_VER must be 3, 4, 41, 42, 43, 44, 45 or 46"
|
||||
.endif
|
||||
USE_BDB?= ${WITH_BDB_VER}
|
||||
OPTIONS= BDB "Use Berkeley DB" off \
|
||||
MYSQL "Use MySQL" off \
|
||||
PGSQL "Use PostgreSQL" off \
|
||||
SQLITE "Use SQLite" off \
|
||||
DEV_URANDOM "Use /dev/urandom" off \
|
||||
ALWAYSTRUE "Enable the alwaystrue password verifier" off \
|
||||
KEEP_DB_OPEN "Keep handle to Berkeley DB open" off \
|
||||
AUTHDAEMOND "Enable use of authdaemon" on \
|
||||
LOGIN "Enable LOGIN authentication" on \
|
||||
PLAIN "Enable PLAIN authentication" on \
|
||||
CRAM "Enable CRAM-MD5 authentication" on \
|
||||
DIGEST "Enable DIGEST-MD5 authentication" on \
|
||||
OTP "Enable OTP authentication" on \
|
||||
NTLM "Enable NTLM authentication" on
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_BDB)
|
||||
USE_BDB= yes
|
||||
CONFIGURE_ARGS+=--with-dblib=berkeley --with-bdb-libdir=${LOCALBASE}/lib \
|
||||
--with-bdb-incdir=${BDB_INCLUDE_DIR} \
|
||||
--with-bdb=${BDB_LIB_NAME}
|
||||
@ -72,12 +82,6 @@ CONFIGURE_ARGS+=--with-dblib=ndbm
|
||||
SASLDB_NAME= sasldb2.db
|
||||
.endif
|
||||
|
||||
.if defined(WITH_MYSQL_VER)
|
||||
WITH_MYSQL= yes
|
||||
.if ${WITH_MYSQL_VER} == 3
|
||||
WANT_MYSQL_VER= 323
|
||||
.endif
|
||||
.endif
|
||||
.if defined(WITH_MYSQL)
|
||||
USE_MYSQL= yes
|
||||
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE}
|
||||
@ -154,8 +158,6 @@ NTLM= "@comment "
|
||||
CONFIGURE_ARGS+=--enable-ntlm
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
CPPFLAGS+= -fPIC
|
||||
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
|
||||
|
Loading…
Reference in New Issue
Block a user