diff options
Diffstat (limited to 'chat/jabberd2/Makefile')
-rw-r--r-- | chat/jabberd2/Makefile | 109 |
1 files changed, 31 insertions, 78 deletions
diff --git a/chat/jabberd2/Makefile b/chat/jabberd2/Makefile index dfc4a809d72..a3ac668b7c7 100644 --- a/chat/jabberd2/Makefile +++ b/chat/jabberd2/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.5 2004/07/06 00:10:57 xtraeme Exp $ +# $NetBSD: Makefile,v 1.6 2004/07/14 00:25:11 xtraeme Exp $ # -DISTNAME= jabberd-2.0s2 -PKGREVISION= 1 +DISTNAME= jabberd-2.0s3 CATEGORIES= chat MASTER_SITES= http://www.jabberstudio.org/files/jabberd2/ @@ -28,79 +27,16 @@ SUBST_SED.path= -e "s,/usr/local,${PREFIX},g" \ -e "s,\$sysconfdir/jabberd,\$sysconfdir,g" CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} +CONFIGURE_ARGS+= --disable-mysql +CONFIGURE_ARGS+= --enable-pipe +CONFIGURE_ARGS+= --enable-anon -REPLACE_PERL= tools/pipe-auth.pl +REPLACE_PERL= tools/*.pl .include "../../mk/bsd.prefs.mk" -BUILD_DEFS+= JABBERD_USER JABBERD_STATIC \ - JABBERD_AUTH_METHOD JABBERD_STORAGE_METHOD \ - JABBERD_LOGDIR JABBERD_DBDIR JABBERD_PIDDIR - -# This specify the actual method which will be used for authenticate -# the users/accounts. -# -# JABBERD_AUTH_METHOD has 5 available options: -# -# db (by default) -# mysql (MySQL) -# openldap (OpenLDAP) -# pam (Pluggable Authentication Module) -# pgsql (PostgreSQL) - -JABBERD_AUTH_METHOD?= db -AUTHREG_MODS="anon pipe ${JABBERD_AUTH_METHOD}" - -.if !empty(JABBERD_AUTH_METHOD:Mdb) -CONFIGURE_ARGS+= --enable-authreg=${AUTHREG_MODS} -CONFIGURE_ARGS+= --with-berkeley-db=${BUILDLINK_DIR}/include -. include "../../databases/db4/buildlink3.mk" -. elif !empty(JABBERD_AUTH_METHOD:Mopenldap) -CONFIGURE_ARGS+= --enable-authreg=${AUTHREG_MODS} -CONFIGURE_ARGS+= --with-openldap=${BUILDLINK_PREFIX.openldap} -. include "../../databases/openldap/buildlink3.mk" -. elif !empty(JABBERD_AUTH_METHOD:Mpgsql) -CONFIGURE_ARGS+= --enable-authreg=${AUTHREG_MODS} -CONFIGURE_ARGS+= --with-pgsql=${BUILDLINK_PREFIX.postgresql-lib} -. include "../../databases/postgresql-lib/buildlink3.mk" -. elif !empty(JABBERD_AUTH_METHOD:Mmysql) -CONFIGURE_ARGS+= --enable-authreg=${AUTHREG_MODS} -CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-server} -. include "../../databases/mysql-client/buildlink3.mk" -. elif !empty(JABBERD_AUTH_METHOD:Mpam) -CONFIGURE_ARGS+= --enable-authreg=${AUTHREG_MODS} -CONFIGURE_ARGS+= --with-pam=${BUILDLINK_PREFIX.PAM} -. include "../../security/PAM/buildlink3.mk" -.endif - -# This specify the actual method which will be used to store the accounts -# and related information. -# -# JABBERD_STORAGE_METHOD has 3 available options: -# -# db (by default) -# mysql (MySQL) -# pgsql (PostgreSQL) - -JABBERD_STORAGE_METHOD?= db - -.if !empty(JABBERD_STORAGE_METHOD:Mdb) -CONFIGURE_ARGS+= --enable-storage=db -CONFIGURE_ARGS+= --with-berkeley-db=${BUILDLINK_DIR}/include -. include "../../databases/db4/buildlink3.mk" -. elif !empty(JABBERD_STORAGE_METHOD:Mmysql) -CONFIGURE_ARGS+= --enable-storage=mysql -CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-server} -. include "../../databases/mysql-client/buildlink3.mk" -. elif !empty(JABBERD_STORAGE_METHOD:Mpgsql) -CONFIGURE_ARGS+= --enable-storage=pgsql -CONFIGURE_ARGS+= --with-pgsql=${BUILDLINK_PREFIX.postgresql-lib} -. include "../../databases/postgresql-lib/buildlink3.mk" -.endif - -.if defined(JABBERD_STATIC) && !empty(JABBERD_STATIC:M[Yy][Ee][Ss]) -CONFIGURE_ARGS+= --enable-all-static -.endif +BUILD_DEFS+= JABBERD_USER JABBERD_GROUP JABBERD_METHOD \ + JABBERD_LOGDIR JABBERD_PIDDIR PKG_SYSCONFSUBDIR= jabberd RCD_SCRIPTS= jabberd c2s sm resolver router s2s @@ -127,12 +63,27 @@ CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} CONF_FILES+= ${EGDIR}/roster.xml ${PKG_SYSCONFDIR}/roster.xml .undef f -# Directory to store the log files -JABBERD_LOGDIR?= /var/log/jabberd -# Directory to store the database files -JABBERD_DBDIR?= /var/db/jabberd -# Directory to store the pid files -JABBERD_PIDDIR?= /var/run/jabberd +JABBERD_METHOD?= mysql + +.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 +. 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 .for f in ${JABBERD_LOGDIR} ${JABBERD_DBDIR} ${JABBERD_PIDDIR} OWN_DIRS_PERMS+= ${f} ${JABBERD_USER} ${JABBERD_GROUP} 770 @@ -163,6 +114,7 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/etc/templates/roster.xml.dist.in \ ${EGDIR}/roster.xml ${INSTALL_SCRIPT} ${WRKSRC}/tools/pipe-auth.pl ${BINDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/tools/migrate.pl ${BINDIR} .for f in ${DBFILES} ${INSTALL_DATA} ${WRKSRC}/tools/${f} ${EGDIR} .endfor @@ -173,5 +125,6 @@ post-install: .undef f .include "../../converters/libiconv/buildlink3.mk" +.include "../../devel/libidn/buildlink3.mk" .include "../../security/openssl/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |