summaryrefslogtreecommitdiff
path: root/devel/ptlib
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2012-04-19 12:34:43 +0000
committerhans <hans@pkgsrc.org>2012-04-19 12:34:43 +0000
commiteb2e016d3f97573fa786005c51cb0c702c640de0 (patch)
tree9a7e5843154ee2ea907cc68dcd3e6d2625012433 /devel/ptlib
parent4c6312f8ba2f30ae1ab44e8cd830337fecc87856 (diff)
downloadpkgsrc-eb2e016d3f97573fa786005c51cb0c702c640de0.tar.gz
Make this build on SunOS.
Diffstat (limited to 'devel/ptlib')
-rw-r--r--devel/ptlib/distinfo4
-rw-r--r--devel/ptlib/patches/patch-include_ptclib_pldap.h17
-rw-r--r--devel/ptlib/patches/patch-src_ptclib_pldap.cxx18
3 files changed, 38 insertions, 1 deletions
diff --git a/devel/ptlib/distinfo b/devel/ptlib/distinfo
index 83bd326bbe2..4c7c79fe547 100644
--- a/devel/ptlib/distinfo
+++ b/devel/ptlib/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2011/12/04 21:59:36 marino Exp $
+$NetBSD: distinfo,v 1.12 2012/04/19 12:34:43 hans Exp $
SHA1 (ptlib-2.6.5.tar.bz2) = 919487aee09d5a1ea5c4f0abdc01bc49d9dcb596
RMD160 (ptlib-2.6.5.tar.bz2) = ab2f8897b64ab7b1eb9fecc35470ce09af42bcf2
@@ -8,11 +8,13 @@ SHA1 (patch-Nucleus-pmachdep.h) = e78bd26dbe72538aeeb88bdb75faa35768e328d9
SHA1 (patch-configure) = 3af145c86d6a7060cb197228ae8046edbde437d4
SHA1 (patch-configure.ac) = 0813261dd595f2980bf691ad6fc69b27a527f803
SHA1 (patch-include_ptbuildopts.h.in) = 93559a280ec01e3eaa8396cd83bce7cf4ac275c5
+SHA1 (patch-include_ptclib_pldap.h) = 0a6d27519797174883de7c1c5dfe47b6f187d491
SHA1 (patch-make_unix.mak) = 03a436317afc6f77e574bf712b1926327bf00f6e
SHA1 (patch-plugins_sound_esd_sound_esd.h) = 6caff0b4890fe3b137e5dd7ceb1013abe1f7fec8
SHA1 (patch-plugins_sound_oss_sound_oss.cxx) = d00476fb46a0bf2474e8963a8fe9f1765d393d04
SHA1 (patch-plugins_sound_oss_sound_oss.h) = 7661d3d2f270680f293ddd4bb58cac8f6f021862
SHA1 (patch-plugins_vidinput_bsd_vidinput_bsd.h) = 33ee2ced0dd8a1e0e567f8700bba92431193dc10
+SHA1 (patch-src_ptclib_pldap.cxx) = 8c0f8b4326327abfac88f99dfa6edf5b7e250fbf
SHA1 (patch-unix-config.cxx) = bf263b858d4b964786360c702bd634aa989a8751
SHA1 (patch-unix-ossaix.cxx) = 5e473ffb524811c4da35fe8cb2f5f77b4807de5c
SHA1 (patch-unix-osutil.cxx) = 33482828d543fda07fd4070f05295e5536a89e64
diff --git a/devel/ptlib/patches/patch-include_ptclib_pldap.h b/devel/ptlib/patches/patch-include_ptclib_pldap.h
new file mode 100644
index 00000000000..0d1e2df270a
--- /dev/null
+++ b/devel/ptlib/patches/patch-include_ptclib_pldap.h
@@ -0,0 +1,17 @@
+$NetBSD: patch-include_ptclib_pldap.h,v 1.1 2012/04/19 12:34:43 hans Exp $
+
+--- include/ptclib/pldap.h.orig 2009-09-21 02:25:53.000000000 +0200
++++ include/ptclib/pldap.h 2012-04-18 20:29:59.394305646 +0200
+@@ -103,12 +103,7 @@ class PLDAPSession : public PObject
+ AuthSimple,
+ AuthSASL,
+ AuthKerberos,
+-#ifdef SOLARIS
+- NumAuthenticationMethod1,
+- NumAuthenticationMethod2
+-#else
+ NumAuthenticationMethod
+-#endif
+ };
+
+ /**Bind to the remote LDAP server.
diff --git a/devel/ptlib/patches/patch-src_ptclib_pldap.cxx b/devel/ptlib/patches/patch-src_ptclib_pldap.cxx
new file mode 100644
index 00000000000..95dee7ead48
--- /dev/null
+++ b/devel/ptlib/patches/patch-src_ptclib_pldap.cxx
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_ptclib_pldap.cxx,v 1.1 2012/04/19 12:34:43 hans Exp $
+
+--- src/ptclib/pldap.cxx.orig 2009-09-21 02:25:24.000000000 +0200
++++ src/ptclib/pldap.cxx 2012-04-18 20:29:09.841685925 +0200
+@@ -132,13 +132,8 @@ PBoolean PLDAPSession::Bind(const PStrin
+ else
+ whoPtr = who;
+
+-#ifdef SOLARIS
+- static const int AuthMethodCode[NumAuthenticationMethod2] = {
+- LDAP_AUTH_SIMPLE, LDAP_AUTH_SASL, LDAP_AUTH_KRBV41_30, LDAP_AUTH_KRBV42_30
+-#else
+ static const int AuthMethodCode[NumAuthenticationMethod] = {
+ LDAP_AUTH_SIMPLE, LDAP_AUTH_SASL, LDAP_AUTH_KRBV4
+-#endif
+ };
+ errorNumber = ldap_bind_s(ldapContext, whoPtr, passwd, AuthMethodCode[authMethod]);
+ return errorNumber == LDAP_SUCCESS;