summaryrefslogtreecommitdiff
path: root/chat/libmsn
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2009-01-10 08:56:39 +0000
committermarkd <markd@pkgsrc.org>2009-01-10 08:56:39 +0000
commit137a31392d260184539c4500070c702db4dc9106 (patch)
tree25f59e3bee5e4635b7bd0eb084272a853e85ac2e /chat/libmsn
parent477c125e69f286482b6e7741995f69a866698f1b (diff)
downloadpkgsrc-137a31392d260184539c4500070c702db4dc9106.tar.gz
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 (limited to 'chat/libmsn')
-rw-r--r--chat/libmsn/DESCR4
-rw-r--r--chat/libmsn/Makefile21
-rw-r--r--chat/libmsn/PLIST23
-rw-r--r--chat/libmsn/buildlink3.mk21
-rw-r--r--chat/libmsn/distinfo7
-rw-r--r--chat/libmsn/patches/patch-aa59
-rw-r--r--chat/libmsn/patches/patch-ab15
7 files changed, 150 insertions, 0 deletions
diff --git a/chat/libmsn/DESCR b/chat/libmsn/DESCR
new file mode 100644
index 00000000000..a7d69fffcf0
--- /dev/null
+++ b/chat/libmsn/DESCR
@@ -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 --git a/chat/libmsn/Makefile b/chat/libmsn/Makefile
new file mode 100644
index 00000000000..d57ea141b44
--- /dev/null
+++ b/chat/libmsn/Makefile
@@ -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
+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 --git a/chat/libmsn/PLIST b/chat/libmsn/PLIST
new file mode 100644
index 00000000000..b4eb7cd04d1
--- /dev/null
+++ b/chat/libmsn/PLIST
@@ -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 --git a/chat/libmsn/buildlink3.mk b/chat/libmsn/buildlink3.mk
new file mode 100644
index 00000000000..76a378db949
--- /dev/null
+++ b/chat/libmsn/buildlink3.mk
@@ -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 --git a/chat/libmsn/distinfo b/chat/libmsn/distinfo
new file mode 100644
index 00000000000..1c3c20ba153
--- /dev/null
+++ b/chat/libmsn/distinfo
@@ -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 --git a/chat/libmsn/patches/patch-aa b/chat/libmsn/patches/patch-aa
new file mode 100644
index 00000000000..121b9e87c85
--- /dev/null
+++ b/chat/libmsn/patches/patch-aa
@@ -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 --git a/chat/libmsn/patches/patch-ab b/chat/libmsn/patches/patch-ab
new file mode 100644
index 00000000000..1277eac9a93
--- /dev/null
+++ b/chat/libmsn/patches/patch-ab
@@ -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);