summaryrefslogtreecommitdiff
path: root/irc/bitlbee-otr
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2008-02-24 03:11:57 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2008-02-24 03:11:57 +0000
commitfa4a943c17e47bf910596a414fd7287983350b9b (patch)
treedc76cec18a505befc330e612e0a56bf1caa5ca49 /irc/bitlbee-otr
parent- Fix manpage pointing to correct PREFIX for binary and conf (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_7_0_0'.release/7.0.0
Diffstat (limited to 'irc/bitlbee-otr')
-rw-r--r--irc/bitlbee-otr/Makefile83
-rw-r--r--irc/bitlbee-otr/distinfo6
-rw-r--r--irc/bitlbee-otr/files/oscar-recode-patch196
-rw-r--r--irc/bitlbee-otr/files/patch-Makefile11
-rw-r--r--irc/bitlbee-otr/files/patch-configure20
-rw-r--r--irc/bitlbee-otr/files/pkg-message.in8
-rw-r--r--irc/bitlbee-otr/pkg-descr8
-rw-r--r--irc/bitlbee-otr/pkg-plist7
8 files changed, 0 insertions, 339 deletions
diff --git a/irc/bitlbee-otr/Makefile b/irc/bitlbee-otr/Makefile
deleted file mode 100644
index 4da96e18ee04..000000000000
--- a/irc/bitlbee-otr/Makefile
+++ /dev/null
@@ -1,83 +0,0 @@
-# New ports collection makefile for: bitlbee
-# Date created: 10 June 2003
-# Whom: Peter van Dijk <peter@dataloss.nl>
-#
-# $FreeBSD$
-#
-
-PORTNAME= bitlbee
-PORTVERSION= 1.0.4
-PORTREVISION= 0
-CATEGORIES= irc
-MASTER_SITES= http://get.bitlbee.org/src/
-
-PATCH_SITES= http://get.bitlbee.org/patches/
-
-MAINTAINER= lasg@lasg.dk
-COMMENT= An IRC to other chat networks gateway
-
-SUB_FILES= pkg-message
-MAN5= bitlbee.conf.5
-MAN8= bitlbee.8
-
-GNU_CONFIGURE= yes
-USE_GMAKE= yes
-USE_GNOME= glib20
-USE_GETOPT_LONG=yes
-PKGMESSAGE= ${WRKDIR}/pkg-message
-
-OPTIONS= MSN "Enable MSN protocol support" On \
- LDAP "Enable LDAP authentication support" Off \
- RECODE "Enable oscar_recode_charset" Off \
- DEBUG "Create debuggable binary" Off \
- OPENSSL "Use openssl rather than gnutls" Off \
- IPV6 "Compile IPV6 support" On
-
-CONFIGURE_ARGS= --config=${PREFIX}/etc/bitlbee
-
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_LDAP)
-PATCHFILES+= ${PORTNAME}-1.0-ldap.diff
-.endif
-
-.if !defined(WITHOUT_MSN)
-CONFIGURE_ARGS+=--msn=1
-.else
-CONFIGURE_ARGS+=--msn=0 --ssl=bogus
-.endif
-
-.if defined(WITH_OPENSSL)
-CONFIGURE_ARGS+=--ssl=openssl
-.else
-LIB_DEPENDS+= gnutls.13:${PORTSDIR}/security/gnutls
-.endif
-
-.if defined(WITH_LDAP)
-USE_OPENLDAP= yes
-CONFIGURE_ARGS+=--ldap=${LOCALBASE}
-.endif
-
-.if defined(WITH_RECODE)
-post-patch::
- @cd ${WRKDIR} && \
- ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/oscar-recode-patch
-.endif
-
-.if defined(WITH_DEBUG)
-CONFIGURE_ARGS+=--debug=1
-.endif
-
-.if defined(WITHOUT_IPV6)
-CONFIGURE_ARGS+=--ipv6=0
-.endif
-
-pre-install:
- @${MKDIR} -m 700 ${PREFIX}/etc/bitlbee
-
-post-install:
- @${CP} ${WRKSRC}/bitlbee.conf ${PREFIX}/etc/bitlbee/bitlbee.conf.orig
- @${CP} ${WRKSRC}/motd.txt ${PREFIX}/etc/bitlbee/motd.txt.orig
- @${CAT} ${PKGMESSAGE}
-
-.include <bsd.port.post.mk>
diff --git a/irc/bitlbee-otr/distinfo b/irc/bitlbee-otr/distinfo
deleted file mode 100644
index 4fe06464affa..000000000000
--- a/irc/bitlbee-otr/distinfo
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 (bitlbee-1.0.4.tar.gz) = b92e301930e2322a86b73b1f6c857674
-SHA256 (bitlbee-1.0.4.tar.gz) = 6f23f37ea641d67e56c61b70d3ac7d404243929c393302ead4758d4ffe6d5b1c
-SIZE (bitlbee-1.0.4.tar.gz) = 455833
-MD5 (bitlbee-1.0-ldap.diff) = f6641ed9b36ca2ceae292370200452fb
-SHA256 (bitlbee-1.0-ldap.diff) = 2da18c740b1c1ff6851f3a52ab0100cec251d9e1683c281a306cbbc21e6847f5
-SIZE (bitlbee-1.0-ldap.diff) = 7240
diff --git a/irc/bitlbee-otr/files/oscar-recode-patch b/irc/bitlbee-otr/files/oscar-recode-patch
deleted file mode 100644
index f05dfd1549ae..000000000000
--- a/irc/bitlbee-otr/files/oscar-recode-patch
+++ /dev/null
@@ -1,196 +0,0 @@
---- irc.c.orig 2006-06-24 17:00:43.000000000 +0300
-+++ irc.c 2006-11-15 13:56:12.000000000 +0200
-@@ -116,6 +116,7 @@
- set_add( irc, "buddy_sendbuffer", "false", set_eval_bool );
- set_add( irc, "buddy_sendbuffer_delay", "200", set_eval_int );
- set_add( irc, "charset", "iso8859-1", set_eval_charset );
-+ set_add( irc, "oscar_recode_charset", "iso8859-1", set_eval_oscar_recode_charset );
- set_add( irc, "debug", "false", set_eval_bool );
- set_add( irc, "default_target", "root", NULL );
- set_add( irc, "display_namechanges", "false", set_eval_bool );
---- protocols/oscar/oscar.c.orig 2006-06-24 17:00:44.000000000 +0300
-+++ protocols/oscar/oscar.c 2006-11-16 13:47:10.000000000 +0200
-@@ -1029,7 +1029,10 @@
- return 1;
- }
-
-+extern GSList *irc_connection_list;
-+
- static int incomingim_chan1(aim_session_t *sess, aim_conn_t *conn, aim_userinfo_t *userinfo, struct aim_incomingim_ch1_args *args) {
-+ char *src="";
- char *tmp = g_malloc(BUF_LONG + 1);
- struct gaim_connection *gc = sess->aux_data;
- int flags = 0;
-@@ -1038,15 +1041,22 @@
- flags |= IM_FLAG_AWAY;
-
- if ((args->icbmflags & AIM_IMFLAGS_UNICODE) || (args->icbmflags & AIM_IMFLAGS_ISO_8859_1)) {
-- char *src;
-
- if (args->icbmflags & AIM_IMFLAGS_UNICODE)
- src = "UNICODEBIG";
- else
-- src = "ISO8859-1";
-+ {
-+ char *cs;
-+ irc_t *irc = (irc_t*)irc_connection_list->data;
-+ if( ( cs = set_getstr( irc, "oscar_recode_charset" ) ) && ( g_strcasecmp( cs, "utf-8" ) != 0 ) )
-+ src = cs;
-+ else
-+ src = "iso88590-1";
-+ }
-
- /* Try to use iconv first to convert the message to UTF8 - which is what BitlBee expects */
- if (do_iconv(src, "UTF-8", args->msg, tmp, args->msglen, BUF_LONG) >= 0) {
-+ //fprintf (stderr, "bitlbee: converted from %s to utf8!\n", src);
- // Successfully converted!
- } else if (args->icbmflags & AIM_IMFLAGS_UNICODE) {
- int i;
-@@ -1062,12 +1072,32 @@
- g_snprintf(tmp+strlen(tmp), BUF_LONG-strlen(tmp), "&#%04x;", uni);
- }
- }
-+ //fprintf (stderr, "bitlbee: AIM_IMFLAGS_UNICODE, got %s!\n", tmp);
- } else {
-- g_snprintf(tmp, BUF_LONG, "%s", args->msg);
-+ char *cs;
-+ irc_t *irc = (irc_t*)irc_connection_list->data;
-+ if( ( cs = set_getstr( irc, "oscar_recode_charset" ) ) && ( g_strcasecmp( cs, "utf-8" ) != 0 ) )
-+ src = cs;
-+ else
-+ src = "iso88590-1";
-+ if (do_iconv(src, "UTF-8", args->msg, tmp, args->msglen, BUF_LONG) < 0) {
-+ g_snprintf(tmp, BUF_LONG, "[1%s]%s", src, args->msg);
-+ }
-+ //fprintf (stderr, "bitlbee: not utf8, nor unicode, got %s!\n", tmp);
- }
-- } else
-- g_snprintf(tmp, BUF_LONG, "%s", args->msg);
--
-+ } else {
-+ char *cs;
-+ irc_t *irc = (irc_t*)irc_connection_list->data;
-+ if( ( cs = set_getstr( irc, "oscar_recode_charset" ) ) && ( g_strcasecmp( cs, "utf-8" ) != 0 ) )
-+ src = cs;
-+ else
-+ src = "iso88590-1";
-+ if (do_iconv(src, "UTF-8", args->msg, tmp, args->msglen, BUF_LONG) < 0) {
-+ g_snprintf(tmp, BUF_LONG, "[2%s]%s", src, args->msg);
-+ }
-+ //fprintf (stderr, "bitlbee: unknown charset, got %s!\n", tmp);
-+ }
-+
- strip_linefeed(tmp);
- serv_got_im(gc, userinfo->sn, tmp, flags, time(NULL), -1);
- g_free(tmp);
-@@ -1163,12 +1193,23 @@
- switch (args->type) {
- case 0x0001: { /* An almost-normal instant message. Mac ICQ sends this. It's peculiar. */
- char *uin, *message;
-+ char *src = "";
-+ char *cs;
-+ char *tmp = g_malloc(BUF_LONG + 1);
-+ irc_t *irc = (irc_t*)irc_connection_list->data;
-+ if( ( cs = set_getstr( irc, "oscar_recode_charset" ) ) && ( g_strcasecmp( cs, "utf-8" ) != 0 ) )
-+ src = cs;
-+ else
-+ src = "iso88590-1";
- uin = g_strdup_printf("%u", args->uin);
- message = g_strdup(args->msg);
- strip_linefeed(message);
-- serv_got_im(gc, uin, message, 0, time(NULL), -1);
-+ if (do_iconv(src, "UTF-8", message, tmp, strlen (message), BUF_LONG) < 0)
-+ tmp = message;
-+ serv_got_im(gc, uin, tmp, 0, time(NULL), -1);
- g_free(uin);
- g_free(message);
-+ g_free (tmp);
- } break;
-
- case 0x0004: { /* Someone sent you a URL */
-@@ -1768,9 +1809,22 @@
- char sender[32];
- char *dialog_msg = g_strdup(msg->msg);
- time_t t = get_time(msg->year, msg->month, msg->day, msg->hour, msg->minute, 0);
-+ char *tmp = g_malloc(BUF_LONG + 1);
-+ char *src = "";
-+ char *cs;
-+ irc_t *irc = (irc_t*)irc_connection_list->data;
-+ if( ( cs = set_getstr( irc, "oscar_recode_charset" ) ) && ( g_strcasecmp( cs, "utf-8" ) != 0 ) )
-+ src = cs;
-+ else
-+ src = "iso88590-1";
- g_snprintf(sender, sizeof(sender), "%u", msg->sender);
- strip_linefeed(dialog_msg);
-- serv_got_im(gc, sender, dialog_msg, 0, t, -1);
-+ if (do_iconv(src, "UTF-8", dialog_msg, tmp, strlen (msg->msg), BUF_LONG) < 0)
-+ tmp = dialog_msg;
-+ //fprintf (stderr, "bitlbee: offlinemsg, got %s\n", tmp);
-+ serv_got_im(gc, sender, tmp, 0, t, -1);
-+ if (dialog_msg != tmp)
-+ g_free (tmp);
- g_free(dialog_msg);
- } break;
-
-@@ -1838,6 +1892,14 @@
- } else {
- struct aim_sendimext_args args;
- char *s;
-+ char *cs;
-+ char *src="";
-+ irc_t *irc = (irc_t*)irc_connection_list->data;
-+ if( ( cs = set_getstr( irc, "oscar_recode_charset" ) ) && ( g_strcasecmp( cs, "utf-8" ) != 0 ) )
-+ src = cs;
-+ else
-+ src = "iso88590-1";
-+
-
- args.flags = AIM_IMFLAGS_ACK;
- if (odata->icq)
-@@ -1851,7 +1913,7 @@
- s = g_malloc(BUF_LONG);
- /* Try if we can put it in an ISO8859-1 string first.
- If we can't, fall back to UTF16. */
-- if ((ret = do_iconv("UTF-8", "ISO8859-1", message, s, len, BUF_LONG)) >= 0) {
-+ if ((ret = do_iconv("UTF-8", src, message, s, len, BUF_LONG)) >= 0) {
- args.flags |= AIM_IMFLAGS_ISO_8859_1;
- len = ret;
- } else if ((ret = do_iconv("UTF-8", "UNICODEBIG", message, s, len, BUF_LONG)) >= 0) {
-@@ -1863,6 +1925,7 @@
- s = message;
- }
- } else {
-+ //fprintf (stderr, "outgoing message is ascii!\n");
- s = message;
- }
-
---- util.c.orig 2006-06-24 17:01:00.000000000 +0300
-+++ util.c 2006-11-15 13:56:12.000000000 +0200
-@@ -453,3 +453,18 @@
- iconv_close( cd );
- return( value );
- }
-+
-+char *set_eval_oscar_recode_charset( irc_t *irc, set_t *set, char *value )
-+{
-+ iconv_t cd;
-+
-+ if ( g_strncasecmp( value, "none", 4 ) == 0 )
-+ return( value );
-+
-+ cd = iconv_open( "UTF-8", value );
-+ if( cd == (iconv_t) -1 )
-+ return( NULL );
-+
-+ iconv_close( cd );
-+ return( value );
-+}
---- util.h.orig 2006-06-24 17:01:00.000000000 +0300
-+++ util.h 2006-11-15 13:56:12.000000000 +0200
-@@ -46,5 +46,6 @@
-
- G_MODULE_EXPORT signed int do_iconv( char *from_cs, char *to_cs, char *src, char *dst, size_t size, size_t maxbuf );
- char *set_eval_charset( irc_t *irc, set_t *set, char *value );
-+char *set_eval_oscar_recode_charset( irc_t *irc, set_t *set, char *value );
-
- #endif
diff --git a/irc/bitlbee-otr/files/patch-Makefile b/irc/bitlbee-otr/files/patch-Makefile
deleted file mode 100644
index 5a6f01f184b6..000000000000
--- a/irc/bitlbee-otr/files/patch-Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.orig Sat Oct 25 06:33:13 2003
-+++ Makefile Sat Nov 1 17:09:09 2003
-@@ -23,7 +23,7 @@
-
- install: install-bin install-doc
- @if ! [ -d $(DESTDIR)$(CONFIG) ]; then echo -e '\nThe configuration directory $(DESTDIR)$(CONFIG) does not exist yet, don'\''t forget to create it!'; fi
-- @if ! [ -e $(DESTDIR)$(ETCDIR)/bitlbee.conf ]; then echo -e '\nNo files are installed in '$(DESTDIR)$(ETCDIR)' by make install. Run make install-etc to do that.'; fi
-+# @if ! [ -e $(DESTDIR)$(ETCDIR)/bitlbee.conf ]; then echo -e '\nNo files are installed in '$(DESTDIR)$(ETCDIR)' by make install. Run make install-etc to do that.'; fi
- @echo
-
- .PHONY: install install-bin install-etc install-doc \
diff --git a/irc/bitlbee-otr/files/patch-configure b/irc/bitlbee-otr/files/patch-configure
deleted file mode 100644
index d0eac2f2bfd8..000000000000
--- a/irc/bitlbee-otr/files/patch-configure
+++ /dev/null
@@ -1,20 +0,0 @@
---- configure.orig Tue Jun 8 09:55:00 2004
-+++ configure Tue Jun 8 09:54:50 2004
-@@ -88,7 +88,7 @@
-
- DESTDIR=
- LFLAGS=
--EFLAGS=
-+EFLAGS=$LDFLAGS
- EOF
-
- cat<<EOF>config.h
-@@ -113,7 +113,7 @@
- echo 'DEBUG=1' >> Makefile.settings
- echo '#define DEBUG' >> config.h
- else
-- echo 'CFLAGS=-O3' >> Makefile.settings
-+ echo "CFLAGS=$CPPFLAGS" >> Makefile.settings
- fi
-
- echo CFLAGS+=-I`pwd` -I`pwd`/protocols -I. >> Makefile.settings
diff --git a/irc/bitlbee-otr/files/pkg-message.in b/irc/bitlbee-otr/files/pkg-message.in
deleted file mode 100644
index 9651ae72cecc..000000000000
--- a/irc/bitlbee-otr/files/pkg-message.in
+++ /dev/null
@@ -1,8 +0,0 @@
-/************************************************************************
-Remember:
- rename %%PREFIX%%/etc/bitlbee/bitlbee.conf.orig
- to %%PREFIX%%/etc/bitlbee/bitlbee.conf ,
- rename %%PREFIX%%/etc/bitlbee/motd.txt.orig
- to %%PREFIX%%/etc/bitlbee/motd.txt
- and modify them.
-*************************************************************************/
diff --git a/irc/bitlbee-otr/pkg-descr b/irc/bitlbee-otr/pkg-descr
deleted file mode 100644
index 5da6017d5fc2..000000000000
--- a/irc/bitlbee-otr/pkg-descr
+++ /dev/null
@@ -1,8 +0,0 @@
-An IRC to other chat networks gateway. This program can be used
-as an IRC server which forwards everything you say to people on
-other chat networks like MSN/ICQ/Jabber.
-
-WWW: http://www.bitlbee.org/
-
-- Peter van Dijk
-peter@dataloss.nl
diff --git a/irc/bitlbee-otr/pkg-plist b/irc/bitlbee-otr/pkg-plist
deleted file mode 100644
index 5c971aa85e51..000000000000
--- a/irc/bitlbee-otr/pkg-plist
+++ /dev/null
@@ -1,7 +0,0 @@
-sbin/bitlbee
-%%DATADIR%%/help.txt
-@exec mkdir -p -m 700 %D/etc/bitlbee
-etc/bitlbee/bitlbee.conf.orig
-etc/bitlbee/motd.txt.orig
-@dirrm %%DATADIR%%
-@dirrmtry etc/bitlbee