2005-03-17 12:32:24 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2005/03/17 17:32:24 naddy Exp $
|
2004-05-29 09:12:30 -04:00
|
|
|
|
|
|
|
COMMENT= "jabber server"
|
2005-03-17 12:32:24 -05:00
|
|
|
DISTNAME= jabberd-2.0s4
|
|
|
|
PKGNAME= ${DISTNAME}p0
|
2004-05-29 09:12:30 -04:00
|
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= http://jabberd.jabberstudio.org/2/
|
|
|
|
MAINTAINER= Gerardo Santana Gomez Garrido <santana@openbsd.org.mx>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-15 19:31:20 -05:00
|
|
|
WANTLIB= c crypto m ssl z
|
2004-05-29 09:12:30 -04:00
|
|
|
|
2005-03-17 12:32:24 -05:00
|
|
|
MASTER_SITES= http://www.jabberstudio.org/files/jabberd2/
|
2004-05-29 09:12:30 -04:00
|
|
|
|
|
|
|
JABBERDUSER= _jabberd
|
|
|
|
JABBERDGROUP= _jabberd
|
|
|
|
JABBERDDIR= /var/jabberd
|
|
|
|
|
|
|
|
CONFIG_DIR= ${SYSCONFDIR}/jabberd
|
|
|
|
EXAMPLES= ${PREFIX}/share/examples/jabberd
|
|
|
|
|
|
|
|
SUBST_VARS= CONFIG_DIR EXAMPLES \
|
|
|
|
JABBERDUSER JABBERDGROUP JABBERDDIR
|
|
|
|
|
|
|
|
LIB_DEPENDS= lib/mysql/mysqlclient.10::databases/mysql
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
2004-11-17 16:08:26 -05:00
|
|
|
CONFIGURE_ARGS+= --localstatedir=/var \
|
|
|
|
--enable-ssl \
|
2004-10-05 21:08:17 -04:00
|
|
|
--disable-idn \
|
2004-11-17 16:08:26 -05:00
|
|
|
--with-extra-include-path=${LOCALBASE}/include \
|
|
|
|
--with-extra-library-path=${LOCALBASE}/lib \
|
|
|
|
|
2004-11-17 16:11:07 -05:00
|
|
|
# MySQL backend
|
2004-11-17 16:08:26 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-mysql \
|
2004-10-05 21:08:17 -04:00
|
|
|
--with-extra-include-path=${LOCALBASE}/include/mysql \
|
|
|
|
--with-extra-library-path=${LOCALBASE}/lib/mysql
|
2004-05-29 09:12:30 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/jabberd ${PREFIX}/sbin
|
|
|
|
${INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/jabberd
|
|
|
|
.for dir in c2s resolver router s2s sm
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${dir}/${dir} ${PREFIX}/libexec/jabberd
|
|
|
|
.endfor
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/*.8 ${PREFIX}/man/man8
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLES}
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLES}/templates
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/jabberd.cfg.dist ${EXAMPLES}/jabberd.cfg
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/c2s.xml.dist ${EXAMPLES}/c2s.xml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/resolver.xml.dist ${EXAMPLES}/resolver.xml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/router-users.xml.dist ${EXAMPLES}/router-users.xml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/router.xml.dist ${EXAMPLES}/router.xml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/s2s.xml.dist ${EXAMPLES}/s2s.xml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/sm.xml.dist ${EXAMPLES}/sm.xml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/templates/roster.xml.dist ${EXAMPLES}/templates/roster.xml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/db-setup.mysql ${EXAMPLES}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|