summaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2005-12-06 15:05:55 +0000
committergarga <garga@FreeBSD.org>2005-12-06 15:05:55 +0000
commit738ae82f19175e4c701ca785510eec6c1f923bb2 (patch)
tree15f3fa29d8512d97947e2f9d84b12a84c2e8a97e /net-im
parent3bc6f31e2e954c231aa100963a65e3de60666a78 (diff)
downloadFreeBSD-ports-738ae82f19175e4c701ca785510eec6c1f923bb2.zip
FreeBSD-ports-738ae82f19175e4c701ca785510eec6c1f923bb2.tar.gz
- Update to 0.10.2
- Add SHA256 hash - Sort pkg-plist - Fix rc.d script - Add some patches to store the proccess pid PR: ports/90016 Approved by: maintainer
Diffstat (limited to 'net-im')
-rw-r--r--net-im/jabber-pymsn/Makefile17
-rw-r--r--net-im/jabber-pymsn/distinfo5
-rw-r--r--net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in3
-rw-r--r--net-im/jabber-pymsn/files/patch-config-example.xml11
-rw-r--r--net-im/jabber-pymsn/files/patch-src_config.py17
-rw-r--r--net-im/jabber-pymsn/files/patch-src_main.py28
-rw-r--r--net-im/jabber-pymsn/files/patch-src_utils.py12
-rw-r--r--net-im/jabber-pymsn/pkg-plist54
8 files changed, 110 insertions, 37 deletions
diff --git a/net-im/jabber-pymsn/Makefile b/net-im/jabber-pymsn/Makefile
index e6db5f5..9ef009c 100644
--- a/net-im/jabber-pymsn/Makefile
+++ b/net-im/jabber-pymsn/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= pymsn
-PORTVERSION= 0.10
+PORTVERSION= 0.10.2
CATEGORIES= net-im
MASTER_SITES= http://msn-transport.jabberstudio.org/tarballs/
PKGNAMEPREFIX= jabber-
@@ -32,16 +32,19 @@ INST_DIR= ${PREFIX}/lib/jabber/${PORTNAME}
PORTDOCS= COPYING README TODO
post-extract:
- @${FIND} ${WRKSRC}/ -type d -name CVS |xargs ${RM} -rf
+ @${FIND} ${WRKSRC}/ -type d \( -name CVS -or -name .svn \) | ${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>-->|' \
+ @${REINPLACE_CMD} -i "" '/spooldir/s|/path/to/data|/var/spool/jabber|' \
${WRKSRC}/config-example.xml
- @${REINPLACE_CMD} -e 's|../config.xml|${PREFIX}/etc/jabber-pymsn.xml|g' \
+ @${REINPLACE_CMD} -i "" 's|../config.xml|${PREFIX}/etc/jabber-pymsn.xml|g' \
${WRKSRC}/src/xmlconfig.py
- @${RM} ${WRKSRC}/src/xmlconfig.py.bak
+ @${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' \
+ ${WRKSRC}/src/config.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
diff --git a/net-im/jabber-pymsn/distinfo b/net-im/jabber-pymsn/distinfo
index 4327c2f..9b5b74f 100644
--- a/net-im/jabber-pymsn/distinfo
+++ b/net-im/jabber-pymsn/distinfo
@@ -1,2 +1,3 @@
-MD5 (jabber/pymsnt-0.10.tar.gz) = dc2ec5aacb754b6541b7b20668c3d2b4
-SIZE (jabber/pymsnt-0.10.tar.gz) = 123185
+MD5 (jabber/pymsnt-0.10.2.tar.gz) = 31f6c2b9a744e6291ab53cb57d97a109
+SHA256 (jabber/pymsnt-0.10.2.tar.gz) = e988fe454a96dc4b59f532ad7ab615fea0981402c5834bb90310dd34d2f22548
+SIZE (jabber/pymsnt-0.10.2.tar.gz) = 253552
diff --git a/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in b/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in
index fc0a593..0716131 100644
--- a/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in
+++ b/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in
@@ -18,7 +18,6 @@ jabber_pymsn_dir=${jabberd_pymsn_dir-"%%PREFIX%%/lib/jabber/pymsn"}
jabber_pymsn_piddir=${jabberd_pymsn_piddir-"/var/jabberd/pid"}
jabber_pymsn_enable=${jabberd_pymsn_enable-"NO"}
-
. %%RC_SUBR%%
name="jabber_pymsn"
@@ -26,8 +25,8 @@ rcvar=`set_rcvar`
command_interpreter="%%PYTHON_CMD%%"
command="${jabber_pymsn_dir}/main.py"
command_args="&"
+jabber_pymsn_chdir=${jabber_pymsn_dir}
-#procname="${PYTHON} ${jabber_pymsn_dir}/main.py"
pidfile="${jabber_pymsn_piddir}/pymsn.pid"
load_rc_config $name
diff --git a/net-im/jabber-pymsn/files/patch-config-example.xml b/net-im/jabber-pymsn/files/patch-config-example.xml
new file mode 100644
index 0000000..bd4a2c6
--- /dev/null
+++ b/net-im/jabber-pymsn/files/patch-config-example.xml
@@ -0,0 +1,11 @@
+--- config-example.xml.orig Tue Dec 6 07:11:29 2005
++++ config-example.xml Tue Dec 6 07:12:36 2005
+@@ -12,6 +12,8 @@
+ Do not include the jid of the transport -->
+ <!-- <spooldir>/path/to/data</spooldir> -->
+
++<!-- The location of the PID file (if relative, relative to the PyMSNt dir) -->
++<pid>/var/jabberd/pid/pymsn.pid</pid>
+
+ <!-- The IP address of the main Jabber server to connect to -->
+ <mainServer>127.0.0.1</mainServer>
diff --git a/net-im/jabber-pymsn/files/patch-src_config.py b/net-im/jabber-pymsn/files/patch-src_config.py
new file mode 100644
index 0000000..4617384
--- /dev/null
+++ b/net-im/jabber-pymsn/files/patch-src_config.py
@@ -0,0 +1,17 @@
+--- src/config.py.orig Mon Dec 5 16:43:57 2005
++++ src/config.py Mon Dec 5 16:45:18 2005
+@@ -1,11 +1,12 @@
+ # This file contains the default settings for various options.
+ # Please edit config.xml instead of this file
+
+-configFile = "config.xml"
++configFile = "%%PREFIX%%/etc/jabber-pymsn.xml"
+
+ jid = "msn"
+ compjid = ""
+-spooldir = ""
++spooldir = "/tmp/jabber-pymsn"
++pid = "/var/jabberd/pid/pymsn.pid"
+
+ mainServer = "127.0.0.1"
+ mainServerJID = ""
diff --git a/net-im/jabber-pymsn/files/patch-src_main.py b/net-im/jabber-pymsn/files/patch-src_main.py
new file mode 100644
index 0000000..e7879f6
--- /dev/null
+++ b/net-im/jabber-pymsn/files/patch-src_main.py
@@ -0,0 +1,28 @@
+--- src/main.py.orig Mon Dec 5 16:39:23 2005
++++ src/main.py Mon Dec 5 16:41:07 2005
+@@ -233,6 +233,17 @@
+
+ class App:
+ def __init__(self):
++ # Check that there isn't already a PID file
++ if(os.path.isfile(utils.doPath(config.pid))):
++ print "PID file exists at that location. Please check for running PyMSNt and try again."
++ sys.exit(1)
++
++ # Create a PID file
++ pid = str(os.getpid())
++ pf = file(utils.doPath(config.pid),'w')
++ pf.write("%s\n" % pid);
++ pf.close()
++
+ jid = config.jid
+ if config.compjid: jid = config.compjid
+ self.c = component.buildServiceManager(jid, config.secret, "tcp:%s:%s" % (config.mainServer, config.port))
+@@ -248,6 +259,7 @@
+
+ def shuttingDown(self):
+ self.transportSvc.removeMe()
++ os.remove(utils.doPath(config.pid))
+ # Keep the transport running for another 3 seconds
+ def cb(ignored=None):
+ pass
diff --git a/net-im/jabber-pymsn/files/patch-src_utils.py b/net-im/jabber-pymsn/files/patch-src_utils.py
new file mode 100644
index 0000000..f3da375
--- /dev/null
+++ b/net-im/jabber-pymsn/files/patch-src_utils.py
@@ -0,0 +1,12 @@
+--- src/utils.py.orig Mon Dec 5 16:41:53 2005
++++ src/utils.py Mon Dec 5 16:42:18 2005
+@@ -180,4 +180,8 @@
+ def flush(self):
+ self.lst = []
+
+-
++def doPath(path):
++ if(path and path[0] == "/"):
++ return path
++ else:
++ return "../" + path
diff --git a/net-im/jabber-pymsn/pkg-plist b/net-im/jabber-pymsn/pkg-plist
index 45fe1fb..144efe3 100644
--- a/net-im/jabber-pymsn/pkg-plist
+++ b/net-im/jabber-pymsn/pkg-plist
@@ -1,45 +1,47 @@
@unexec if cmp -s %D/%%EXAMPLESDIR%%/etc/jabber-pymsn.xml %D/etc/jabber-pymsn.xml; then rm -f %D/etc/jabber-pymsn.xml; fi
%%EXAMPLESDIR%%/etc/jabber-pymsn.xml
@exec [ -f %D/etc/jabber-pymsn.xml ] || cp %B/%f %D/etc/jabber-pymsn.xml
+lib/jabber/pymsn/avatar.py
+lib/jabber/pymsn/baseproto/__init__.py
+lib/jabber/pymsn/baseproto/glue.py
+@unexec if cmp -s %D/lib/jabber/pymsn/config.py.sample %D/lib/jabber/pymsn/config.py; then rm -f %D/lib/jabber/pymsn/config.py; fi
+lib/jabber/pymsn/config.py.sample
+@exec [ -f %D/lib/jabber/pymsn/config.py ] || cp %B/%f %D/lib/jabber/pymsn/config.py
+lib/jabber/pymsn/contact.py
+lib/jabber/pymsn/debug.py
+lib/jabber/pymsn/disco.py
+lib/jabber/pymsn/groupchat.py
+lib/jabber/pymsn/housekeep.py
+lib/jabber/pymsn/jabw.py
+lib/jabber/pymsn/lang.py
+lib/jabber/pymsn/legacy/__init__.py
+lib/jabber/pymsn/legacy/defaultAvatar.png
+lib/jabber/pymsn/legacy/defaultJabberAvatar.png
+lib/jabber/pymsn/legacy/glue.py
+lib/jabber/pymsn/legacy/legacylist.py
+lib/jabber/pymsn/legacy/msnw.py
+lib/jabber/pymsn/main.py
+lib/jabber/pymsn/misciq.py
+lib/jabber/pymsn/msnp11chl.py
+lib/jabber/pymsn/msnp2p.py
+lib/jabber/pymsn/register.py
+lib/jabber/pymsn/session.py
+lib/jabber/pymsn/tlib/__init__.py
+lib/jabber/pymsn/tlib/domish.py
lib/jabber/pymsn/tlib/jabber/__init__.py
lib/jabber/pymsn/tlib/jabber/client.py
lib/jabber/pymsn/tlib/jabber/component.py
lib/jabber/pymsn/tlib/jabber/jid.py
lib/jabber/pymsn/tlib/jabber/jstrports.py
lib/jabber/pymsn/tlib/jabber/xmpp_stringprep.py
-lib/jabber/pymsn/tlib/domish.py
-lib/jabber/pymsn/tlib/__init__.py
lib/jabber/pymsn/tlib/msn.py
lib/jabber/pymsn/tlib/msnp11chl.py
lib/jabber/pymsn/tlib/msnp2p.py
lib/jabber/pymsn/tlib/proxy.py
lib/jabber/pymsn/tlib/xmlstream.py
-lib/jabber/pymsn/baseproto/__init__.py
-lib/jabber/pymsn/baseproto/glue.py
-lib/jabber/pymsn/legacy/__init__.py
-lib/jabber/pymsn/legacy/defaultAvatar.png
-lib/jabber/pymsn/legacy/defaultJabberAvatar.png
-lib/jabber/pymsn/legacy/glue.py
-lib/jabber/pymsn/legacy/legacylist.py
-lib/jabber/pymsn/legacy/msnw.py
-lib/jabber/pymsn/avatar.py
-lib/jabber/pymsn/contact.py
-lib/jabber/pymsn/housekeep.py
-lib/jabber/pymsn/xmlconfig.py
-@unexec if cmp -s %D/lib/jabber/pymsn/config.py.sample %D/lib/jabber/pymsn/config.py; then rm -f %D/lib/jabber/pymsn/config.py; fi
-lib/jabber/pymsn/config.py.sample
-@exec [ -f %D/lib/jabber/pymsn/config.py ] || cp %B/%f %D/lib/jabber/pymsn/config.py
-lib/jabber/pymsn/register.py
-lib/jabber/pymsn/misciq.py
-lib/jabber/pymsn/main.py
lib/jabber/pymsn/utils.py
-lib/jabber/pymsn/lang.py
-lib/jabber/pymsn/jabw.py
-lib/jabber/pymsn/groupchat.py
-lib/jabber/pymsn/disco.py
-lib/jabber/pymsn/debug.py
lib/jabber/pymsn/xdb.py
-lib/jabber/pymsn/session.py
+lib/jabber/pymsn/xmlconfig.py
@dirrm lib/jabber/pymsn/tlib/jabber
@dirrm lib/jabber/pymsn/tlib
@dirrm lib/jabber/pymsn/legacy
OpenPOWER on IntegriCloud