aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/jabber-pymsn/Makefile
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2006-03-03 04:59:45 +0800
committergarga <garga@FreeBSD.org>2006-03-03 04:59:45 +0800
commit790c84dfd0dd619c6ab2d9df2152e0fca8e7d1f5 (patch)
tree962531b76786efe71405a50e78ccb93edaad1205 /net-im/jabber-pymsn/Makefile
parent9ace6b767d54e360a46a28defc8ba79728a1aa59 (diff)
downloadfreebsd-ports-gnome-790c84dfd0dd619c6ab2d9df2152e0fca8e7d1f5.tar.gz
freebsd-ports-gnome-790c84dfd0dd619c6ab2d9df2152e0fca8e7d1f5.tar.zst
freebsd-ports-gnome-790c84dfd0dd619c6ab2d9df2152e0fca8e7d1f5.zip
- Update to 0.11a [1]
- Change it to run as jabber and not more as root, which is an unecessary security risk [2] PR: ports/93982 [1], ports/93994 [2] Submitted by: M. Possamai <possamai@xs4all.nl> [1] Neil Darlow <neil@darlow.co.uk> [2] Approved by: portmgr (erwin)
Diffstat (limited to 'net-im/jabber-pymsn/Makefile')
-rw-r--r--net-im/jabber-pymsn/Makefile35
1 files changed, 20 insertions, 15 deletions
diff --git a/net-im/jabber-pymsn/Makefile b/net-im/jabber-pymsn/Makefile
index c73bc0ddea96..a8b0607e26e4 100644
--- a/net-im/jabber-pymsn/Makefile
+++ b/net-im/jabber-pymsn/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= pymsn
-PORTVERSION= 0.10.3
+PORTVERSION= 0.11a
CATEGORIES= net-im
MASTER_SITES= http://msn-transport.jabberstudio.org/tarballs/
PKGNAMEPREFIX= jabber-
@@ -17,7 +17,10 @@ MAINTAINER= garga@FreeBSD.org
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
+ ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted \
+ ${PYTHON_SITELIBDIR}/PIL/__init__.py::${PORTSDIR}/graphics/py-imaging
+
+WRKSRC= ${WRKDIR}/${PORTNAME}t-0.11
NO_BUILD= yes
USE_PYTHON= yes
@@ -34,26 +37,28 @@ post-extract:
@${FIND} ${WRKSRC}/ -type d \( -name CVS -or -name .svn \) | ${XARGS} ${RM} -rf
post-patch:
- @${REINPLACE_CMD} -i "" '/spooldir/s|/path/to/data|/var/spool/jabber|' \
+ @${REINPLACE_CMD} -i "" -e '/spooldir/s|/path/to/data|/var/spool/jabber|' \
+ -e 's|PyMSNt.pid|/var/jabberd/pid/PyMSNt.pid|' \
${WRKSRC}/config-example.xml
@${REINPLACE_CMD} -i "" 's|../config.xml|${PREFIX}/etc/jabber-pymsn.xml|g' \
${WRKSRC}/src/xmlconfig.py
- @${REINPLACE_CMD} -i "" 's|src/legacy|legacy|g' \
- ${WRKSRC}/src/legacy/glue.py \
- ${WRKSRC}/src/legacy/legacylist.py
- @${REINPLACE_CMD} -i "" 's|%%PREFIX%%|${PREFIX}|g' \
+ @${REINPLACE_CMD} -i "" -e 's|spooldir = ""|spooldir = "/tmp/jabber-pymsn"|g' \
+ -e 's|pid = ""|pid = "/var/jabberd/pid/PyMSNt.pid"|g' \
${WRKSRC}/src/config.py
+ @${REINPLACE_CMD} -i "" 's|"config.xml"|"${PREFIX}/etc/jabber-pymsn.xml"|' \
+ ${WRKSRC}/src/main.py
+ @${REINPLACE_CMD} -i "" 's|#!/usr/bin/python|#!${PYTHON_CMD}|' \
+ ${WRKSRC}/PyMSNt.py
@${RM} -f ${WRKSRC}/src/*.orig
- @${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} -pPRv ${WRKSRC}/src/* ${INST_DIR}/
- ${CHMOD} 755 ${INST_DIR}/main.py
- @[ -f ${INST_DIR}/config.py ] || ${CP} -v ${INST_DIR}/config.py.sample ${INST_DIR}/config.py
+ ${MKDIR} ${INST_DIR}/src ${INST_DIR}/data
+ ${INSTALL_SCRIPT} ${WRKSRC}/PyMSNt.py ${INST_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/data/defaultJabberAvatar.png ${INST_DIR}/data
+ ${INSTALL_DATA} ${WRKSRC}/data/defaultMSNAvatar.png ${INST_DIR}/data
+ @${CP} -Rv ${WRKSRC}/src/* ${INST_DIR}/src/
+ @${FIND} ${INST_DIR}/src/ -type d -exec ${CHMOD} 755 "{}" \;
+ @${FIND} ${INST_DIR}/src/ -type f -exec ${CHMOD} 644 "{}" \;
${MKDIR} ${EXAMPLESDIR}/etc
${INSTALL_DATA} ${WRKSRC}/config-example.xml ${EXAMPLESDIR}/etc/jabber-pymsn.xml
@[ -f ${PREFIX}/etc/jabber-pymsn.xml ] || ${CP} -v ${EXAMPLESDIR}/etc/jabber-pymsn.xml ${PREFIX}/etc/jabber-pymsn.xml