diff options
author | danfe <danfe@FreeBSD.org> | 2005-03-20 10:31:05 +0000 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2005-03-20 10:31:05 +0000 |
commit | 19dcb9314eb2db9384e36e2df5affc82977385dd (patch) | |
tree | 4335a422c448b1108aa90fa5c0d5c54f1b9da7d4 /security/pidgin-otr | |
parent | b0868dfedc5e6d833157bb7931102ffed18c32fb (diff) | |
download | FreeBSD-ports-19dcb9314eb2db9384e36e2df5affc82977385dd.zip FreeBSD-ports-19dcb9314eb2db9384e36e2df5affc82977385dd.tar.gz |
Add gaim-otr 1.0.1, allows deniable private conversations using GAIM.
PR: ports/75352
Submitted by: Conor McDermottroe <ports(at)mcdermottroe.com>
Diffstat (limited to 'security/pidgin-otr')
-rw-r--r-- | security/pidgin-otr/Makefile | 52 | ||||
-rw-r--r-- | security/pidgin-otr/distinfo | 2 | ||||
-rw-r--r-- | security/pidgin-otr/files/patch-Makefile | 10 | ||||
-rw-r--r-- | security/pidgin-otr/files/patch-gaim-otr-Makefile | 22 | ||||
-rw-r--r-- | security/pidgin-otr/files/patch-libotr-Makefile | 9 | ||||
-rw-r--r-- | security/pidgin-otr/files/patch-libotr-context | 11 | ||||
-rw-r--r-- | security/pidgin-otr/files/patch-libotr-privkey | 11 | ||||
-rw-r--r-- | security/pidgin-otr/files/patch-tools-Makefile | 44 | ||||
-rw-r--r-- | security/pidgin-otr/pkg-descr | 18 | ||||
-rw-r--r-- | security/pidgin-otr/pkg-plist | 7 |
10 files changed, 186 insertions, 0 deletions
diff --git a/security/pidgin-otr/Makefile b/security/pidgin-otr/Makefile new file mode 100644 index 0000000..198bee8 --- /dev/null +++ b/security/pidgin-otr/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: Gaim-OTR +# Date created: 2004-12-17 +# Whom: Conor McDermottroe <ports@mcdermottroe.com> +# +# $FreeBSD$ +# + +PORTNAME= otr +PORTVERSION= 1.0.1 +CATEGORIES= security net +MASTER_SITES= http://www.cypherpunks.ca/otr/ +PKGNAMEPREFIX= gaim- +DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION} + +MAINTAINER= ports@mcdermottroe.com +COMMENT= Allows deniable private conversations using GAIM + +BUILD_DEPENDS= ${X11BASE}/include/gaim/config.h:${PORTSDIR}/net/gaim \ + pkg-config:${PORTSDIR}/devel/pkgconfig +RUN_DEPENDS= gaim:${PORTSDIR}/net/gaim +LIB_DEPENDS= gpg-error:${PORTSDIR}/security/libgpg-error \ + gcrypt:${PORTSDIR}/security/libgcrypt + +USE_X_PREFIX= yes +USE_GMAKE= yes +USE_GNOME= glib20 gtk20 +USE_REINPLACE= yes + +MAN1= otr_toolkit.1 +MLINKS= otr_toolkit.1 otr_parse.1 \ + otr_toolkit.1 otr_sesskeys.1 \ + otr_toolkit.1 otr_mackey.1 \ + otr_toolkit.1 otr_readforge.1 \ + otr_toolkit.1 otr_modify.1 \ + otr_toolkit.1 otr_remac.1 + +post-patch: + ${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ + ${WRKSRC}/gaim-otr/Makefile \ + ${WRKSRC}/libotr/Makefile \ + ${WRKSRC}/tools/Makefile + ${REINPLACE_CMD} -e "s|%%X11BASE%%|${X11BASE}|g" \ + ${WRKSRC}/gaim-otr/Makefile + +do-install: + ${INSTALL_DATA} ${WRKSRC}/gaim-otr.so ${PREFIX}/lib/gaim + ${INSTALL_MAN} ${WRKSRC}/tools/otr_toolkit.1 ${PREFIX}/man/man1 +.for P in otr_parse otr_sesskeys otr_mackey otr_readforge otr_modify otr_remac + ${INSTALL_PROGRAM} ${WRKSRC}/${P} ${PREFIX}/bin +.endfor + +.include <bsd.port.mk> diff --git a/security/pidgin-otr/distinfo b/security/pidgin-otr/distinfo new file mode 100644 index 0000000..7e395c1 --- /dev/null +++ b/security/pidgin-otr/distinfo @@ -0,0 +1,2 @@ +MD5 (gaim-otr-1.0.1.tar.gz) = efc22af7c4a17448da75419bbaeb80d6 +SIZE (gaim-otr-1.0.1.tar.gz) = 76536 diff --git a/security/pidgin-otr/files/patch-Makefile b/security/pidgin-otr/files/patch-Makefile new file mode 100644 index 0000000..61a09b2 --- /dev/null +++ b/security/pidgin-otr/files/patch-Makefile @@ -0,0 +1,10 @@ +--- Makefile.bak Fri Dec 17 16:19:08 2004 ++++ Makefile Fri Dec 17 16:19:16 2004 +@@ -1,4 +1,4 @@ + all install clean distclean: +- make -C libotr $@ +- make -C gaim-otr $@ +- make -C tools $@ ++ gmake -C libotr $@ ++ gmake -C gaim-otr $@ ++ gmake -C tools $@ diff --git a/security/pidgin-otr/files/patch-gaim-otr-Makefile b/security/pidgin-otr/files/patch-gaim-otr-Makefile new file mode 100644 index 0000000..a8f0ce0 --- /dev/null +++ b/security/pidgin-otr/files/patch-gaim-otr-Makefile @@ -0,0 +1,22 @@ +--- gaim-otr/Makefile.bak Fri Dec 17 17:11:49 2004 ++++ gaim-otr/Makefile Fri Dec 17 17:12:57 2004 +@@ -1,5 +1,5 @@ + # Replace this with the path to the GAIM headers +-GAIM_SOURCE ?= /usr/include/gaim ++GAIM_SOURCE ?= %%X11BASE%%/include/gaim + + # If you don't have pkg-config, put the appropriate -I entry on the next line + GTK_HDRS ?= `pkg-config --cflags glib-2.0 gtk+-2.0` +@@ -19,10 +19,10 @@ + all: $(TARGET) + + $(TARGET): otr-plugin.o ui.o dialogs.o $(LIBOTR_DIR)/libotr.a +- $(CC) -g -shared -module -avoid-version $^ -o $@ -lgcrypt ++ $(CC) -g -shared -module -avoid-version -L %%LOCALBASE%%/lib $^ -o $@ -lgcrypt + + $(LIBOTR_DIR)/libotr.a: FORCE +- make -C $(LIBOTR_DIR) libotr.a ++ gmake -C $(LIBOTR_DIR) libotr.a + + install: all + install -d $(INSTALLDIR) diff --git a/security/pidgin-otr/files/patch-libotr-Makefile b/security/pidgin-otr/files/patch-libotr-Makefile new file mode 100644 index 0000000..1fb1dc7 --- /dev/null +++ b/security/pidgin-otr/files/patch-libotr-Makefile @@ -0,0 +1,9 @@ +--- libotr/Makefile.bak Fri Dec 17 16:31:14 2004 ++++ libotr/Makefile Fri Dec 17 16:31:53 2004 +@@ -1,5 +1,5 @@ + CC ?= gcc +-override CFLAGS += -g -Wall -fPIC ++CFLAGS += -g -Wall -fPIC -I %%LOCALBASE%%/include + LDFLAGS ?= -lgcrypt -g + + all: libotr.a diff --git a/security/pidgin-otr/files/patch-libotr-context b/security/pidgin-otr/files/patch-libotr-context new file mode 100644 index 0000000..63c6ea0 --- /dev/null +++ b/security/pidgin-otr/files/patch-libotr-context @@ -0,0 +1,11 @@ +--- libotr/context.h.bak Fri Dec 17 17:14:42 2004 ++++ libotr/context.h Fri Dec 17 17:14:53 2004 +@@ -20,7 +20,7 @@ + #ifndef __CONTEXT_H__ + #define __CONTEXT_H__ + +-#include "gcrypt.h" ++#include <gcrypt.h> + #include "dh.h" + + typedef enum { diff --git a/security/pidgin-otr/files/patch-libotr-privkey b/security/pidgin-otr/files/patch-libotr-privkey new file mode 100644 index 0000000..f5a7f5b --- /dev/null +++ b/security/pidgin-otr/files/patch-libotr-privkey @@ -0,0 +1,11 @@ +--- libotr/privkey.c.bak Fri Dec 17 16:24:41 2004 ++++ libotr/privkey.c Fri Dec 17 16:24:54 2004 +@@ -24,7 +24,7 @@ + #include <sys/stat.h> + + /* libgcrypt headers */ +-#include "gcrypt.h" ++#include <gcrypt.h> + + /* libotr headers */ + #include "proto.h" diff --git a/security/pidgin-otr/files/patch-tools-Makefile b/security/pidgin-otr/files/patch-tools-Makefile new file mode 100644 index 0000000..8e538a7 --- /dev/null +++ b/security/pidgin-otr/files/patch-tools-Makefile @@ -0,0 +1,44 @@ +--- tools/Makefile.bak Fri Dec 17 17:18:13 2004 ++++ tools/Makefile Fri Dec 17 17:20:57 2004 +@@ -9,7 +9,7 @@ + INSTALLMANDIR = $(DESTDIR)/usr/share/man/man1 + + CC ?= gcc +-override CFLAGS += -g -Wall -I$(LIBOTR_DIR) -fPIC ++override CFLAGS += -g -Wall -I$(LIBOTR_DIR) -I%%LOCALBASE%%/include -L%%LOCALBASE%%/lib -fPIC + + TARGETS = $(TARGET_DIR)/otr_parse \ + $(TARGET_DIR)/otr_sesskeys \ +@@ -21,25 +21,25 @@ + all: $(TARGETS) + + $(TARGET_DIR)/otr_parse: otr_parse.o readotr.o parse.o sha1hmac.o $(LIBOTR_DIR)/libotr.a +- $(CC) -g $^ -o $@ -lgcrypt ++ $(CC) $(CFLAGS) $^ -o $@ -lgcrypt + + $(TARGET_DIR)/otr_sesskeys: otr_sesskeys.o sesskeys.o parse.o sha1hmac.o $(LIBOTR_DIR)/libotr.a +- $(CC) -g $^ -o $@ -lgcrypt ++ $(CC) $(CFLAGS) $^ -o $@ -lgcrypt + + $(TARGET_DIR)/otr_mackey: otr_mackey.o sesskeys.o parse.o sha1hmac.o $(LIBOTR_DIR)/libotr.a +- $(CC) -g $^ -o $@ -lgcrypt ++ $(CC) $(CFLAGS) $^ -o $@ -lgcrypt + + $(TARGET_DIR)/otr_readforge: otr_readforge.o readotr.o sesskeys.o parse.o sha1hmac.o aes.o ctrmode.o $(LIBOTR_DIR)/libotr.a +- $(CC) -g $^ -o $@ -lgcrypt ++ $(CC) $(CFLAGS) $^ -o $@ -lgcrypt + + $(TARGET_DIR)/otr_modify: otr_modify.o readotr.o parse.o sha1hmac.o $(LIBOTR_DIR)/libotr.a +- $(CC) -g $^ -o $@ -lgcrypt ++ $(CC) $(CFLAGS) $^ -o $@ -lgcrypt + + $(TARGET_DIR)/otr_remac: otr_remac.o parse.o sha1hmac.o $(LIBOTR_DIR)/libotr.a +- $(CC) -g $^ -o $@ -lgcrypt ++ $(CC) $(CFLAGS) $^ -o $@ -lgcrypt + + $(LIBOTR_DIR)/libotr.a: FORCE +- make -C $(LIBOTR_DIR) libotr.a ++ gmake -C $(LIBOTR_DIR) libotr.a + + install: all + install -d $(INSTALLBINDIR) diff --git a/security/pidgin-otr/pkg-descr b/security/pidgin-otr/pkg-descr new file mode 100644 index 0000000..678c8ca --- /dev/null +++ b/security/pidgin-otr/pkg-descr @@ -0,0 +1,18 @@ +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. + +WWW: http://www.cypherpunks.ca/otr/ diff --git a/security/pidgin-otr/pkg-plist b/security/pidgin-otr/pkg-plist new file mode 100644 index 0000000..a8bb7bc --- /dev/null +++ b/security/pidgin-otr/pkg-plist @@ -0,0 +1,7 @@ +lib/gaim/gaim-otr.so +bin/otr_parse +bin/otr_sesskeys +bin/otr_mackey +bin/otr_readforge +bin/otr_modify +bin/otr_remac |