2011-01-12 08:31:00 +01:00
|
|
|
# $NetBSD: options.mk,v 1.10 2011/01/12 07:31:00 adam Exp $
|
2005-06-23 00:43:37 +02:00
|
|
|
|
2005-11-25 14:37:30 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.proftpd
|
2008-12-28 09:42:01 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS= pam inet6
|
|
|
|
PKG_SUPPORTED_OPTIONS= pam inet6 wrap tls quota ldap proftpd-readme ban
|
2005-11-25 16:02:23 +01:00
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS+= sql
|
|
|
|
PKG_OPTIONS_GROUP.sql= mysql pgsql
|
2005-06-23 00:43:37 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2011-01-12 08:31:00 +01:00
|
|
|
PLIST_VARS+= quota sql tls
|
|
|
|
|
2005-06-23 00:43:37 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mpam)
|
|
|
|
CONFIGURE_ARGS+= --enable-auth-pam
|
|
|
|
.include "../../mk/pam.buildlink3.mk"
|
2008-12-28 09:42:01 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-auth-pam
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
2005-06-23 00:43:37 +02:00
|
|
|
.endif
|
|
|
|
|
2005-11-25 14:37:30 +01:00
|
|
|
MODULES= # empty
|
2005-06-23 00:43:37 +02:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mwrap)
|
2005-11-25 14:37:30 +01:00
|
|
|
MODULES:= ${MODULES}:mod_wrap
|
2010-11-07 13:21:09 +01:00
|
|
|
.include "../../security/tcp_wrappers/buildlink3.mk"
|
2005-06-23 00:43:37 +02:00
|
|
|
.endif
|
|
|
|
|
2007-01-24 06:22:01 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mtls)
|
|
|
|
MODULES:= ${MODULES}:mod_tls
|
2011-01-12 08:31:00 +01:00
|
|
|
PLIST.tls= yes
|
2007-01-24 06:22:01 +01:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2005-06-23 00:43:37 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mquota)
|
2006-02-13 10:16:05 +01:00
|
|
|
MODULES:= ${MODULES}:mod_quotatab:mod_quotatab_file
|
2011-01-12 08:31:00 +01:00
|
|
|
PLIST.quota= yes
|
2006-02-13 10:16:05 +01:00
|
|
|
.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
|
2005-11-25 14:37:30 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mldap)
|
|
|
|
MODULES:= ${MODULES}:mod_ldap
|
2006-05-31 20:22:23 +02:00
|
|
|
.include "../../databases/openldap-client/buildlink3.mk"
|
2005-11-25 14:37:30 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mmysql)
|
|
|
|
MODULES:= ${MODULES}:mod_sql:mod_sql_mysql
|
2011-01-12 08:31:00 +01:00
|
|
|
PLIST.sql= yes
|
2005-11-25 14:37:30 +01:00
|
|
|
.include "../../mk/mysql.buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mpgsql)
|
2005-11-25 16:02:23 +01:00
|
|
|
MODULES:= ${MODULES}:mod_sql:mod_sql_postgres
|
2005-11-25 14:37:30 +01:00
|
|
|
.include "../../mk/pgsql.buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2005-11-25 18:20:10 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mproftpd-readme)
|
2005-11-25 14:37:30 +01:00
|
|
|
MODULES:= ${MODULES}:mod_readme
|
|
|
|
.endif
|
2005-06-23 00:43:37 +02:00
|
|
|
|
2008-12-28 09:42:01 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mban)
|
|
|
|
MODULES:= ${MODULES}:mod_ban
|
|
|
|
.endif
|
|
|
|
|
2005-06-23 00:43:37 +02:00
|
|
|
.if !empty(MODULES)
|
2005-11-25 14:37:30 +01:00
|
|
|
CONFIGURE_ARGS+= --with-modules=${MODULES:C/^://}
|
2005-06-23 00:43:37 +02:00
|
|
|
.endif
|