diff options
author | miwi <miwi@FreeBSD.org> | 2009-05-17 22:58:43 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2009-05-17 22:58:43 +0800 |
commit | 30c25d4f82f001732809c6482a5567736c9892b4 (patch) | |
tree | 354a1eb84d2701f0a640317d7bda1cacf6ede665 /net-im | |
parent | 4e594b2b72e5bb29ed7700f5eaff1147dff9f085 (diff) | |
download | freebsd-ports-graphics-30c25d4f82f001732809c6482a5567736c9892b4.tar.gz freebsd-ports-graphics-30c25d4f82f001732809c6482a5567736c9892b4.tar.zst freebsd-ports-graphics-30c25d4f82f001732809c6482a5567736c9892b4.zip |
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
PR: ports/134349
Submitted by: John Prather
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/Makefile | 1 | ||||
-rw-r--r-- | net-im/pidgin-sipe/Makefile | 35 | ||||
-rw-r--r-- | net-im/pidgin-sipe/distinfo | 3 | ||||
-rw-r--r-- | net-im/pidgin-sipe/files/patch-src-sipe-sign.c | 16 | ||||
-rw-r--r-- | net-im/pidgin-sipe/files/patch-src-sipkrb5.c | 17 | ||||
-rw-r--r-- | net-im/pidgin-sipe/files/patch-src-uuid.c | 44 | ||||
-rw-r--r-- | net-im/pidgin-sipe/pkg-descr | 4 | ||||
-rw-r--r-- | net-im/pidgin-sipe/pkg-plist | 11 |
8 files changed, 131 insertions, 0 deletions
diff --git a/net-im/Makefile b/net-im/Makefile index e3c649093db..3f8a2ccaf55 100644 --- a/net-im/Makefile +++ b/net-im/Makefile @@ -118,6 +118,7 @@ SUBDIR += pidgin-msn-pecan SUBDIR += pidgin-pidgimpd SUBDIR += pidgin-rhythmbox + SUBDIR += pidgin-sipe SUBDIR += pidgin-twitter SUBDIR += pork SUBDIR += psi diff --git a/net-im/pidgin-sipe/Makefile b/net-im/pidgin-sipe/Makefile new file mode 100644 index 00000000000..c3a6ac050bf --- /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 00000000000..9e54234c3be --- /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 00000000000..9433d083511 --- /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 00000000000..22e59a15f67 --- /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 00000000000..ff5fb6e9d2f --- /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 00000000000..2eb5e68897d --- /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 00000000000..c1cf3c28011 --- /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 |