bac1890bb6
(ie me@example.com) is different from the server's fqdn (ie xmpp.example.com), which is the case of Google Talk. If the SRV records are properly configured (as detailed here: http://wiki.xmpp.org/web/SRV_Records) you dont need to set the server anymore in bitlbee, it will do the dns lookup and automagically connect to the right server. Note that the purple FLAVOR doesn't exhibit this bug. This is needed until someone adds the ns_*parse* family of functions from BIND8 to our resolver (asr? any takers?) From Daniel Levai (thanks!), tested by myself & looks good to sthen@.
69 lines
1.4 KiB
Makefile
69 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.50 2013/03/13 21:42:58 landry Exp $
|
|
|
|
COMMENT= IRC proxy to connect to AIM, ICQ, Jabber, MSN and Yahoo
|
|
|
|
DISTNAME= bitlbee-3.2
|
|
CATEGORIES= net
|
|
REVISION= 0
|
|
|
|
HOMEPAGE= http://bitlbee.org/
|
|
|
|
MAINTAINER= Tom Doherty <tom@singlesecond.com>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += c pthread glib-2.0 gmodule-2.0 ssl crypto
|
|
|
|
MASTER_SITES= http://get.bitlbee.org/src/
|
|
|
|
MODULES= devel/gettext
|
|
|
|
DB_DIR?= /var/bitlbee
|
|
ETCDIR= ${SYSCONFDIR}/bitlbee
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/bitlbee
|
|
DOCS= ${WRKSRC}/doc/user-guide/user-guide.html
|
|
DOCDIR= ${PREFIX}/share/doc/bitlbee/
|
|
|
|
LIB_DEPENDS= devel/glib2
|
|
|
|
CONFIGURE_STYLE= simple
|
|
CONFIGURE_ARGS+= --bindir=${PREFIX}/libexec \
|
|
--mandir=${PREFIX}/man \
|
|
--config=${DB_DIR} \
|
|
--etcdir=${ETCDIR} \
|
|
--ssl=openssl
|
|
|
|
USE_GMAKE= Yes
|
|
MAKE_ENV= "CC=${CC}" "CFLAGS=${CFLAGS}"
|
|
FAKE_FLAGS= ETCDIR=${EXAMPLEDIR}
|
|
FAKE_TARGET= install install-etc
|
|
SUBST_VARS= DB_DIR
|
|
|
|
FLAVORS = libpurple otr
|
|
FLAVOR ?=
|
|
|
|
.if ${FLAVOR:Mlibpurple}
|
|
CONFIGURE_ARGS += --purple=1
|
|
LIB_DEPENDS += net/pidgin,-libpurple
|
|
WANTLIB += purple
|
|
.endif
|
|
.if ${FLAVOR:Motr}
|
|
CONFIGURE_ARGS += --otr=1
|
|
LIB_DEPENDS += security/libotr security/libgcrypt
|
|
WANTLIB += gcrypt otr
|
|
.endif
|
|
|
|
NO_TEST= Yes
|
|
|
|
# don't hide compile command lines
|
|
pre-configure:
|
|
find ${WRKSRC} -name Makefile | \
|
|
xargs perl -pi -e 's,@\$$\(CC\),\$$(CC),g'
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
${INSTALL_DATA} ${DOCS} ${DOCDIR}
|
|
|
|
.include <bsd.port.mk>
|