pkgsrc/chat/jabberd2/Makefile

129 lines
3.8 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.57 2010/06/02 13:14:47 adam Exp $
DISTNAME= jabberd-2.2.9
PKGREVISION= 3
CATEGORIES= chat
MASTER_SITES= http://codex.xiaoka.com/pub/jabberd2/releases/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= eric@cirr.com
HOMEPAGE= http://jabberd2.xiaoka.com/
COMMENT= XMPP (Jabber) instant messaging server
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
2006-04-21 11:18:37 +02:00
CONFLICTS= jabberd-[0-9]*
BDB_ACCEPTED= db4 db5
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= perl:run
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-anon
CONFIGURE_ARGS+= --enable-pipe
CONFIGURE_ARGS+= --enable-ssl
CONFIGURE_ARGS+= --enable-fs
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
.if (${MACHINE_ARCH} == alpha) || (${MACHINE_ARCH} == x86_64)
CONFIGURE_ARGS+= CXXFLAGS=${CXXFLAGS:M*:C/-O./-Os/:M*:Q}
CONFIGURE_ENV+= CXXFLAGS=${CXXFLAGS:M*:C/-O./-Os/:M*:Q}
MAKE_ENV+= CXXFLAGS=${CXXFLAGS:M*:C/-O./-Os/:M*:Q}
CONFIGURE_ARGS+= CFLAGS=${CFLAGS:M*:C/-O./-Os/:M*:Q}
CONFIGURE_ENV+= CFLAGS=${CFLAGS:M*:C/-O./-Os/:M*:Q}
MAKE_ENV+= CFLAGS=${CFLAGS:M*:C/-O./-Os/:M*:Q}
.endif
SUBST_CLASSES+= path
SUBST_STAGE.path= post-patch
SUBST_FILES.path= configure
2006-04-21 11:18:37 +02:00
SUBST_MESSAGE.path= Fixing configure script.
SUBST_SED.path= -e "s,/usr/local,${PREFIX},g"
SUBST_SED.path+= -e "s,\$$sysconfdir/jabberd,\$$sysconfdir,g"
2006-04-21 11:18:37 +02:00
REPLACE_PERL+= tools/*.pl
.include "../../mk/bsd.prefs.mk"
JABBERD_DBDIR?= ${VARBASE}/db/jabberd
Update to 2.1.14: 2.1.14 2007-08-14 * Integrated authreg_oracle by fundy. * Operands incompatibility fix for Sun compiler. * contrib/cyrus-sasl-digest-md5-fix added * Applied MIO memleak fix related to time_checks by Christof Meerwald. 2.1.13 2007-08-08 * Reverted broken [311] and [313] changes to source:trunk/mio/mio_impl.h * compilation fix * Fix configuration XML files domain update * Don't allow reinstalling on newer version * Fixed off-by-one error in base64 * Force uninstall previous version on upgrade. 2.1.12 2007-07-30 * Fixed many memleaks * Check if OpenSSL is already initialized in PostgreSQL backend. * Implemented PQconnectdb PostgreSQL connection method. * Applied pg_config using by configure patch by Michael Krelin. * Implemented auth/reg stream features advertisement. * Removed useless while/alloc loops * WiX notes for Windows README * WiX new "JabberWelcomeDlg?" * WiX fixed cases of reinstall & upgrade * nad_cache_new & nad_cache_free exported as JABBERD2_API functions. * Changed allocator BLOCKSIZE to 128 bytes 2.1.11 2007-07-27 * Changed SASL level error reporting to malformed-request error according to rfc3920bis. * Fixed ./configure tests reliability. * Changed DOS line endings to UNIX line endings. * Fixed XML predefined entities quoting in serialized XML. 2.1.10 2007-07-20 * Removed SASL backend fallbacks * Added roster items limit option. Closes #89 * Added count support in SQLite3 backend 2.1.9 2007-07-19 * Added jabber:x:oob redirection support during in-band registration * Logging JID on disconnection * Added counting packets on c2s and s2s connections * Added TLS indicator for c2s and s2s logs. * Added type='log' to ComponentProtocol <route/> wrapper for logged packets.
2007-08-26 11:10:54 +02:00
BUILD_DEFS+= VARBASE JABBERD_USER JABBERD_GROUP
BUILD_DEFS+= JABBERD_LOGDIR JABBERD_PIDDIR JABBERD_DBDIR
PKG_SYSCONFSUBDIR= jabberd
2009-08-21 04:28:12 +02:00
RCD_SCRIPTS= jabberd c2s sm router s2s
JABBERD_USER?= jabberd
JABBERD_GROUP?= jabberd
FILES_SUBST+= JABBERD_USER=${JABBERD_USER}
FILES_SUBST+= JABBERD_GROUP=${JABBERD_GROUP}
FILES_SUBST+= JABBERD_PIDDIR=${JABBERD_PIDDIR}
FILES_SUBST+= JABBERD_LOGDIR=${JABBERD_LOGDIR}
PKG_USERS_VARS+= JABBERD_USER
PKG_GROUPS_VARS+= JABBERD_GROUP
PKG_GROUPS= ${JABBERD_GROUP}
PKG_USERS= ${JABBERD_USER}:${JABBERD_GROUP}
BINDIR= ${PREFIX}/bin
EGDIR= ${PREFIX}/share/examples/jabberd
DOCDIR= ${PREFIX}/share/doc/jabberd
2009-08-21 04:28:12 +02:00
FILES= jabberd.cfg c2s.xml router.xml \
router-users.xml router-filter.xml s2s.xml \
sm.xml
DBFILES= db-jd14-2-jd2.sql db-setup.mysql db-setup.pgsql \
2009-08-21 04:28:12 +02:00
db-update.mysql db-setup.sqlite db-update.sqlite
DOCFILES= README.protocol README UPGRADE ChangeLog
2009-08-21 04:28:12 +02:00
INSTALLATION_DIRS= bin ${EGDIR} ${DOCDIR}
.for f in ${FILES}
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor
CONF_FILES+= ${EGDIR}/roster.xml ${PKG_SYSCONFDIR}/roster.xml
.include "options.mk"
.for f in ${JABBERD_LOGDIR} ${JABBERD_DBDIR} ${JABBERD_PIDDIR}
OWN_DIRS_PERMS+= ${f} ${JABBERD_USER} ${JABBERD_GROUP} 770
.endfor
post-extract:
.for f in ${FILES}
Update to 2.1.14: 2.1.14 2007-08-14 * Integrated authreg_oracle by fundy. * Operands incompatibility fix for Sun compiler. * contrib/cyrus-sasl-digest-md5-fix added * Applied MIO memleak fix related to time_checks by Christof Meerwald. 2.1.13 2007-08-08 * Reverted broken [311] and [313] changes to source:trunk/mio/mio_impl.h * compilation fix * Fix configuration XML files domain update * Don't allow reinstalling on newer version * Fixed off-by-one error in base64 * Force uninstall previous version on upgrade. 2.1.12 2007-07-30 * Fixed many memleaks * Check if OpenSSL is already initialized in PostgreSQL backend. * Implemented PQconnectdb PostgreSQL connection method. * Applied pg_config using by configure patch by Michael Krelin. * Implemented auth/reg stream features advertisement. * Removed useless while/alloc loops * WiX notes for Windows README * WiX new "JabberWelcomeDlg?" * WiX fixed cases of reinstall & upgrade * nad_cache_new & nad_cache_free exported as JABBERD2_API functions. * Changed allocator BLOCKSIZE to 128 bytes 2.1.11 2007-07-27 * Changed SASL level error reporting to malformed-request error according to rfc3920bis. * Fixed ./configure tests reliability. * Changed DOS line endings to UNIX line endings. * Fixed XML predefined entities quoting in serialized XML. 2.1.10 2007-07-20 * Removed SASL backend fallbacks * Added roster items limit option. Closes #89 * Added count support in SQLite3 backend 2.1.9 2007-07-19 * Added jabber:x:oob redirection support during in-band registration * Logging JID on disconnection * Added counting packets on c2s and s2s connections * Added TLS indicator for c2s and s2s logs. * Added type='log' to ComponentProtocol <route/> wrapper for logged packets.
2007-08-26 11:10:54 +02:00
mv ${WRKSRC}/etc/${f}.dist.in ${WRKSRC}/etc/${f}.in
.endfor
pre-configure:
.for f in ${FILES}
sed -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" \
-e "s|@PIDDIR@|${JABBERD_PIDDIR}|g" \
-e "s|@LOGDIR@|${JABBERD_LOGDIR}|g" \
-e "s|@SSLCERTS@|${SSLCERTS}|g" \
-e "s|@BINDIR@|${PREFIX}/bin|g" \
-e "s|@DBDIR@|${JABBERD_DBDIR}|g" \
-e "s|@pkglibdir@|${PREFIX}/lib/jabberd|g" \
${WRKSRC}/etc/${f}.in > ${WRKSRC}/etc/${f}
.endfor
post-install:
${INSTALL_DATA} ${WRKSRC}/etc/templates/roster.xml.dist.in \
${DESTDIR}${EGDIR}/roster.xml
${INSTALL_SCRIPT} ${WRKSRC}/tools/pipe-auth.pl ${DESTDIR}${BINDIR}
${INSTALL_SCRIPT} ${WRKSRC}/tools/migrate.pl ${DESTDIR}${BINDIR}
.for f in ${DBFILES}
${INSTALL_DATA} ${WRKSRC}/tools/${f} ${DESTDIR}${EGDIR}
.endfor
.for f in ${FILES}
${INSTALL_DATA} ${WRKSRC}/etc/${f} ${DESTDIR}${EGDIR}
.endfor
.for f in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR}
.endfor
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/libidn/buildlink3.mk"
.include "../../net/udns/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"