pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/proftpd Activate the options. Patch from Geert Hen...
details: https://anonhg.NetBSD.org/pkgsrc/rev/675e5a55497c
branches: trunk
changeset: 503685:675e5a55497c
user: martti <martti%pkgsrc.org@localhost>
date: Fri Nov 25 13:37:30 2005 +0000
description:
Activate the options. Patch from Geert Hendrickx.
diffstat:
net/proftpd/options.mk | 50 +++++++++++++++++++++++++-------------------------
1 files changed, 25 insertions(+), 25 deletions(-)
diffs (73 lines):
diff -r 47c1541a0be0 -r 675e5a55497c net/proftpd/options.mk
--- a/net/proftpd/options.mk Fri Nov 25 02:01:15 2005 +0000
+++ b/net/proftpd/options.mk Fri Nov 25 13:37:30 2005 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.1 2005/06/22 22:43:37 salo Exp $
+# $NetBSD: options.mk,v 1.2 2005/11/25 13:37:30 martti Exp $
#
-PKG_OPTIONS_VAR = PKG_OPTIONS.proftpd
-PKG_SUPPORTED_OPTIONS = pam wrap quota
+PKG_OPTIONS_VAR= PKG_OPTIONS.proftpd
+PKG_SUPPORTED_OPTIONS= pam wrap quota ldap mysql pgsql readme
.include "../../mk/bsd.options.mk"
@@ -11,35 +11,35 @@
.include "../../mk/pam.buildlink3.mk"
.endif
-MODULES=#defined
+MODULES= # empty
.if !empty(PKG_OPTIONS:Mwrap)
-MODULES:=${MODULES}mod_wrap
+MODULES:= ${MODULES}:mod_wrap
.endif
.if !empty(PKG_OPTIONS:Mquota)
-MODULES:=${MODULES}mod_quota
+MODULES:= ${MODULES}:mod_quota
+.endif
+
+.if !empty(PKG_OPTIONS:Mldap)
+MODULES:= ${MODULES}:mod_ldap
+.include "../../databases/openldap/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mmysql)
+MODULES:= ${MODULES}:mod_sql:mod_sql_mysql
+.include "../../mk/mysql.buildlink3.mk"
.endif
-## .if defined(PROFTPD_USE_LDAP) && ${PROFTPD_USE_LDAP} == "YES"
-## MODULES:= ${MODULES}:mod_ldap
-## DEPENDS+= openldap-[0-9]*:../../databases/openldap
-## .endif
-##
-## .if defined(PROFTPD_USE_MYSQL) && ${PROFTPD_USE_MYSQL} == "YES"
-## MODULES:= ${MODULES}:mod_sql:mod_sql_mysql
-## DEPENDS+= mysql-client-[0-9]*:../../databases/mysql-client
-## .endif
-##
-## .if defined(PROFTPD_USE_POSTGRES) && ${PROFTPD_USE_POSTGRES} == "YES"
-## MODULES:= ${MODULES}:mod_sql:mod_sql_postgres
-## DEPENDS+= postgresql-client-[0-9]*:../../databases/postgresql-client
-## .endif
-##
-## .if defined(PROFTPD_USE_README) && ${PROFTPD_USE_README} == "YES"
-## MODULES:= ${MODULES}:mod_readme
-## .endif
+.if !empty(PKG_OPTIONS:Mpgsql)
+MODULES:= ${MODULES}:mod_sql:mod_sql_pgsql
+.include "../../mk/pgsql.buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mreadme)
+MODULES:= ${MODULES}:mod_readme
+.endif
.if !empty(MODULES)
-CONFIGURE_ARGS+= --with-modules=${MODULES}
+CONFIGURE_ARGS+= --with-modules=${MODULES:C/^://}
.endif
Home |
Main Index |
Thread Index |
Old Index