aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/pidgin-sipe
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/pidgin-sipe')
-rw-r--r--net-im/pidgin-sipe/Makefile35
-rw-r--r--net-im/pidgin-sipe/distinfo3
-rw-r--r--net-im/pidgin-sipe/files/patch-src-sipe-sign.c16
-rw-r--r--net-im/pidgin-sipe/files/patch-src-sipkrb5.c17
-rw-r--r--net-im/pidgin-sipe/files/patch-src-uuid.c44
-rw-r--r--net-im/pidgin-sipe/pkg-descr4
-rw-r--r--net-im/pidgin-sipe/pkg-plist11
7 files changed, 130 insertions, 0 deletions
diff --git a/net-im/pidgin-sipe/Makefile b/net-im/pidgin-sipe/Makefile
new file mode 100644
index 000000000000..c3a6ac050bf3
--- /dev/null
+++ b/net-im/pidgin-sipe/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: pidgin-sipe
+# Date created: 7 May 2009
+# Whom: John Prather
+#
+# $FreeBSD$
+#
+
+PORTNAME= pidgin-sipe
+PORTVERSION= 1.3.4
+CATEGORIES= net-im
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= sipe
+
+MAINTAINER= john.c.prather@gmail.com
+COMMENT= A plugin for Pidgin to provide LCS/OCS connectivity
+
+LIB_DEPENDS= purple:${PORTSDIR}/net-im/libpurple
+RUN_DEPENDS= pidgin:${PORTSDIR}/net-im/pidgin
+
+GNU_CONFIGURE= yes
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_GNOME= gtk20
+USE_LDCONFIG= ${PREFIX}/lib/pidgin
+USE_GETTEXT= yes
+
+CFLAGS+= "-I/${LOCALBASE}/include"
+LIBS+= "-L/${LOCALBASE}/lib"
+
+CONFIGURE_ENV += CFLAGS="${CFLAGS}" \
+ LIBS="${LIBS}" \
+ COM_ERR_CFLAGS="-I/usr/include" \
+ COM_ERR_LIBS="-L/usr/include -lcom_err"
+
+.include <bsd.port.mk>
diff --git a/net-im/pidgin-sipe/distinfo b/net-im/pidgin-sipe/distinfo
new file mode 100644
index 000000000000..9e54234c3bef
--- /dev/null
+++ b/net-im/pidgin-sipe/distinfo
@@ -0,0 +1,3 @@
+MD5 (pidgin-sipe-1.3.4.tar.bz2) = 54648ac3acf2d79f6a77bec8a4a447e4
+SHA256 (pidgin-sipe-1.3.4.tar.bz2) = b3148f85aa007d2bdb21245b6e8c6aed6f23a445d519b9089e5883562050ec36
+SIZE (pidgin-sipe-1.3.4.tar.bz2) = 332453
diff --git a/net-im/pidgin-sipe/files/patch-src-sipe-sign.c b/net-im/pidgin-sipe/files/patch-src-sipe-sign.c
new file mode 100644
index 000000000000..9433d0835111
--- /dev/null
+++ b/net-im/pidgin-sipe/files/patch-src-sipe-sign.c
@@ -0,0 +1,16 @@
+*** src/sipe-sign.c.orig Thu May 7 11:58:37 2009
+--- src/sipe-sign.c Thu May 7 11:59:03 2009
+***************
+*** 26,32 ****
+--- 26,36 ----
+ #include <errno.h>
+ #include <ctype.h>
+ #ifndef _WIN32
++ #ifdef __FreeBSD__
++ #include <com_err.h>
++ #else
+ #include <et/com_err.h>
++ #endif
+ #else
+ #include <protocols/zephyr/com_err.h>
+ #include "internal.h"
diff --git a/net-im/pidgin-sipe/files/patch-src-sipkrb5.c b/net-im/pidgin-sipe/files/patch-src-sipkrb5.c
new file mode 100644
index 000000000000..22e59a15f676
--- /dev/null
+++ b/net-im/pidgin-sipe/files/patch-src-sipkrb5.c
@@ -0,0 +1,17 @@
+*** src/sipkrb5.c.orig Thu May 7 11:58:42 2009
+--- src/sipkrb5.c Thu May 7 11:59:42 2009
+***************
+*** 35,41 ****
+--- 35,46 ----
+ #include <string.h>
+ #include <errno.h>
+ #include <ctype.h>
++ #ifdef __FreeBSD__
++ #include <com_err.h>
++ #else
+ #include <et/com_err.h>
++ #endif
++
+
+ #include "debug.h"
+ #include "util.h"
diff --git a/net-im/pidgin-sipe/files/patch-src-uuid.c b/net-im/pidgin-sipe/files/patch-src-uuid.c
new file mode 100644
index 000000000000..ff5fb6e9d2f0
--- /dev/null
+++ b/net-im/pidgin-sipe/files/patch-src-uuid.c
@@ -0,0 +1,44 @@
+*** src/uuid.c.orig Mon Apr 13 09:48:29 2009
+--- src/uuid.c Thu May 7 12:40:23 2009
+***************
+*** 28,34 ****
+--- 28,38 ----
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
++ #ifdef __FreeBSD__
++ #include <net/if.h>
++ #else
+ #include <linux/if.h>
++ #endif
+ #else
+ #ifdef _DLL
+ #define _WS2TCPIP_H_
+***************
+*** 135,141 ****
+--- 139,149 ----
+ strcpy(ifr.ifr_name, IFR->ifr_name);
+ if (ioctl(s, SIOCGIFFLAGS, &ifr) == 0) {
+ if (! (ifr.ifr_flags & IFF_LOOPBACK)) {
++ #ifdef __FreeBSD__
++ if (ioctl(s, SIOCGIFMAC, &ifr) == 0) {
++ #else
+ if (ioctl(s, SIOCGIFHWADDR, &ifr) == 0) {
++ #endif
+ ok = 1;
+ break;
+ }
+***************
+*** 145,151 ****
+--- 153,163 ----
+
+ close(s);
+ if (ok) {
++ #ifdef __FreeBSD__
++ memmove((void *)addr, ifr.ifr_ifru.ifru_addr.sa_data, 6);
++ #else
+ memmove((void *)addr, ifr.ifr_hwaddr.sa_data, 6);
++ #endif
+ }
+ else {
+ return -1;
diff --git a/net-im/pidgin-sipe/pkg-descr b/net-im/pidgin-sipe/pkg-descr
new file mode 100644
index 000000000000..2eb5e68897d6
--- /dev/null
+++ b/net-im/pidgin-sipe/pkg-descr
@@ -0,0 +1,4 @@
+Pidgin Plug-in for OCS/LCS (Live Communication Server).
+SIP/Simple protocol implementation for connect to LCS/OCS.
+
+WWW: http://www.sourceforge.net/projects/sipe
diff --git a/net-im/pidgin-sipe/pkg-plist b/net-im/pidgin-sipe/pkg-plist
new file mode 100644
index 000000000000..c1cf3c280118
--- /dev/null
+++ b/net-im/pidgin-sipe/pkg-plist
@@ -0,0 +1,11 @@
+lib/pidgin/libsipe.so
+lib/pidgin/libsipe.la
+share/locale/da/LC_MESSAGES/pidgin-sipe.mo
+share/locale/de/LC_MESSAGES/pidgin-sipe.mo
+share/locale/es/LC_MESSAGES/pidgin-sipe.mo
+share/locale/fr/LC_MESSAGES/pidgin-sipe.mo
+share/locale/hi/LC_MESSAGES/pidgin-sipe.mo
+share/locale/ta/LC_MESSAGES/pidgin-sipe.mo
+share/pixmaps/pidgin/protocols/16/sipe.png
+share/pixmaps/pidgin/protocols/22/sipe.png
+share/pixmaps/pidgin/protocols/48/sipe.png