blob: 52be7c1d4d8871f296c4336401d09d2ba18fd210 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
# $NetBSD: options.mk,v 1.4 2005/05/31 10:01:39 dillo Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.courier-authlib
PKG_SUPPORTED_OPTIONS= PAM bdb ldap mysql pgsql
PKG_SUGGESTED_OPTIONS= bdb
.include "../../mk/bsd.options.mk"
###
### UNIX (shadow) password authentication
###
AUTHLIB_PLIST+= ${AUTHLIBDIR}/libauthpwd.la
AUTHLIB_PLIST+= ${AUTHLIBDIR}/libauthshadow.la
###
### PAM authentication
###
.if !empty(PKG_OPTIONS:MPAM)
. include "../../mk/pam.buildlink3.mk"
CONFIGURE_ARGS+= --with-authpam
AUTHLIB_PLIST+= ${AUTHLIBDIR}/libauthpam.la
.else
CONFIGURE_ARGS+= --without-authpam
.endif
###
### Berkeley DB password authentication
###
.if !empty(PKG_OPTIONS:Mbdb)
USE_DB185= yes
. include "../../mk/bdb.buildlink3.mk"
CONFIGURE_ARGS+= --with-db=db
CONFIGURE_ARGS+= --with-authuserdb
AUTHLIB_PLIST+= ${AUTHLIBDIR}/libauthuserdb.la
AUTHLIB_PLIST+= ${AUTHLIBEXECDIR}/makedatprog
AUTHLIB_PLIST+= sbin/vchkpw2userdb
AUTHLIB_PLIST+= sbin/pw2userdb
AUTHLIB_PLIST+= sbin/makeuserdb
AUTHLIB_PLIST+= sbin/userdb
AUTHLIB_PLIST+= sbin/userdbpw
AUTHLIB_PLIST+= sbin/userdb-test-cram-md5
.else
CONFIGURE_ARGS+= --without-authuserdb
PLIST_SUBST+= BDB="@comment "
.endif
###
### LDAP authentication
###
.if !empty(PKG_OPTIONS:Mldap)
. include "../../databases/openldap/buildlink3.mk"
CONFIGURE_ARGS+= --with-authldap
AUTHLIB_PLIST+= ${AUTHLIBDIR}/libauthldap.la
AUTHLIB_PLIST+= ${AUTHEXAMPLEDIR}/authldaprc.dist
AUTHLIB_PLIST+= ${AUTHEXAMPLEDIR}/authldap.schema
AUTHLIB_PLIST+= ${AUTHDOCDIR}/README.ldap
GEN_FILES+= authldaprc
POST_INSTALL_TARGETS+= post-install-ldap
post-install-ldap:
${INSTALL_DATA} ${WRKSRC}/README.ldap ${DOCDIR}
.else
CONFIGURE_ARGS+= --without-authldap
.endif
###
### MySQL authentication
###
.if !empty(PKG_OPTIONS:Mmysql)
. include "../../databases/mysql4-client/buildlink3.mk"
CONFIGURE_ARGS+= --with-authmysql
AUTHLIB_PLIST+= ${AUTHLIBDIR}/libauthmysql.la
AUTHLIB_PLIST+= ${AUTHEXAMPLEDIR}/authmysqlrc.dist
AUTHLIB_PLIST+= ${AUTHDOCDIR}/README.authmysql.html
GEN_FILES+= authmysqlrc
POST_INSTALL_TARGETS+= post-install-mysql
post-install-mysql:
${INSTALL_DATA} ${WRKSRC}/README.authmysql.html ${DOCDIR}
.else
CONFIGURE_ARGS+= --without-authmysql
.endif
###
### PostgreSQL authentication
###
.if !empty(PKG_OPTIONS:Mpgsql)
#
# Prevent auto-adding gettext libraries to LIBS -- we only want them
# used when we link with -lpq.
#
BROKEN_GETTEXT_DETECTION= no
. include "../../mk/pgsql.buildlink3.mk"
CONFIGURE_ARGS+= --with-authpgsql
CONFIGURE_ENV+= PGSQL_LIBS="${BUILDLINK_LDADD.${PGSQL_TYPE}}"
AUTHLIB_PLIST+= ${AUTHLIBDIR}/libauthpgsql.la
AUTHLIB_PLIST+= ${AUTHEXAMPLEDIR}/authpgsqlrc.dist
AUTHLIB_PLIST+= ${AUTHDOCDIR}/README.authpostgres.html
GEN_FILES+= authpgsqlrc
POST_INSTALL_TARGETS+= post-install-pgsql
post-install-pgsql:
${INSTALL_DATA} ${WRKSRC}/README.authpostgres.html ${DOCDIR}
.else
CONFIGURE_ARGS+= --without-authpgsql
.endif
###
### We never build the following modules (unsupported by author).
###
CONFIGURE_ARGS+= --without-authvchkpw
CONFIGURE_ARGS+= --without-authcustom
|