pkgsrc-wip/py-jabber-msnt/Makefile
Eric Schnoebelen f375f0d773 Update to 0.11.1.
From the release announcement:

2006-07-09 - PyMSNt 0.11.1 released!

    * Avatars, and other things, work better with Google Talk
    * Adding/removing contacts is more reliable.
    * SVN revision is checked on startup and is sent with
	jabber:iq:version results
    * Transport doesn't 'randomly' change status on disconnection from
	MSN
    * Reconnect automatically
    * Groupchat timeout is configurable
    * Compatibility with Twisted 2.2
    * MSN file send failure message should go to both parties. With
	correct wording.
    * More reliable avatar and file transfers.
    * config option for service discovery name (MSN GW1, GW2, etc)
    * Use vCard full name (FN) instead of NICKNAME if empty
    * Fixed chunked messages
    * Fixed error messages missing XMPP_STANZAS
    * Fixed exception with MSNConnection.connectionFailed
2006-07-15 00:19:46 +00:00

82 lines
3.1 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2006/07/15 00:19:46 schnoebe Exp $
DISTNAME= pymsnt-0.11.1
PKGNAME= ${PYPKGPREFIX}-jabber-${DISTNAME:S/py//}
CATEGORIES= chat python
MASTER_SITES= http://msn-transport.jabberstudio.org/tarballs/
MAINTAINER= eric@cirr.com
HOMEPAGE= http://msn-transport.jabberstudio.org/
COMMENT= Transport connecting Jabber to the MSN network
#
# jabberd isn't really a dependency since the transport can run on a
# different server than the main jabber server (not that many sites will
# do that..)
#
# DEPENDS+= jabberd-[0-9]*:../../chat/jabberd2
DEPENDS+= ${PYPKGPREFIX}-OpenSSL>=0.6:../../security/py-OpenSSL
DEPENDS+= ${PYPKGPREFIX}-twisted>=2.1.0:../../wip/py-twisted
DEPENDS+= ${PYPKGPREFIX}-twisted-words>=0.1.0:../../wip/py-twisted-words
DEPENDS+= ${PYPKGPREFIX}-twisted-web>=0.1.0:../../wip/py-twisted-web
DEPENDS+= ${PYPKGPREFIX}-twisted-xish>=0.1.0:../../wip/py-twisted-xish
DEPENDS+= ${PYPKGPREFIX}-imaging>=1.1.5:../../graphics/py-imaging
# Fifth paragraph - all build definitions that describe things used by
# the package. These include: WRKSRC, GNU_CONFIGURE,
# HAS_CONFIGURE, USE_PKGLOCALEDIR, USE_INSTALL, TEXINFO_REQD, USE_JAVA,
# USE_PERL5, INFO_FILES, DIST_SUBDIR, etc.
# EXTRACT_ONLY= # yes
NO_BUILD= yes
# always include bsd.prefs.mk before any .if or .ifdef statements
.include "../../mk/bsd.prefs.mk"
RCD_SCRIPTS= pymsnt
PYTHON_PATCH_SCRIPTS+= PyMSNt.py
TRANSPORTDIR= ${JABBERD_TRANSDIR}/pymsnt
FILES_SUBST+= TRANSPORTDIR=${TRANSPORTDIR:Q}
FILES_SUBST+= PYTHONBIN=${PYTHONBIN:Q}
PLIST_SUBST+= TRANSPORTDIR=${TRANSPORTDIR:Q}
MESSAGE_SUBST+= HOMEPAGE=${HOMEPAGE:Q}
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
.include "../../wip/jabberd/transports.mk"
CONF_FILES= ${EGDIR}/pymsnt.xml ${PKG_SYSCONFDIR}/pymsnt.xml
do-install:
@ ${INSTALL_SCRIPT_DIR} ${PREFIX}/${TRANSPORTDIR}
@ cd ${WRKSRC} && \
for i in `find src data \\( \\( -type f -name '*.orig' -o \
-type d -name .svn \\) -prune \\) -o -type f -print` \
.svn/entries ;\
do \
${ECHO} "Installing $$i -> ${PREFIX}/${TRANSPORTDIR}/$$i";\
${INSTALL_SCRIPT_DIR} `${DIRNAME} ${PREFIX}/${TRANSPORTDIR}/$$i` ;\
${INSTALL_SCRIPT} $$i ${PREFIX}/${TRANSPORTDIR}/$$i ;\
done
@ cd ${WRKSRC}; \
${INSTALL_SCRIPT} PyMSNt.py ${PREFIX}/bin/PyMSNt
${INSTALL_DATA_DIR} ${EGDIR};\
${INSTALL_DATA} ${WRKSRC}/config-example.xml ${EGDIR}/pymsnt.xml
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Localizing Paths
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= config-example.xml PyMSNt.py src/main.py
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
SUBST_SED.paths+= -e 's,@TRANSPORTDIR@,${TRANSPORTDIR},g'
SUBST_SED.paths+= -e 's,@JABBERD_SPOOLDIR@,${JABBERD_SPOOLDIR},g'
SUBST_SED.paths+= -e 's,@JABBERD_TRANSDIR@,${JABBERD_TRANSDIR},g'
SUBST_SED.paths+= -e 's,@JABBERD_GROUP@,${JABBERD_GROUP},g'
SUBST_SED.paths+= -e 's,@JABBERD_USER@,${JABBERD_USER},g'
SUBST_SED.paths+= -e 's,@JABBERD_LOGDIR@,${JABBERD_LOGDIR},g'
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
SUBST_SED.paths+= -e 's,@JABBERD_PIDDIR@,${JABBERD_PIDDIR},g'
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"