aboutsummaryrefslogtreecommitdiff
path: root/net-im/py-xmpppy-yahoo
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2007-07-27 08:56:09 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2007-07-27 08:56:09 +0000
commit487c748eca517596febac09d7055c2b395af2490 (patch)
tree1f5033f0dfd4fa9b71cd2465e2a6ffb3197e56eb /net-im/py-xmpppy-yahoo
parentab3cf3c5a64726c06ad9955aafd5f0f2845829f4 (diff)
downloadports-487c748eca517596febac09d7055c2b395af2490.tar.gz
ports-487c748eca517596febac09d7055c2b395af2490.zip
Notes
Diffstat (limited to 'net-im/py-xmpppy-yahoo')
-rw-r--r--net-im/py-xmpppy-yahoo/Makefile83
-rw-r--r--net-im/py-xmpppy-yahoo/distinfo3
-rw-r--r--net-im/py-xmpppy-yahoo/files/xmpppy_yahoo.in32
-rw-r--r--net-im/py-xmpppy-yahoo/pkg-descr5
4 files changed, 123 insertions, 0 deletions
diff --git a/net-im/py-xmpppy-yahoo/Makefile b/net-im/py-xmpppy-yahoo/Makefile
new file mode 100644
index 000000000000..65aa0b0c0346
--- /dev/null
+++ b/net-im/py-xmpppy-yahoo/Makefile
@@ -0,0 +1,83 @@
+# Ports collection makefile for: xmpppy-yahoo
+# Date created: Thu Jul 26
+# Whom: Michael Nottebrock <lofi@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= yahoo
+PORTVERSION= 0.3.20070314
+CATEGORIES= net-im python
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR=lofi
+PKGNAMEPREFIX= xmpppy-
+DISTNAME= yahoo-transport-${PORTVERSION}
+
+MAINTAINER= lofi@FreeBSD.org
+COMMENT= Yahoo! transport for Jabber
+
+OPTIONS= EJABBERD "Use transport with ejabberd" off
+
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/xmpp/__init__.py:${PORTSDIR}/net-im/py-xmpppy \
+ ${PYTHON_SITELIBDIR}/DNS/__init__.py:${PORTSDIR}/dns/py-dns
+
+USE_PYTHON= 2.3+
+NO_BUILD= yes
+FILES= adhoc.py config.py jep0133.py roomlist.py xmlconfig.py \
+ yahoo_helpers.py avatar.py htmlutils.py migratespool.py toolbox.py \
+ yahoo.py ylib.py
+FILES_CURPHOO= YahooMD5.py __init__.py cpformat.py md5crypt.py pysha.py yahoo_fn.py
+PFILES= ${FILES:S.^.%%PYTHON_SITELIBDIR%%/xmpp/yahoo/.} \
+ ${FILES_CURPHOO:S.^.%%PYTHON_SITELIBDIR%%/xmpp/yahoo/curphoo/.}
+PLIST_FILES= ${PFILES} ${PFILES:S.$.c.} ${PFILES:S.$.o.} etc/${UNIQUENAME:S.-._.}.conf.sample
+PLIST_DIRS= %%PYTHON_SITELIBDIR%%/xmpp/yahoo/curphoo %%PYTHON_SITELIBDIR%%/xmpp/yahoo
+SUB_LIST+= PYTHON_CMD=${PYTHON_CMD} BINDIR=${PYTHON_SITELIBDIR}/xmpp/yahoo \
+ JABBER_USER=${JABBER_USER}
+USE_RC_SUBR= ${UNIQUENAME:S/-/_/}
+DDIR= ${PYTHON_SITELIBDIR}/xmpp/yahoo
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_EJABBERD)
+JABBER_USER?= ejabberd
+SUB_LIST+= JABBER_REQUIRE=ejabberd
+.else
+JABBER_USER?= jabber
+SUB_LIST+= JABBER_REQUIRE=jabberd
+.endif
+
+post-patch:
+ @${GREP} -lr '/usr/bin/env python' ${WRKSRC} | \
+ ${XARGS} ${REINPLACE_CMD} -e "s|/usr/bin/env python|${PYTHON_CMD}|"
+ @${REINPLACE_CMD} -e "s|/etc/pyyimt.conf.xml|${PREFIX}/etc/${UNIQUENAME:S.-._.}.conf|" \
+ -e 's|pid = ""|pid = "/var/jabberd/pid/PyYIMt.pid"|g' \
+ -e 's|spoolFile = "user.dbm"|spoolFile = "/var/spool/jabberd/yahoouser.dbm"|g' \
+ ${WRKSRC}/config.py
+ @${REINPLACE_CMD} -e '/spoolFile/s|yahoouser.dbm|/var/spool/jabberd/yahoouser.dbm|' \
+ -e 's|<debugFile.*|<!-- <debugFile>yahooerror.log</debugFile> -->|' \
+ -e 's|PyYIMt.pid|/var/jabberd/pid/PyYIMt.pid|' \
+ ${WRKSRC}/config_example.xml
+
+do-install:
+ @${INSTALL} -d ${DDIR}
+ @${INSTALL_DATA} ${FILES:S.^.${WRKSRC}/.} ${DDIR}/
+ @${INSTALL_SCRIPT} ${WRKSRC}/yahoo.py ${DDIR}/
+ @${MKDIR} ${DDIR}/curphoo
+ @${INSTALL_DATA} ${FILES_CURPHOO:S.^.${WRKSRC}/curphoo/.} ${DDIR}/curphoo/
+ @${INSTALL_DATA} ${WRKSRC}/config_example.xml ${PREFIX}/etc/${UNIQUENAME:S.-._.}.conf.sample
+ @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${DDIR}
+ @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${DDIR}
+ @${CHMOD} -R a-w ${DDIR}
+
+post-install:
+ @${ECHO_CMD}
+ @${ECHO_CMD} "****************************************************"
+ @${ECHO_CMD} "A sample configuration file has been installed in"
+ @${ECHO_CMD} "${PREFIX}/etc/${UNIQUENAME:S.-._.}.conf.sample"
+ @${ECHO_CMD}
+ @${ECHO_CMD} "Follow the setup instructions at"
+ @${ECHO_CMD} "http://wiki.blathersource.org/wiki/index.php/PyYIMt."
+ @${ECHO_CMD} "****************************************************"
+ @${ECHO_CMD}
+
+.include <bsd.port.post.mk>
diff --git a/net-im/py-xmpppy-yahoo/distinfo b/net-im/py-xmpppy-yahoo/distinfo
new file mode 100644
index 000000000000..39ac0854904e
--- /dev/null
+++ b/net-im/py-xmpppy-yahoo/distinfo
@@ -0,0 +1,3 @@
+MD5 (yahoo-transport-0.3.20070314.tar.gz) = f6326074a9fb781f1a78f71fa781f878
+SHA256 (yahoo-transport-0.3.20070314.tar.gz) = 73a1af4e99c00b832ec293c067a0e59330ec5a993605de8d28c4122c1faec11a
+SIZE (yahoo-transport-0.3.20070314.tar.gz) = 94998
diff --git a/net-im/py-xmpppy-yahoo/files/xmpppy_yahoo.in b/net-im/py-xmpppy-yahoo/files/xmpppy_yahoo.in
new file mode 100644
index 000000000000..9af196e63404
--- /dev/null
+++ b/net-im/py-xmpppy-yahoo/files/xmpppy_yahoo.in
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: xmpppy_yahoo
+# REQUIRE: DAEMON %%JABBER_REQUIRE%%
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+#
+# Define these jabber_pyaim_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+#
+
+. %%RC_SUBR%%
+
+name="xmpppy_yahoo"
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+: ${xmpppy_yahoo_enable="NO"}
+: ${xmpppy_yahoo_dir="%%BINDIR%%"}
+: ${xmpppy_yahoo_piddir="/var/jabberd/pid"}
+: ${xmpppy_yahoo_user="%%JABBER_USER%%"}
+
+pidfile="${xmpppy_yahoo_piddir}/PyYIMt.pid"
+command_interpreter="%%PYTHON_CMD%%"
+command_args="&"
+command="${xmpppy_yahoo_dir}/yahoo.py"
+
+run_rc_command "$1"
diff --git a/net-im/py-xmpppy-yahoo/pkg-descr b/net-im/py-xmpppy-yahoo/pkg-descr
new file mode 100644
index 000000000000..95e896add8f4
--- /dev/null
+++ b/net-im/py-xmpppy-yahoo/pkg-descr
@@ -0,0 +1,5 @@
+The Y!M transport is a dynamic gateway that allows XMPP/Jabber
+users to connect to Yahoo! Messenger using their Groupchat and MUC clients.
+It is based on xmpppy and curphoo Python libraries.
+
+WWW: http://xmpppy.sourceforge.net/yahoo/