blob: 886662bae8de2ef23aa5656dde96f571b5b165fa (
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
|
# $NetBSD: options.mk,v 1.8 2008/12/28 08:42:01 kim Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.proftpd
PKG_SUGGESTED_OPTIONS= pam inet6
PKG_SUPPORTED_OPTIONS= pam inet6 wrap tls quota ldap proftpd-readme ban
PKG_OPTIONS_OPTIONAL_GROUPS+= sql
PKG_OPTIONS_GROUP.sql= mysql pgsql
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mpam)
CONFIGURE_ARGS+= --enable-auth-pam
.include "../../mk/pam.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-auth-pam
.endif
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
MODULES= # empty
.if !empty(PKG_OPTIONS:Mwrap)
MODULES:= ${MODULES}:mod_wrap
.endif
.if !empty(PKG_OPTIONS:Mtls)
MODULES:= ${MODULES}:mod_tls
.include "../../security/openssl/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mquota)
MODULES:= ${MODULES}:mod_quotatab:mod_quotatab_file
PLIST_SRC+= ${PKGDIR}/PLIST.mod_quota
.endif
.if !empty(PKG_OPTIONS:Mquota) && !empty(PKG_OPTIONS:Mmysql)
MODULES:= ${MODULES}:mod_quotatab_sql
.endif
.if !empty(PKG_OPTIONS:Mquota) && !empty(PKG_OPTIONS:Mpgsql)
MODULES:= ${MODULES}:mod_quotatab_sql
.endif
.if !empty(PKG_OPTIONS:Mquota) && !empty(PKG_OPTIONS:Mldap)
MODULES:= ${MODULES}:mod_quotatab_ldap
.endif
.if !empty(PKG_OPTIONS:Mldap)
MODULES:= ${MODULES}:mod_ldap
.include "../../databases/openldap-client/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mmysql)
MODULES:= ${MODULES}:mod_sql:mod_sql_mysql
PLIST_SRC+= ${PKGDIR}/PLIST.mod_sql
.include "../../mk/mysql.buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
MODULES:= ${MODULES}:mod_sql:mod_sql_postgres
.include "../../mk/pgsql.buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mproftpd-readme)
MODULES:= ${MODULES}:mod_readme
.endif
.if !empty(PKG_OPTIONS:Mban)
MODULES:= ${MODULES}:mod_ban
.endif
.if !empty(MODULES)
CONFIGURE_ARGS+= --with-modules=${MODULES:C/^://}
.endif
|