diff options
Diffstat (limited to 'chat')
-rw-r--r-- | chat/jabberd2/Makefile | 23 | ||||
-rw-r--r-- | chat/jabberd2/Makefile.options | 40 |
2 files changed, 42 insertions, 21 deletions
diff --git a/chat/jabberd2/Makefile b/chat/jabberd2/Makefile index 90a66cc131a..b3ef1a529ba 100644 --- a/chat/jabberd2/Makefile +++ b/chat/jabberd2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2004/07/18 18:55:14 kristerw Exp $ +# $NetBSD: Makefile,v 1.9 2004/07/31 00:01:04 xtraeme Exp $ # DISTNAME= jabberd-2.0s3 @@ -63,26 +63,7 @@ CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} CONF_FILES+= ${EGDIR}/roster.xml ${PKG_SYSCONFDIR}/roster.xml .undef f -.if !empty(JABBERD_METHOD:Mdb) -# # Directory to store the database files -JABBERD_DBDIR?= ${VARBASE}/db/jabberd -BUILD_DEFS+= JABBERD_DBDIR -CONFIGURE_ARGS+= --enable-db -. include "../../databases/db4/buildlink3.mk" -.elif !empty(JABBERD_METHOD:Mmysql) -CONFIGURE_ARGS+= --enable-mysql -CPPFLAGS+= -I${LOCALBASE}/include/mysql -. include "../../databases/mysql4-client/buildlink3.mk" -.elif !empty(JABBERD_METHOD:Mpgsql) -CONFIGURE_ARGS+= --enable-pgsql -. include "../../databases/postgresql74-lib/buildlink3.mk" -.elif !empty(JABBERD_METHOD:Mldap) -CONFIGURE_ARGS+= --enable-ldap -. include "../../databases/openldap/buildlink3.mk" -.elif !empty(JABBERD_METHOD:Mpam) -CONFIGURE_ARGS+= --enable-pam -. include "../../security/PAM/buildlink3.mk" -.endif +.include "Makefile.options" .for f in ${JABBERD_LOGDIR} ${JABBERD_DBDIR} ${JABBERD_PIDDIR} OWN_DIRS_PERMS+= ${f} ${JABBERD_USER} ${JABBERD_GROUP} 770 diff --git a/chat/jabberd2/Makefile.options b/chat/jabberd2/Makefile.options new file mode 100644 index 00000000000..725e7bbbf99 --- /dev/null +++ b/chat/jabberd2/Makefile.options @@ -0,0 +1,40 @@ +# $NetBSD: Makefile.options,v 1.1 2004/07/31 00:01:04 xtraeme Exp $ +# + +PKG_OPTIONS_VAR= PKG_OPTIONS.jabberd2 +PKG_SUPPORTED_OPTIONS= db mysql mysql4 pgsql ldap pam +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mdb) +BUILD_DEFS+= JABBERD_DBDIR +JABBERD_DBDIR?= ${VARBASE}/db/jabberd +CONFIGURE_ARGS+= --enable-db +. include "../../databases/db4/buildlink3.mk" +.endif + +.if !empty(PKG_OPTIONS:Mmysql) +CONFIGURE_ARGS+= --enable-mysql +CPPFLAGS+= -I${BUILDLINK_PREFIX.mysql-client}/include/mysql +. include "../../databases/mysql-client/buildlink3.mk" +.endif + +.if !empty(PKG_OPTIONS:Mmysql4) +CONFIGURE_ARGS+= --enable-mysql +CPPFLAGS+= -I${BUILDLINK_PREFIX.mysql-client}/include/mysql +. include "../../databases/mysql4-client/buildlink3.mk" +.endif + +.if !empty(PKG_OPTIONS:Mpgsql) +CONFIGURE_ARGS+= --enable-pgsql +. include "../../mk/pgsql.buildlink3.mk" +.endif + +.if !empty(PKG_OPTIONS:Mldap) +CONFIGURE_ARGS+= --enable-ldap +. include "../../databases/openldap/buildlink3.mk" +.endif + +.if !empty(PKG_OPTIONS:Mpam) +CONFIGURE_ARGS+= --enable-pam +. include "../../security/PAM/buildlink3.mk" +.endif |