Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2002 18:18:55 -0700 (PDT)
From:      Sean Chittenden <sean@chittenden.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/37209: New port: net/jabber-aim
Message-ID:  <20020418011855.1E8FE2EE096@perrin.tgd.net>

next in thread | raw e-mail | index | archive | help

>Number:         37209
>Category:       ports
>Synopsis:       New port: net/jabber-aim
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 17 18:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Sean Chittenden
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD perrin.tgd.net 4.5-STABLE FreeBSD 4.5-STABLE #3: Sat Apr 13 12:49:18 PDT 2002 sean@mat.tgd.net:/usr/obj/usr/src/sys/MAT i386


	
>Description:
	Port of the aim transport for jabber.
>How-To-Repeat:
	
>Fix:


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	net/jabber-aim
#	net/jabber-aim/distinfo
#	net/jabber-aim/pkg-comment
#	net/jabber-aim/Makefile
#	net/jabber-aim/pkg-descr
#	net/jabber-aim/pkg-plist
#	net/jabber-aim/pkg-message
#	net/jabber-aim/files
#	net/jabber-aim/files/patch-aa
#
echo c - net/jabber-aim
mkdir -p net/jabber-aim > /dev/null 2>&1
echo x - net/jabber-aim/distinfo
sed 's/^X//' >net/jabber-aim/distinfo << 'END-of-net/jabber-aim/distinfo'
XMD5 (jabber/aim-transport-0.9.24c.tar.gz) = a3c18654d41ebfaa3c74117004bf7d93
END-of-net/jabber-aim/distinfo
echo x - net/jabber-aim/pkg-comment
sed 's/^X//' >net/jabber-aim/pkg-comment << 'END-of-net/jabber-aim/pkg-comment'
XJabber User Directory module
END-of-net/jabber-aim/pkg-comment
echo x - net/jabber-aim/Makefile
sed 's/^X//' >net/jabber-aim/Makefile << 'END-of-net/jabber-aim/Makefile'
X# New ports collection makefile for:	jabber-aim
X# Date created:			14 Apr 2002
X# Whom:				Sean Chittenden <sean@chittenden.org>
X#
X# $FreeBSD$
X
XPORTNAME=	aim-transport
XPORTVERSION=	0.9.24c
XCATEGORIES=	net
XMASTER_SITES=	http://download.jabber.org/dists/transports/aim-transport/
XPKGNAMEPREFIX=	jabber-
XDIST_SUBDIR=	jabber
X
XMAINTAINER=	sean@chittenden.org
X
XBUILD_DEPENDS=	${LOCALBASE}/sbin/jabberd:${PORTSDIR}/net/jabber
X
XUSE_GMAKE=	yes
XUSE_AUTOCONF=	yes
X
XCONFIGURE_ARGS+= --with-jabberd=${PREFIX}/include/jabber
X
Xdo-install:
X	${INSTALL_DATA} ${WRKSRC}/src/aimtrans.so ${PREFIX}/lib/jabber/
X
Xpost-install:
X	@cat pkg-message
X
X.include <bsd.port.mk>
END-of-net/jabber-aim/Makefile
echo x - net/jabber-aim/pkg-descr
sed 's/^X//' >net/jabber-aim/pkg-descr << 'END-of-net/jabber-aim/pkg-descr'
XThe Jabber server (jabberd) is a daemon for Jabber clients to connect
Xand communicate with.  JUD is allows clients to search for other users.
X
XYou can learn more about Jabber at:
XWWW: http://server.jabber.org/
END-of-net/jabber-aim/pkg-descr
echo x - net/jabber-aim/pkg-plist
sed 's/^X//' >net/jabber-aim/pkg-plist << 'END-of-net/jabber-aim/pkg-plist'
Xlib/jabber/aimtrans.so
END-of-net/jabber-aim/pkg-plist
echo x - net/jabber-aim/pkg-message
sed 's/^X//' >net/jabber-aim/pkg-message << 'END-of-net/jabber-aim/pkg-message'
XYou can connect to ICQ using this transport, however you cannot
Xretrieve ICQ away status messages or user information, nor search for
Xusers. A simple SMS sending hack is included, but for now responses do
Xnot come through and no SMS sending confirmation is sent.  For SMS,
Xsend "SEND-SMS:number:text" to any ICQ user, for example
X"SEND-SMS:+4917012345:Test".
X
XTo activate aim-transport, you will need to edit your jabber.xml to
Xtell jabberd to load this file, and let clients be aware of it's
Xavailability.  In the browse section of the jsm service you need to
Xadd (uncomment out this block around line 248 of the sample
Xconfiguration):
X
X	<!--
X	 * Don't forget to change aim.localhost to your hostname
X	 * if you want to make this publicly available.
X	-->
X	<service type="aim" jid="aim.localhost" name="AIM Transport">
X	  <ns>jabber:iq:gateway</ns>
X	  <ns>jabber:iq:register</ns>
X	</service>
X
XNext you need to add the lines to load in the transport and it's
Xconfiguration options.  Please note that the following is
Xsubstantially different than what comes in the sample config
Xfile. (near line 457):
X
X  <!--
X   * Don't forget to change aim.localhost to your hostname
X   * if you want to make this publicly available.
X  -->
X  <service id='aim.localhost'>
X    <load><aim_transport>${PREFIX}/lib/jabber/aimtrans.so</aim_transport></load>
X
X    <aimtrans xmlns='jabber:config:aimtrans'>
X      <!--
X        * This is the path to the aim binary neede by libfain for
X        * for providing access to AIM's servers
X      -->
X      <aimbinarydir>/path/to/aim_install</aimbinarydir>
X      <vCard>
X        <FN>AIM Transport</FN>
X        <DESC>An AIM Transport!</DESC>
X        <URL>http://foo.bar/</URL>;
X      </vCard>
X      
X    </aimtrans>
X  </service>
X
XThe most interesting of these is the <aimbinarydir/> flag.  For
Xaimtransport to be able to work you need a valid directory from AIM
Xversion 3.5.1670.  It has to be that version.  I would suggest
Xsearching on Google.  For legal reasons I can not distribute this
Xfile.
X
XThe installer version that works for me is this with md5sum:
X
X04eba0bd0ea5fe1756612e14663093aa  /win/Install_AIM_3.5.1670.exe
X
XAfter these changes everything should be running smoothly.
END-of-net/jabber-aim/pkg-message
echo c - net/jabber-aim/files
mkdir -p net/jabber-aim/files > /dev/null 2>&1
echo x - net/jabber-aim/files/patch-aa
sed 's/^X//' >net/jabber-aim/files/patch-aa << 'END-of-net/jabber-aim/files/patch-aa'
X--- src/sessions.c	Tue Nov 27 04:14:37 2001
X+++ /usr/ports/distfiles/jabber/sessions.c.orig	Wed Jan 30 09:07:47 2002
X@@ -221,6 +221,29 @@
X     return 1;
X }
X 
X+static int aim_icbmparaminfo(aim_session_t* sess, aim_frame_t* fr, ...)
X+{
X+    struct aim_icbmparameters *params;
X+    va_list ap;
X+
X+	va_start(ap, fr);
X+	params = va_arg(ap, struct aim_icbmparameters *);
X+	va_end(ap);
X+
X+	/*
X+	 * Set these to your taste, or client medium.  Setting minmsginterval
X+	 * higher is good for keeping yourself from getting flooded (esp
X+	 * if you're on a slow connection or something where that would be
X+	 * useful).
X+	 */
X+	params->maxmsglen = 8000;
X+	params->minmsginterval = 0; /* in milliseconds */
X+
X+	aim_seticbmparam(sess, params);
X+
X+	return 1;
X+}
X+
X int at_conninitdone_admin(aim_session_t *sess,
X                           aim_frame_t *command, ...)
X {
X@@ -411,6 +434,8 @@
X                             AIM_CB_SPECIAL_CONNERR, at_parse_connerr, 0);
X         aim_conn_addhandler(sess, bosconn, 0x0001, 0x001f, 
X                             at_memrequest, 0);
X+        aim_conn_addhandler(sess, bosconn, 0x0004, 0x0005, 
X+                            aim_icbmparaminfo, 0);
X         
X     
X         am = pmalloco(s->p, sizeof(_at_mio));
END-of-net/jabber-aim/files/patch-aa
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020418011855.1E8FE2EE096>