summaryrefslogtreecommitdiff
path: root/net-im/jabber-pyaim
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2007-01-17 10:37:19 +0000
committerRenato Botelho <garga@FreeBSD.org>2007-01-17 10:37:19 +0000
commit5d506788e64b33a0a1c007bac4bbbb77b12c78e4 (patch)
tree00405c96b6a313ceb93f52de899c0e0ff081e3d4 /net-im/jabber-pyaim
parent- No need to put unzip as build dependency. So, remove it. (diff)
- Patch to fix with py-twisted 2.5.0
- Bump PORTREVISION Submitted by: maintainer in private email
Diffstat (limited to 'net-im/jabber-pyaim')
-rw-r--r--net-im/jabber-pyaim/Makefile2
-rw-r--r--net-im/jabber-pyaim/files/patch-src_main.py14
2 files changed, 16 insertions, 0 deletions
diff --git a/net-im/jabber-pyaim/Makefile b/net-im/jabber-pyaim/Makefile
index 10c809753092..86c9e9c7d3f5 100644
--- a/net-im/jabber-pyaim/Makefile
+++ b/net-im/jabber-pyaim/Makefile
@@ -7,6 +7,7 @@
PORTNAME= pyaim
PORTVERSION= 0.8
+PORTREVISION= 1
CATEGORIES= net-im
MASTER_SITES= http://www.blathersource.org/download.php/${PORTNAME}-t/
PKGNAMEPREFIX= jabber-
@@ -52,6 +53,7 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twis
SUB_LIST+= JABBER_USER=${JABBER_USER}
post-patch:
+ @${RM} -f ${WRKSRC}/src/main.py.orig
@${REINPLACE_CMD} -i "" -e '/spooldir/s|\.\.|/var/spool/jabber|' \
-e 's|\.\./PyAIMt.pid|/var/jabberd/pid/PyAIMt.pid|' \
${WRKSRC}/config_example.xml
diff --git a/net-im/jabber-pyaim/files/patch-src_main.py b/net-im/jabber-pyaim/files/patch-src_main.py
new file mode 100644
index 000000000000..99d1e6be823d
--- /dev/null
+++ b/net-im/jabber-pyaim/files/patch-src_main.py
@@ -0,0 +1,14 @@
+--- src/main.py.orig Sun Oct 1 19:04:30 2006
++++ src/main.py Tue Jan 16 15:26:35 2007
+@@ -89,7 +89,10 @@
+ import signal
+ signal.signal(signal.SIGHUP, reloadConfig)
+ # Load scripts for PID and daemonizing
+- from twisted.scripts import twistd
++ try:
++ from twisted.scripts import _twistd_unix as twistd
++ except:
++ from twisted.scripts import twistd
+
+ selectWarning = "Unable to install any good reactors (kqueue, cf, epoll, poll).\nWe fell back to using select. You may have scalability problems.\nThis reactor will not support more than 1024 connections +at a time. You may silence this message by choosing 'select' or 'default' as your reactor in the transport config."
+ if config.reactor and len(config.reactor) > 0: