aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/jabber-pyicq
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2007-01-15 19:51:58 +0800
committergarga <garga@FreeBSD.org>2007-01-15 19:51:58 +0800
commit5d70d5ac37bea0dd7c04e0fc01d044936ae5ea91 (patch)
tree12daf414b9b344166c4b273bac52afce4da5a119 /net-im/jabber-pyicq
parentd33e2c0cd35e47a0e8caa188211f8082e84379ad (diff)
downloadfreebsd-ports-gnome-5d70d5ac37bea0dd7c04e0fc01d044936ae5ea91.tar.gz
freebsd-ports-gnome-5d70d5ac37bea0dd7c04e0fc01d044936ae5ea91.tar.zst
freebsd-ports-gnome-5d70d5ac37bea0dd7c04e0fc01d044936ae5ea91.zip
- Patch to work with py-twisted 2.5.0
- Bump PORTREVISION PR: ports/107891 Submitted by: Neil Darlow <neil@darlow.co.uk> Obtained from: py-transports maillist (Lars T. Mikkelsen)
Diffstat (limited to 'net-im/jabber-pyicq')
-rw-r--r--net-im/jabber-pyicq/Makefile2
-rw-r--r--net-im/jabber-pyicq/files/patch-src_main.py14
2 files changed, 16 insertions, 0 deletions
diff --git a/net-im/jabber-pyicq/Makefile b/net-im/jabber-pyicq/Makefile
index 03b3ecf7830e..66d877470809 100644
--- a/net-im/jabber-pyicq/Makefile
+++ b/net-im/jabber-pyicq/Makefile
@@ -6,6 +6,7 @@
PORTNAME= pyicq
PORTVERSION= 0.8
+PORTREVISION= 1
CATEGORIES= net-im
MASTER_SITES= http://www.blathersource.org/download.php/pyicq-t/
PKGNAMEPREFIX= jabber-
@@ -62,6 +63,7 @@ post-patch:
${WRKSRC}/src/main.py
@${REINPLACE_CMD} -i "" 's|^#!.*$$|#!${LOCAL_PYTHON}|' \
${WRKSRC}/PyICQt.py
+ @${RM} -f ${WRKSRC}/src/main.py.orig
do-install:
${MKDIR} ${INST_DIR}/src ${INST_DIR}/data
diff --git a/net-im/jabber-pyicq/files/patch-src_main.py b/net-im/jabber-pyicq/files/patch-src_main.py
new file mode 100644
index 000000000000..5bff1b8f8fc2
--- /dev/null
+++ b/net-im/jabber-pyicq/files/patch-src_main.py
@@ -0,0 +1,14 @@
+--- src/main.py.orig Sat Sep 30 16:44:21 2006
++++ src/main.py Sun Jan 14 19:52:36 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: