ports/75352: [NEW PORT] security/gaim-otr Off The record plugin for GAIM
Conor McDermottroe
ports at mcdermottroe.com
Tue Dec 21 12:30:20 UTC 2004
>Number: 75352
>Category: ports
>Synopsis: [NEW PORT] security/gaim-otr Off The record plugin for GAIM
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 21 12:30:19 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Conor McDermottroe
>Release: FreeBSD 5.2.1-RELEASE-p9 i386
>Organization:
>Environment:
System: FreeBSD oxygen.office.edgespace.net. 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #7: Fri Aug 20 23:02:52 IST 2004 root at mcdermc:/usr/obj/usr/src/sys/MCDERMC i386
>Description:
Off-the-Record (OTR) Messaging allows you to have private
conversations over instant messaging by providing:
* Encryption
No one else can read your instant messages.
* Authentication
You are assured the correspondent is who you think it is.
* Deniability
The messages you send do not have digital signatures that
are checkable by a third party. Anyone can forge messages
after a conversation to make them look like they came from
you. However, during a conversation, your correspondent is
assured the messages he sees are authentic and unmodified.
* Perfect forward secrecy
If you lose control of your private keys, no previous
conversation is compromised.
>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:
#
# /usr/ports/security/gaim-otr
# /usr/ports/security/gaim-otr/Makefile
# /usr/ports/security/gaim-otr/distinfo
# /usr/ports/security/gaim-otr/pkg-descr
# /usr/ports/security/gaim-otr/pkg-plist
# /usr/ports/security/gaim-otr/files
# /usr/ports/security/gaim-otr/files/patch-Makefile
# /usr/ports/security/gaim-otr/files/patch-libotr-Makefile
# /usr/ports/security/gaim-otr/files/patch-libotr-privkey
# /usr/ports/security/gaim-otr/files/patch-gaim-otr-Makefile
# /usr/ports/security/gaim-otr/files/patch-libotr-context
# /usr/ports/security/gaim-otr/files/patch-tools-Makefile
#
echo c - /usr/ports/security/gaim-otr
mkdir -p /usr/ports/security/gaim-otr > /dev/null 2>&1
echo x - /usr/ports/security/gaim-otr/Makefile
sed 's/^X//' >/usr/ports/security/gaim-otr/Makefile << 'END-of-/usr/ports/security/gaim-otr/Makefile'
X# New ports collection makefile for: gaim-otr
X# Date created: 2004-12-17
X# Whom: Conor McDermottroe <ports at mcdermottroe.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME= otr
XPORTVERSION= 1.0.1
XCATEGORIES= security net
XMASTER_SITES= http://www.cypherpunks.ca/otr/
XPKGNAMEPREFIX= gaim-
XDISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
X
XMAINTAINER= ports at mcdermottroe.com
XCOMMENT= Allows deniable private conversations using GAIM
X
XBUILD_DEPENDS= ${X11BASE}/include/gaim/config.h:${PORTSDIR}/net/gaim \
X pkg-config:${PORTSDIR}/devel/pkgconfig
XRUN_DEPENDS= gaim:${PORTSDIR}/net/gaim
XLIB_DEPENDS= gpg-error:${PORTSDIR}/security/libgpg-error \
X gcrypt:${PORTSDIR}/security/libgcrypt
X
XUSE_X_PREFIX= yes
XUSE_GMAKE= yes
XUSE_GNOME= glib20 gtk20
XUSE_REINPLACE= yes
X
XMAN1= otr_toolkit.1
XMLINKS= otr_toolkit.1 otr_parse.1 \
X otr_toolkit.1 otr_sesskeys.1 \
X otr_toolkit.1 otr_mackey.1 \
X otr_toolkit.1 otr_readforge.1 \
X otr_toolkit.1 otr_modify.1 \
X otr_toolkit.1 otr_remac.1
X
Xpost-patch:
X ${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
X ${WRKSRC}/gaim-otr/Makefile \
X ${WRKSRC}/libotr/Makefile \
X ${WRKSRC}/tools/Makefile
X ${REINPLACE_CMD} -e "s|%%X11BASE%%|${X11BASE}|g" \
X ${WRKSRC}/gaim-otr/Makefile
X
Xdo-install:
X ${INSTALL_DATA} ${WRKSRC}/gaim-otr.so ${PREFIX}/lib/gaim
X ${INSTALL_MAN} ${WRKSRC}/tools/otr_toolkit.1 ${PREFIX}/man/man1
X. for P in otr_parse otr_sesskeys otr_mackey otr_readforge otr_modify otr_remac
X ${INSTALL_PROGRAM} ${WRKSRC}/${P} ${PREFIX}/bin
X. endfor
X
X.include <bsd.port.mk>
END-of-/usr/ports/security/gaim-otr/Makefile
echo x - /usr/ports/security/gaim-otr/distinfo
sed 's/^X//' >/usr/ports/security/gaim-otr/distinfo << 'END-of-/usr/ports/security/gaim-otr/distinfo'
XMD5 (gaim-otr-1.0.1.tar.gz) = efc22af7c4a17448da75419bbaeb80d6
XSIZE (gaim-otr-1.0.1.tar.gz) = 76536
END-of-/usr/ports/security/gaim-otr/distinfo
echo x - /usr/ports/security/gaim-otr/pkg-descr
sed 's/^X//' >/usr/ports/security/gaim-otr/pkg-descr << 'END-of-/usr/ports/security/gaim-otr/pkg-descr'
XOff-the-Record (OTR) Messaging allows you to have private
Xconversations over instant messaging by providing:
X
X* Encryption
X No one else can read your instant messages.
X* Authentication
X You are assured the correspondent is who you think it is.
X* Deniability
X The messages you send do not have digital signatures that
X are checkable by a third party. Anyone can forge messages
X after a conversation to make them look like they came from
X you. However, during a conversation, your correspondent is
X assured the messages he sees are authentic and unmodified.
X* Perfect forward secrecy
X If you lose control of your private keys, no previous
X conversation is compromised.
X
XWWW: http://www.cypherpunks.ca/otr/
END-of-/usr/ports/security/gaim-otr/pkg-descr
echo x - /usr/ports/security/gaim-otr/pkg-plist
sed 's/^X//' >/usr/ports/security/gaim-otr/pkg-plist << 'END-of-/usr/ports/security/gaim-otr/pkg-plist'
Xlib/gaim/gaim-otr.so
Xbin/otr_parse
Xbin/otr_sesskeys
Xbin/otr_mackey
Xbin/otr_readforge
Xbin/otr_modify
Xbin/otr_remac
END-of-/usr/ports/security/gaim-otr/pkg-plist
echo c - /usr/ports/security/gaim-otr/files
mkdir -p /usr/ports/security/gaim-otr/files > /dev/null 2>&1
echo x - /usr/ports/security/gaim-otr/files/patch-Makefile
sed 's/^X//' >/usr/ports/security/gaim-otr/files/patch-Makefile << 'END-of-/usr/ports/security/gaim-otr/files/patch-Makefile'
X--- Makefile.bak Fri Dec 17 16:19:08 2004
X+++ Makefile Fri Dec 17 16:19:16 2004
X@@ -1,4 +1,4 @@
X all install clean distclean:
X- make -C libotr $@
X- make -C gaim-otr $@
X- make -C tools $@
X+ gmake -C libotr $@
X+ gmake -C gaim-otr $@
X+ gmake -C tools $@
END-of-/usr/ports/security/gaim-otr/files/patch-Makefile
echo x - /usr/ports/security/gaim-otr/files/patch-libotr-Makefile
sed 's/^X//' >/usr/ports/security/gaim-otr/files/patch-libotr-Makefile << 'END-of-/usr/ports/security/gaim-otr/files/patch-libotr-Makefile'
X--- libotr/Makefile.bak Fri Dec 17 16:31:14 2004
X+++ libotr/Makefile Fri Dec 17 16:31:53 2004
X@@ -1,5 +1,5 @@
X CC ?= gcc
X-override CFLAGS += -g -Wall -fPIC
X+CFLAGS += -g -Wall -fPIC -I %%LOCALBASE%%/include
X LDFLAGS ?= -lgcrypt -g
X
X all: libotr.a
END-of-/usr/ports/security/gaim-otr/files/patch-libotr-Makefile
echo x - /usr/ports/security/gaim-otr/files/patch-libotr-privkey
sed 's/^X//' >/usr/ports/security/gaim-otr/files/patch-libotr-privkey << 'END-of-/usr/ports/security/gaim-otr/files/patch-libotr-privkey'
X--- libotr/privkey.c.bak Fri Dec 17 16:24:41 2004
X+++ libotr/privkey.c Fri Dec 17 16:24:54 2004
X@@ -24,7 +24,7 @@
X #include <sys/stat.h>
X
X /* libgcrypt headers */
X-#include "gcrypt.h"
X+#include <gcrypt.h>
X
X /* libotr headers */
X #include "proto.h"
END-of-/usr/ports/security/gaim-otr/files/patch-libotr-privkey
echo x - /usr/ports/security/gaim-otr/files/patch-gaim-otr-Makefile
sed 's/^X//' >/usr/ports/security/gaim-otr/files/patch-gaim-otr-Makefile << 'END-of-/usr/ports/security/gaim-otr/files/patch-gaim-otr-Makefile'
X--- gaim-otr/Makefile.bak Fri Dec 17 17:11:49 2004
X+++ gaim-otr/Makefile Fri Dec 17 17:12:57 2004
X@@ -1,5 +1,5 @@
X # Replace this with the path to the GAIM headers
X-GAIM_SOURCE ?= /usr/include/gaim
X+GAIM_SOURCE ?= %%X11BASE%%/include/gaim
X
X # If you don't have pkg-config, put the appropriate -I entry on the next line
X GTK_HDRS ?= `pkg-config --cflags glib-2.0 gtk+-2.0`
X@@ -19,10 +19,10 @@
X all: $(TARGET)
X
X $(TARGET): otr-plugin.o ui.o dialogs.o $(LIBOTR_DIR)/libotr.a
X- $(CC) -g -shared -module -avoid-version $^ -o $@ -lgcrypt
X+ $(CC) -g -shared -module -avoid-version -L %%LOCALBASE%%/lib $^ -o $@ -lgcrypt
X
X $(LIBOTR_DIR)/libotr.a: FORCE
X- make -C $(LIBOTR_DIR) libotr.a
X+ gmake -C $(LIBOTR_DIR) libotr.a
X
X install: all
X install -d $(INSTALLDIR)
END-of-/usr/ports/security/gaim-otr/files/patch-gaim-otr-Makefile
echo x - /usr/ports/security/gaim-otr/files/patch-libotr-context
sed 's/^X//' >/usr/ports/security/gaim-otr/files/patch-libotr-context << 'END-of-/usr/ports/security/gaim-otr/files/patch-libotr-context'
X--- libotr/context.h.bak Fri Dec 17 17:14:42 2004
X+++ libotr/context.h Fri Dec 17 17:14:53 2004
X@@ -20,7 +20,7 @@
X #ifndef __CONTEXT_H__
X #define __CONTEXT_H__
X
X-#include "gcrypt.h"
X+#include <gcrypt.h>
X #include "dh.h"
X
X typedef enum {
END-of-/usr/ports/security/gaim-otr/files/patch-libotr-context
echo x - /usr/ports/security/gaim-otr/files/patch-tools-Makefile
sed 's/^X//' >/usr/ports/security/gaim-otr/files/patch-tools-Makefile << 'END-of-/usr/ports/security/gaim-otr/files/patch-tools-Makefile'
X--- tools/Makefile.bak Fri Dec 17 17:18:13 2004
X+++ tools/Makefile Fri Dec 17 17:20:57 2004
X@@ -9,7 +9,7 @@
X INSTALLMANDIR = $(DESTDIR)/usr/share/man/man1
X
X CC ?= gcc
X-override CFLAGS += -g -Wall -I$(LIBOTR_DIR) -fPIC
X+override CFLAGS += -g -Wall -I$(LIBOTR_DIR) -I%%LOCALBASE%%/include -L%%LOCALBASE%%/lib -fPIC
X
X TARGETS = $(TARGET_DIR)/otr_parse \
X $(TARGET_DIR)/otr_sesskeys \
X@@ -21,25 +21,25 @@
X all: $(TARGETS)
X
X $(TARGET_DIR)/otr_parse: otr_parse.o readotr.o parse.o sha1hmac.o $(LIBOTR_DIR)/libotr.a
X- $(CC) -g $^ -o $@ -lgcrypt
X+ $(CC) $(CFLAGS) $^ -o $@ -lgcrypt
X
X $(TARGET_DIR)/otr_sesskeys: otr_sesskeys.o sesskeys.o parse.o sha1hmac.o $(LIBOTR_DIR)/libotr.a
X- $(CC) -g $^ -o $@ -lgcrypt
X+ $(CC) $(CFLAGS) $^ -o $@ -lgcrypt
X
X $(TARGET_DIR)/otr_mackey: otr_mackey.o sesskeys.o parse.o sha1hmac.o $(LIBOTR_DIR)/libotr.a
X- $(CC) -g $^ -o $@ -lgcrypt
X+ $(CC) $(CFLAGS) $^ -o $@ -lgcrypt
X
X $(TARGET_DIR)/otr_readforge: otr_readforge.o readotr.o sesskeys.o parse.o sha1hmac.o aes.o ctrmode.o $(LIBOTR_DIR)/libotr.a
X- $(CC) -g $^ -o $@ -lgcrypt
X+ $(CC) $(CFLAGS) $^ -o $@ -lgcrypt
X
X $(TARGET_DIR)/otr_modify: otr_modify.o readotr.o parse.o sha1hmac.o $(LIBOTR_DIR)/libotr.a
X- $(CC) -g $^ -o $@ -lgcrypt
X+ $(CC) $(CFLAGS) $^ -o $@ -lgcrypt
X
X $(TARGET_DIR)/otr_remac: otr_remac.o parse.o sha1hmac.o $(LIBOTR_DIR)/libotr.a
X- $(CC) -g $^ -o $@ -lgcrypt
X+ $(CC) $(CFLAGS) $^ -o $@ -lgcrypt
X
X $(LIBOTR_DIR)/libotr.a: FORCE
X- make -C $(LIBOTR_DIR) libotr.a
X+ gmake -C $(LIBOTR_DIR) libotr.a
X
X install: all
X install -d $(INSTALLBINDIR)
END-of-/usr/ports/security/gaim-otr/files/patch-tools-Makefile
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list