pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/libmsn Import libmsn 4.0beta2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ca9d1f52f3a9
branches:  trunk
changeset: 552827:ca9d1f52f3a9
user:      markd <markd%pkgsrc.org@localhost>
date:      Sat Jan 10 08:56:39 2009 +0000

description:
Import libmsn 4.0beta2

libmsn is a C++ library for Microsoft's MSN Messenger service. It provides
a high-level interface that allows an application to access instant messaging
features with ease.

diffstat:

 chat/libmsn/DESCR            |   4 ++
 chat/libmsn/Makefile         |  21 +++++++++++++++
 chat/libmsn/PLIST            |  23 +++++++++++++++++
 chat/libmsn/buildlink3.mk    |  21 +++++++++++++++
 chat/libmsn/distinfo         |   7 +++++
 chat/libmsn/patches/patch-aa |  59 ++++++++++++++++++++++++++++++++++++++++++++
 chat/libmsn/patches/patch-ab |  15 +++++++++++
 7 files changed, 150 insertions(+), 0 deletions(-)

diffs (178 lines):

diff -r b11d77c1b6ca -r ca9d1f52f3a9 chat/libmsn/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/libmsn/DESCR Sat Jan 10 08:56:39 2009 +0000
@@ -0,0 +1,4 @@
+libmsn is a C++ library for Microsoft's MSN Messenger service. It provides
+a high-level interface that allows an application to access instant messaging
+features with ease.
+
diff -r b11d77c1b6ca -r ca9d1f52f3a9 chat/libmsn/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/libmsn/Makefile      Sat Jan 10 08:56:39 2009 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/01/10 08:56:39 markd Exp $
+
+DISTNAME=      libmsn-4.0-beta2
+PKGNAME=       ${DISTNAME:S/-beta/beta/}
+CATEGORIES=    chat
+MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=libmsn/}
+EXTRACT_SUFX=  .tar.bz2
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://sourceforge.net/projects/libmsn
+COMMENT=       library for connecting to Microsoft's MSN Messenger service
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+USE_CMAKE=     yes
+USE_LANGUAGES+= c c++
+
+PKGCONFIG_OVERRIDE+=   libmsn.pc.cmake
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r b11d77c1b6ca -r ca9d1f52f3a9 chat/libmsn/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/libmsn/PLIST Sat Jan 10 08:56:39 2009 +0000
@@ -0,0 +1,23 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/10 08:56:39 markd Exp $
+bin/msntest
+include/msn/authdata.h
+include/msn/buddy.h
+include/msn/connection.h
+include/msn/errorcodes.h
+include/msn/externals.h
+include/msn/libmsn_export.h
+include/msn/message.h
+include/msn/msn.h
+include/msn/msnobject.h
+include/msn/notificationserver.h
+include/msn/p2p.h
+include/msn/passport.h
+include/msn/soap.h
+include/msn/sstream_fix.h
+include/msn/switchboardserver.h
+include/msn/util.h
+lib/libmsn.so
+lib/libmsn.so.0.1
+lib/libmsn.so.0.1.0
+lib/pkgconfig/libmsn.pc
+@dirrm include/msn
diff -r b11d77c1b6ca -r ca9d1f52f3a9 chat/libmsn/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/libmsn/buildlink3.mk Sat Jan 10 08:56:39 2009 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/01/10 08:56:39 markd Exp $
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
+LIBMSN_BUILDLINK3_MK:= ${LIBMSN_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+=    libmsn
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nlibmsn}
+BUILDLINK_PACKAGES+=   libmsn
+BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libmsn
+
+.if ${LIBMSN_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.libmsn+= libmsn>=4.0beta2
+BUILDLINK_PKGSRCDIR.libmsn?=   ../../chat/libmsn
+.endif # LIBMSN_BUILDLINK3_MK
+
+.include "../../security/openssl/buildlink3.mk"
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH:S/+$//}
diff -r b11d77c1b6ca -r ca9d1f52f3a9 chat/libmsn/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/libmsn/distinfo      Sat Jan 10 08:56:39 2009 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/01/10 08:56:39 markd Exp $
+
+SHA1 (libmsn-4.0-beta2.tar.bz2) = 8ced56c64c6132b5525d8c19e5a43bab08bca2f4
+RMD160 (libmsn-4.0-beta2.tar.bz2) = 8a4f6faa3f22e87b4807c688b11051ca0c7d84c1
+Size (libmsn-4.0-beta2.tar.bz2) = 155319 bytes
+SHA1 (patch-aa) = 25b9d7f0018bd20ec664c62981aa2b51edfeebae
+SHA1 (patch-ab) = e3f3d40ebc1f1d86f24e887711217321e90630e1
diff -r b11d77c1b6ca -r ca9d1f52f3a9 chat/libmsn/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/libmsn/patches/patch-aa      Sat Jan 10 08:56:39 2009 +0000
@@ -0,0 +1,59 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/01/10 08:56:39 markd Exp $
+
+update for modern openssl.
+use gettimeofday() rather than ftime() to prime srand().
+
+--- msn/util.cpp.orig  2008-11-17 02:27:05.000000000 +1300
++++ msn/util.cpp
+@@ -29,7 +29,7 @@
+ #include <fstream>
+ #include <openssl/rand.h>
+ #include <cstring>
+-#include <sys/timeb.h>
++#include <sys/time.h>
+ #include "md5.h"
+ 
+ #ifdef _WIN32
+@@ -244,15 +244,15 @@ namespace MSN 
+ 
+         unsigned char workvec[8];
+         RAND_bytes(workvec, 8);
+-        des_key_schedule ks1,ks2,ks3;
++        DES_key_schedule ks1,ks2,ks3;
+ 
+         const char *one=key3.c_str();
+         const char *two=key3.c_str()+8;
+         const char *three=key3.c_str()+16;
+ 
+-        des_set_key((C_Block *)one,ks1);
+-        des_set_key((C_Block *)two,ks2);
+-        des_set_key((C_Block *)three,ks3);
++        DES_set_key((DES_cblock *)one,&ks1);
++        DES_set_key((DES_cblock *)two,&ks2);
++        DES_set_key((DES_cblock *)three,&ks3);
+ 
+         unsigned char output[72];
+         memset(&output,0,72);
+@@ -263,7 +263,7 @@ namespace MSN 
+         // ugly, but I think it is working properly
+         std::ostringstream buf_;
+         buf_ << nonce << "\x08\x08\x08\x08\x08\x08\x08\x08";
+-        DES_ede3_cbc_encrypt((const unsigned char*)buf_.str().c_str(),output,buf_.str().size(),&ks1,&ks2,&ks3,(C_Block *)workvec,DES_ENCRYPT);
++        DES_ede3_cbc_encrypt((const unsigned char*)buf_.str().c_str(),output,buf_.str().size(),&ks1,&ks2,&ks3,(DES_cblock *)workvec,DES_ENCRYPT);
+ 
+         MSGUSRKEY.uStructHeaderSize=28;
+         MSGUSRKEY.uCryptMode=1;
+@@ -352,10 +352,10 @@ namespace MSN 
+ 
+     std::string new_branch()
+     {
+-        struct timeb t;
+-        ftime(&t);
++        struct timeval t;
++        gettimeofday(&t, NULL);
+         char branch[100];
+-        srand(t.millitm);
++        srand(t.tv_usec);
+         unsigned int a=random();
+         srand(a);
+         unsigned short b=random();
diff -r b11d77c1b6ca -r ca9d1f52f3a9 chat/libmsn/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/libmsn/patches/patch-ab      Sat Jan 10 08:56:39 2009 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/01/10 08:56:39 markd Exp $
+
+update for modern openssl.
+
+--- msntest/msntest.cpp.orig   2008-11-17 06:17:58.000000000 +1300
++++ msntest/msntest.cpp
+@@ -258,7 +258,7 @@ int main()
+                     if(mySocketsSsl[i].isSSL && !mySocketsSsl[i].isConnected)
+                     {
+                         BIO *bio_socket_new;
+-                        SSL_METHOD *meth=NULL;
++                        const SSL_METHOD *meth=NULL;
+                         meth=SSLv23_client_method();
+                         SSLeay_add_ssl_algorithms();
+                         mySocketsSsl[i].ctx = SSL_CTX_new(meth);



Home | Main Index | Thread Index | Old Index