From 9f62a612e6363e9d51de06ca6118dfd98c387d27 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Fri, 19 Apr 2002 04:22:50 +0000 Subject: [PATCH] add jabber-aim 0.9.24c Jabber User Directory module PR: 37209 Submitted by: Sean Chittenden --- net-im/jabber-aim/Makefile | 29 +++++++++++++++ net-im/jabber-aim/distinfo | 1 + net-im/jabber-aim/files/patch-aa | 41 ++++++++++++++++++++++ net-im/jabber-aim/pkg-comment | 1 + net-im/jabber-aim/pkg-descr | 5 +++ net-im/jabber-aim/pkg-message | 60 ++++++++++++++++++++++++++++++++ net-im/jabber-aim/pkg-plist | 1 + net/Makefile | 1 + net/jabber-aim/Makefile | 29 +++++++++++++++ net/jabber-aim/distinfo | 1 + net/jabber-aim/files/patch-aa | 41 ++++++++++++++++++++++ net/jabber-aim/pkg-comment | 1 + net/jabber-aim/pkg-descr | 5 +++ net/jabber-aim/pkg-message | 60 ++++++++++++++++++++++++++++++++ net/jabber-aim/pkg-plist | 1 + 15 files changed, 277 insertions(+) create mode 100644 net-im/jabber-aim/Makefile create mode 100644 net-im/jabber-aim/distinfo create mode 100644 net-im/jabber-aim/files/patch-aa create mode 100644 net-im/jabber-aim/pkg-comment create mode 100644 net-im/jabber-aim/pkg-descr create mode 100644 net-im/jabber-aim/pkg-message create mode 100644 net-im/jabber-aim/pkg-plist create mode 100644 net/jabber-aim/Makefile create mode 100644 net/jabber-aim/distinfo create mode 100644 net/jabber-aim/files/patch-aa create mode 100644 net/jabber-aim/pkg-comment create mode 100644 net/jabber-aim/pkg-descr create mode 100644 net/jabber-aim/pkg-message create mode 100644 net/jabber-aim/pkg-plist diff --git a/net-im/jabber-aim/Makefile b/net-im/jabber-aim/Makefile new file mode 100644 index 000000000000..01b7e28ae6ae --- /dev/null +++ b/net-im/jabber-aim/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: jabber-aim +# Date created: 14 Apr 2002 +# Whom: Sean Chittenden +# +# $FreeBSD$ + +PORTNAME= aim-transport +PORTVERSION= 0.9.24c +CATEGORIES= net +MASTER_SITES= http://download.jabber.org/dists/transports/aim-transport/ +PKGNAMEPREFIX= jabber- +DIST_SUBDIR= jabber + +MAINTAINER= sean@chittenden.org + +BUILD_DEPENDS= ${LOCALBASE}/sbin/jabberd:${PORTSDIR}/net/jabber + +USE_GMAKE= yes +USE_AUTOCONF= yes + +CONFIGURE_ARGS+= --with-jabberd=${PREFIX}/include/jabber + +do-install: + ${INSTALL_DATA} ${WRKSRC}/src/aimtrans.so ${PREFIX}/lib/jabber/ + +post-install: + @cat pkg-message + +.include diff --git a/net-im/jabber-aim/distinfo b/net-im/jabber-aim/distinfo new file mode 100644 index 000000000000..e4a7d7fe091c --- /dev/null +++ b/net-im/jabber-aim/distinfo @@ -0,0 +1 @@ +MD5 (jabber/aim-transport-0.9.24c.tar.gz) = a3c18654d41ebfaa3c74117004bf7d93 diff --git a/net-im/jabber-aim/files/patch-aa b/net-im/jabber-aim/files/patch-aa new file mode 100644 index 000000000000..943027808952 --- /dev/null +++ b/net-im/jabber-aim/files/patch-aa @@ -0,0 +1,41 @@ +--- src/sessions.c Tue Nov 27 04:14:37 2001 ++++ /usr/ports/distfiles/jabber/sessions.c.orig Wed Jan 30 09:07:47 2002 +@@ -221,6 +221,29 @@ + return 1; + } + ++static int aim_icbmparaminfo(aim_session_t* sess, aim_frame_t* fr, ...) ++{ ++ struct aim_icbmparameters *params; ++ va_list ap; ++ ++ va_start(ap, fr); ++ params = va_arg(ap, struct aim_icbmparameters *); ++ va_end(ap); ++ ++ /* ++ * Set these to your taste, or client medium. Setting minmsginterval ++ * higher is good for keeping yourself from getting flooded (esp ++ * if you're on a slow connection or something where that would be ++ * useful). ++ */ ++ params->maxmsglen = 8000; ++ params->minmsginterval = 0; /* in milliseconds */ ++ ++ aim_seticbmparam(sess, params); ++ ++ return 1; ++} ++ + int at_conninitdone_admin(aim_session_t *sess, + aim_frame_t *command, ...) + { +@@ -411,6 +434,8 @@ + AIM_CB_SPECIAL_CONNERR, at_parse_connerr, 0); + aim_conn_addhandler(sess, bosconn, 0x0001, 0x001f, + at_memrequest, 0); ++ aim_conn_addhandler(sess, bosconn, 0x0004, 0x0005, ++ aim_icbmparaminfo, 0); + + + am = pmalloco(s->p, sizeof(_at_mio)); diff --git a/net-im/jabber-aim/pkg-comment b/net-im/jabber-aim/pkg-comment new file mode 100644 index 000000000000..247740c3b84f --- /dev/null +++ b/net-im/jabber-aim/pkg-comment @@ -0,0 +1 @@ +Jabber User Directory module diff --git a/net-im/jabber-aim/pkg-descr b/net-im/jabber-aim/pkg-descr new file mode 100644 index 000000000000..200de6bc05a2 --- /dev/null +++ b/net-im/jabber-aim/pkg-descr @@ -0,0 +1,5 @@ +The Jabber server (jabberd) is a daemon for Jabber clients to connect +and communicate with. JUD is allows clients to search for other users. + +You can learn more about Jabber at: +WWW: http://server.jabber.org/ diff --git a/net-im/jabber-aim/pkg-message b/net-im/jabber-aim/pkg-message new file mode 100644 index 000000000000..5a9fd802740a --- /dev/null +++ b/net-im/jabber-aim/pkg-message @@ -0,0 +1,60 @@ +You can connect to ICQ using this transport, however you cannot +retrieve ICQ away status messages or user information, nor search for +users. A simple SMS sending hack is included, but for now responses do +not come through and no SMS sending confirmation is sent. For SMS, +send "SEND-SMS:number:text" to any ICQ user, for example +"SEND-SMS:+4917012345:Test". + +To activate aim-transport, you will need to edit your jabber.xml to +tell jabberd to load this file, and let clients be aware of it's +availability. In the browse section of the jsm service you need to +add (uncomment out this block around line 248 of the sample +configuration): + + + + jabber:iq:gateway + jabber:iq:register + + +Next you need to add the lines to load in the transport and it's +configuration options. Please note that the following is +substantially different than what comes in the sample config +file. (near line 457): + + + + ${PREFIX}/lib/jabber/aimtrans.so + + + + /path/to/aim_install + + AIM Transport + An AIM Transport! + http://foo.bar/ + + + + + +The most interesting of these is the flag. For +aimtransport to be able to work you need a valid directory from AIM +version 3.5.1670. It has to be that version. I would suggest +searching on Google. For legal reasons I can not distribute this +file. + +The installer version that works for me is this with md5sum: + +04eba0bd0ea5fe1756612e14663093aa /win/Install_AIM_3.5.1670.exe + +After these changes everything should be running smoothly. diff --git a/net-im/jabber-aim/pkg-plist b/net-im/jabber-aim/pkg-plist new file mode 100644 index 000000000000..898d9188e22c --- /dev/null +++ b/net-im/jabber-aim/pkg-plist @@ -0,0 +1 @@ +lib/jabber/aimtrans.so diff --git a/net/Makefile b/net/Makefile index b7217d1e0ef3..4b6311563a67 100644 --- a/net/Makefile +++ b/net/Makefile @@ -191,6 +191,7 @@ SUBDIR += isc-dhcp3 SUBDIR += isic SUBDIR += jabber + SUBDIR += jabber-aim SUBDIR += jabber-conference SUBDIR += jags SUBDIR += javadc diff --git a/net/jabber-aim/Makefile b/net/jabber-aim/Makefile new file mode 100644 index 000000000000..01b7e28ae6ae --- /dev/null +++ b/net/jabber-aim/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: jabber-aim +# Date created: 14 Apr 2002 +# Whom: Sean Chittenden +# +# $FreeBSD$ + +PORTNAME= aim-transport +PORTVERSION= 0.9.24c +CATEGORIES= net +MASTER_SITES= http://download.jabber.org/dists/transports/aim-transport/ +PKGNAMEPREFIX= jabber- +DIST_SUBDIR= jabber + +MAINTAINER= sean@chittenden.org + +BUILD_DEPENDS= ${LOCALBASE}/sbin/jabberd:${PORTSDIR}/net/jabber + +USE_GMAKE= yes +USE_AUTOCONF= yes + +CONFIGURE_ARGS+= --with-jabberd=${PREFIX}/include/jabber + +do-install: + ${INSTALL_DATA} ${WRKSRC}/src/aimtrans.so ${PREFIX}/lib/jabber/ + +post-install: + @cat pkg-message + +.include diff --git a/net/jabber-aim/distinfo b/net/jabber-aim/distinfo new file mode 100644 index 000000000000..e4a7d7fe091c --- /dev/null +++ b/net/jabber-aim/distinfo @@ -0,0 +1 @@ +MD5 (jabber/aim-transport-0.9.24c.tar.gz) = a3c18654d41ebfaa3c74117004bf7d93 diff --git a/net/jabber-aim/files/patch-aa b/net/jabber-aim/files/patch-aa new file mode 100644 index 000000000000..943027808952 --- /dev/null +++ b/net/jabber-aim/files/patch-aa @@ -0,0 +1,41 @@ +--- src/sessions.c Tue Nov 27 04:14:37 2001 ++++ /usr/ports/distfiles/jabber/sessions.c.orig Wed Jan 30 09:07:47 2002 +@@ -221,6 +221,29 @@ + return 1; + } + ++static int aim_icbmparaminfo(aim_session_t* sess, aim_frame_t* fr, ...) ++{ ++ struct aim_icbmparameters *params; ++ va_list ap; ++ ++ va_start(ap, fr); ++ params = va_arg(ap, struct aim_icbmparameters *); ++ va_end(ap); ++ ++ /* ++ * Set these to your taste, or client medium. Setting minmsginterval ++ * higher is good for keeping yourself from getting flooded (esp ++ * if you're on a slow connection or something where that would be ++ * useful). ++ */ ++ params->maxmsglen = 8000; ++ params->minmsginterval = 0; /* in milliseconds */ ++ ++ aim_seticbmparam(sess, params); ++ ++ return 1; ++} ++ + int at_conninitdone_admin(aim_session_t *sess, + aim_frame_t *command, ...) + { +@@ -411,6 +434,8 @@ + AIM_CB_SPECIAL_CONNERR, at_parse_connerr, 0); + aim_conn_addhandler(sess, bosconn, 0x0001, 0x001f, + at_memrequest, 0); ++ aim_conn_addhandler(sess, bosconn, 0x0004, 0x0005, ++ aim_icbmparaminfo, 0); + + + am = pmalloco(s->p, sizeof(_at_mio)); diff --git a/net/jabber-aim/pkg-comment b/net/jabber-aim/pkg-comment new file mode 100644 index 000000000000..247740c3b84f --- /dev/null +++ b/net/jabber-aim/pkg-comment @@ -0,0 +1 @@ +Jabber User Directory module diff --git a/net/jabber-aim/pkg-descr b/net/jabber-aim/pkg-descr new file mode 100644 index 000000000000..200de6bc05a2 --- /dev/null +++ b/net/jabber-aim/pkg-descr @@ -0,0 +1,5 @@ +The Jabber server (jabberd) is a daemon for Jabber clients to connect +and communicate with. JUD is allows clients to search for other users. + +You can learn more about Jabber at: +WWW: http://server.jabber.org/ diff --git a/net/jabber-aim/pkg-message b/net/jabber-aim/pkg-message new file mode 100644 index 000000000000..5a9fd802740a --- /dev/null +++ b/net/jabber-aim/pkg-message @@ -0,0 +1,60 @@ +You can connect to ICQ using this transport, however you cannot +retrieve ICQ away status messages or user information, nor search for +users. A simple SMS sending hack is included, but for now responses do +not come through and no SMS sending confirmation is sent. For SMS, +send "SEND-SMS:number:text" to any ICQ user, for example +"SEND-SMS:+4917012345:Test". + +To activate aim-transport, you will need to edit your jabber.xml to +tell jabberd to load this file, and let clients be aware of it's +availability. In the browse section of the jsm service you need to +add (uncomment out this block around line 248 of the sample +configuration): + + + + jabber:iq:gateway + jabber:iq:register + + +Next you need to add the lines to load in the transport and it's +configuration options. Please note that the following is +substantially different than what comes in the sample config +file. (near line 457): + + + + ${PREFIX}/lib/jabber/aimtrans.so + + + + /path/to/aim_install + + AIM Transport + An AIM Transport! + http://foo.bar/ + + + + + +The most interesting of these is the flag. For +aimtransport to be able to work you need a valid directory from AIM +version 3.5.1670. It has to be that version. I would suggest +searching on Google. For legal reasons I can not distribute this +file. + +The installer version that works for me is this with md5sum: + +04eba0bd0ea5fe1756612e14663093aa /win/Install_AIM_3.5.1670.exe + +After these changes everything should be running smoothly. diff --git a/net/jabber-aim/pkg-plist b/net/jabber-aim/pkg-plist new file mode 100644 index 000000000000..898d9188e22c --- /dev/null +++ b/net/jabber-aim/pkg-plist @@ -0,0 +1 @@ +lib/jabber/aimtrans.so