Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
83 lines (64 sloc) 1.86 KB
# $NetBSD: options.mk,v 1.11 2012/06/12 15:46:01 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.proftpd
PKG_SUPPORTED_OPTIONS= pam inet6 wrap tls quota ldap proftpd-readme ban
PKG_OPTIONS_OPTIONAL_GROUPS+= sql
PKG_OPTIONS_GROUP.sql= mysql pgsql
PKG_SUGGESTED_OPTIONS= pam inet6
.include "../../mk/bsd.options.mk"
PLIST_VARS+= quota sql tls
.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
.include "../../security/tcp_wrappers/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mtls)
MODULES:= ${MODULES}:mod_tls
PLIST.tls= yes
.include "../../security/openssl/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mquota)
MODULES:= ${MODULES}:mod_quotatab:mod_quotatab_file
PLIST.quota= yes
.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.sql= yes
.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
Jump to Line
Something went wrong with that request. Please try again.