# New ports collection makefile for: Jabber Python MSN Transport # Date created: Tue Nov 23 16:42:07 CET 2004 # Whom: Martijn Lina # # $FreeBSD$ PORTNAME= pymsn PORTVERSION= 0.9.3 CATEGORIES= net MASTER_SITES= http://msn-transport.jabberstudio.org/tarballs/ PKGNAMEPREFIX= jabber- PKGNAMESUFFIX= -transport DISTNAME= PyMSNt-${PORTVERSION} DIST_SUBDIR= jabber MAINTAINER= martijn@pacno.net COMMENT= Python MSN-Transport for Jabber RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenSSL/__init__.py:${PORTSDIR}/security/py-openssl \ ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted NO_BUILD= yes USE_PYTHON= yes USE_REINPLACE= yes USE_RC_SUBR= jabber-pymsn-transport.sh SUB_FILES= pkg-message SUB_LIST= PYTHON_CMD=${PYTHON_CMD} INST_DIR= ${PREFIX}/lib/jabber/${PORTNAME} PORTDOCS= COPYING README TODO post-extract: @${FIND} ${WRKSRC}/ -type d -name CVS |xargs ${RM} -rf post-patch: @${REINPLACE_CMD} -e '/spooldir/s|/path/to/data|/var/spool/jabber|' \ -e '/pid/s|PyMSNt.pid|/var/jabberd/pid/${PORTNAME}.pid|' \ -e '//s|||' \ ${WRKSRC}/config-example.xml @${REINPLACE_CMD} -e 's|../config.xml|${PREFIX}/etc/jabber-pymsn.xml|g' \ ${WRKSRC}/src/xmlconfig.py @${RM} ${WRKSRC}/src/xmlconfig.py.bak @${ECHO} '#!${PYTHON_CMD}' > ${WRKSRC}/src/main.py.new @${CAT} ${WRKSRC}/src/main.py >> ${WRKSRC}/src/main.py.new @${MV} ${WRKSRC}/src/main.py.new ${WRKSRC}/src/main.py @${MV} ${WRKSRC}/src/config.py ${WRKSRC}/src/config.py.sample do-install: ${INSTALL} -d ${INST_DIR} ${CP} -pPR ${WRKSRC}/src/* ${INST_DIR}/ ${CHMOD} 755 ${INST_DIR}/main.py [ -f ${INST_DIR}/config.py ] || ${CP} ${INST_DIR}/config.py.sample ${INST_DIR}/config.py ${INSTALL_SCRIPT} -m 751 ${WRKDIR}/${PKGBASE}.sh ${PREFIX}/etc/rc.d/${PKGBASE}.sh @${MKDIR} ${EXAMPLESDIR}/etc ${INSTALL_DATA} ${WRKSRC}/config-example.xml ${EXAMPLESDIR}/etc/jabber-pymsn.xml [ -f ${PREFIX}/etc/jabber-pymsn.xml ] || ${CP} ${EXAMPLESDIR}/etc/jabber-pymsn.xml ${PREFIX}/etc/jabber-pymsn.xml .if !defined(NOPORTDOCS) .for portdoc in ${PORTDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${portdoc} ${DOCSDIR}/ .endfor .endif post-install: @${CAT} ${PKGMESSAGE} .include