diff options
author | Florent Thoumie <flz@FreeBSD.org> | 2005-03-19 00:27:52 +0000 |
---|---|---|
committer | Florent Thoumie <flz@FreeBSD.org> | 2005-03-19 00:27:52 +0000 |
commit | 33752bf4e2ee7338203635f08476748c80407674 (patch) | |
tree | 760b8a2a778cba53b7569bb5a2e79edbedf84789 /net-im/jabber-pymsn/Makefile | |
parent | 39eb235209a32409f05e6b96251ad149f35c68e4 (diff) | |
download | ports-33752bf4e2ee7338203635f08476748c80407674.tar.gz ports-33752bf4e2ee7338203635f08476748c80407674.zip |
Notes
Diffstat (limited to 'net-im/jabber-pymsn/Makefile')
-rw-r--r-- | net-im/jabber-pymsn/Makefile | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/net-im/jabber-pymsn/Makefile b/net-im/jabber-pymsn/Makefile new file mode 100644 index 000000000000..cf800eaf951f --- /dev/null +++ b/net-im/jabber-pymsn/Makefile @@ -0,0 +1,69 @@ +# New ports collection makefile for: Jabber Python MSN Transport +# Date created: Tue Nov 23 16:42:07 CET 2004 +# Whom: Martijn Lina <martijn@pacno.net> +# +# $FreeBSD$ + +PORTNAME= pymsn +PORTVERSION= 0.9.1 +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 '/<debugOn>/s|<debugOn>|<!--<debugOn>-->|' \ + ${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 <bsd.port.mk> |