aboutsummaryrefslogtreecommitdiff
path: root/net-im/jabber/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-02-27 13:13:26 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-02-27 13:13:26 +0000
commit0de9fe3a462493321be238fb9318ece8e67f2265 (patch)
tree077f314106b396ac146e00c951ea7b6b16241b56 /net-im/jabber/Makefile
parent68a267944995880855cce339b068d8436a523190 (diff)
Notes
Diffstat (limited to 'net-im/jabber/Makefile')
-rw-r--r--net-im/jabber/Makefile100
1 files changed, 83 insertions, 17 deletions
diff --git a/net-im/jabber/Makefile b/net-im/jabber/Makefile
index 85d26388e366..625ddd701db8 100644
--- a/net-im/jabber/Makefile
+++ b/net-im/jabber/Makefile
@@ -6,48 +6,114 @@
#
PORTNAME= jabber
-PORTVERSION= 1.4.4
+PORTVERSION= 1.6.0
PORTEPOCH= 1
CATEGORIES= net-im ipv6
MASTER_SITES= http://download.jabberd.org/jabberd14/
-DISTNAME= ${PORTNAME}d-${PORTVERSION}
+DISTNAME= jabberd14-${PORTVERSION}
DIST_SUBDIR= jabber
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Online presence and instant messaging server
+MAINTAINER= martin@matuska.org
+COMMENT= XMPP/Jabber server daemon
-LIB_DEPENDS= pth.20:${PORTSDIR}/devel/pth \
+LIB_DEPENDS= pth.20:${PORTSDIR}/devel/pth-hard \
+ popt.0:${PORTSDIR}/devel/popt \
idn.16:${PORTSDIR}/dns/libidn \
expat.6:${PORTSDIR}/textproc/expat2
-OPTIONS= IPV6 "Enable IPv6 support" off
+OPTIONS= IPV6 "Enable IPv6 support" off \
+ MYSQL "Build with MySQL support" off \
+ PGSQL "Build with PostgreSQL support" off
-USE_GNOME= gnometarget
-USE_RC_SUBR= jabberd.sh
+USE_RC_SUBR= jabber
USE_OPENSSL= yes
USE_ICONV= yes
USE_GMAKE= yes
+USE_GETTEXT= yes
USE_AUTOTOOLS= libtool:15
-CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-CONFIGURE_ARGS= --localstatedir=/var \
- --with-ssl-legacy=/usr
-USE_LDCONFIG= yes
+USE_LDCONFIG= ${TARGETDIR}/lib/jabber
+.if !defined(NO_INSTALL_MANPAGES)
MAN5= jabber.xml.5
-MAN8= jabberd.8
+MAN8= jabberd14.8
+.endif
+
+JABBER_USER= jabber
+JABBER_UID= 93
+JABBER_GROUP= ${JABBER_USER}
+JABBER_GID= ${JABBER_UID}
+JABBER_ETCDIR= "${TARGETDIR}/etc"
+JABBER_RUNDIR= "/var/run/jabberd"
+JABBER_SPOOLDIR="/var/spool/jabberd"
+JABBER_LOGDIR= "/var/log/jabberd"
+
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_ARGS= --mandir=${MANPREFIX}/man --localstatedir=/var --enable-ssl \
+ --with-ssl-legacy=${OPENSSLBASE} --sysconfdir=${JABBER_ETCDIR} \
+ --includedir=${TARGETDIR}/include/jabber \
+ --libdir=${TARGETDIR}/lib/jabber
+
+CPPFLAGS+= -I${LOCALBASE}/include/pth -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib/pth -L${LOCALBASE}/lib
-BROKEN= breaks all jabber protocols
+SUB_FILES+= pkg-install pkg-deinstall pkg-message
+SUB_LIST+= JABBER_USER=${JABBER_USER} JABBER_UID=${JABBER_UID} \
+ JABBER_GROUP=${JABBER_GROUP} JABBER_GID=${JABBER_GID} \
+ JABBER_ETCDIR="${JABBER_ETCDIR}" \
+ JABBER_LOGDIR="${JABBER_LOGDIR}" \
+ JABBER_SPOOLDIR="${JABBER_SPOOLDIR}" \
+ JABBER_RUNDIR="${JABBER_RUNDIR}"
+PKGINSTALL= ${WRKDIR}/pkg-install
+PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
+PKGMESSAGE= ${WRKDIR}/pkg-message
-CPPFLAGS= -I${LOCALBASE}/include/pth -I${LOCALBASE}/include
-LDFLAGS= -L${LOCALBASE}/lib/pth -L${LOCALBASE}/lib
+DOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README README.SQL README.config \
+ README.filespool README.karma README.protocols TODO UPGRADE mysql.sql
.include <bsd.port.pre.mk>
+.if defined(WITH_MYSQL)
+USE_MYSQL= yes
+CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
+.endif
+
+.if defined(WITH_PGSQL)
+USE_PGSQL= yes
+CONFIGURE_ARGS+= --with-postgresql=${LOCALBASE}
+.endif
+
.if defined(WITH_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.endif
+.if exists(${LOCALBASE}/include/pth/pthread.h)
+IGNORE= pth with soft syscalls is installed, please reinstall pth from devel/pth-hard
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|\\\$$(localstatedir)/log/jabberd|${JABBER_LOGDIR}|g" \
+ -e "s|\\\$$(localstatedir)/spool/jabberd|${JABBER_SPOOLDIR}|g" \
+ -e "s|\\\$$(localstatedir)/run/jabberd|${JABBER_RUNDIR}|g" \
+ ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e "s|@localstatedir@/log/jabberd|${JABBER_LOGDIR}|g" \
+ -e "s|@localstatedir@/spool/jabberd|${JABBER_SPOOLDIR}|g" \
+ -e "s|@localstatedir@/run/jabberd|${JABBER_RUNDIR}|g" \
+ ${WRKSRC}/jabber.xml.dist.in
+ @${LN} -s ${WRKSRC}/man/jabberd.8.in ${WRKSRC}/man/jabberd14.8.in
+
post-install:
- PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+ @${TOUCH} ${TARGETDIR}/include/jabber/platform-settings
+ @${INSTALL_DATA} ${WRKSRC}/jabber.xml.dist ${TARGETDIR}/etc/jabber.xml.sample
+.if !defined(NO_INSTALL_MANPAGES)
+ @cd ${WRKSRC}/man && make install-man
+.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}/${FILE}
+.endfor
+.endif
+ @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>