pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/samba Fix the pam build: lunix defines both the po...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/49dd376cdcc3
branches:  trunk
changeset: 487098:49dd376cdcc3
user:      christos <christos%pkgsrc.org@localhost>
date:      Sun Jan 09 06:33:28 2005 +0000

description:
Fix the pam build: lunix defines both the portable
PAM_AUTHTOK_RECOVERY_ERR and the non-portable PAM_AUTHTOK_RECOVER_ERR as 21,
and you guessed which samba decided to use. Bump the version to nb2.

diffstat:

 net/samba/Makefile         |   4 ++--
 net/samba/distinfo         |   3 ++-
 net/samba/patches/patch-aa |  35 +++++++++++++++++++++++++++++++++++
 3 files changed, 39 insertions(+), 3 deletions(-)

diffs (65 lines):

diff -r 3bde29ef6049 -r 49dd376cdcc3 net/samba/Makefile
--- a/net/samba/Makefile        Sun Jan 09 04:17:39 2005 +0000
+++ b/net/samba/Makefile        Sun Jan 09 06:33:28 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.137 2004/12/28 02:47:47 reed Exp $
+# $NetBSD: Makefile,v 1.138 2005/01/09 06:33:28 christos Exp $
 
 DISTNAME=              samba-3.0.10
-PKGREVISION=           1
+PKGREVISION=           2
 CATEGORIES=            net
 MASTER_SITES=          ftp://ftp.samba.org/pub/samba/old-versions/ \
                        ftp://ring.asahi-net.or.jp/pub/net/samba/old-versions/ \
diff -r 3bde29ef6049 -r 49dd376cdcc3 net/samba/distinfo
--- a/net/samba/distinfo        Sun Jan 09 04:17:39 2005 +0000
+++ b/net/samba/distinfo        Sun Jan 09 06:33:28 2005 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.40 2004/12/17 18:55:47 tron Exp $
+$NetBSD: distinfo,v 1.41 2005/01/09 06:33:28 christos Exp $
 
 SHA1 (samba-3.0.10.tar.gz) = 1cb80bbd9feb7da85aac64bd308a52c662b1cc8a
 Size (samba-3.0.10.tar.gz) = 15176926 bytes
+SHA1 (patch-aa) = 20af8aaf492ee550254a007a05cdec20eb699c27
 SHA1 (patch-ab) = c5f352a07774b8e2873c2ac3b3de3ba4cb12bf5e
 SHA1 (patch-ac) = fc0d15f371a9c3544499f6a6cd830b52b34ff644
 SHA1 (patch-ad) = 8a99e5f898eb3c466b07b5bbb9f0c7e28e385ea0
diff -r 3bde29ef6049 -r 49dd376cdcc3 net/samba/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/samba/patches/patch-aa        Sun Jan 09 06:33:28 2005 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-aa,v 1.29 2005/01/09 06:33:28 christos Exp $
+
+--- nsswitch/pam_winbind.c.orig        2004-10-25 17:04:57.000000000 -0400
++++ nsswitch/pam_winbind.c     2005-01-09 01:17:21.000000000 -0500
+@@ -338,10 +338,10 @@
+                       item = NULL;
+                       return PAM_SUCCESS;
+               } else if (on(WINBIND_USE_FIRST_PASS_ARG, ctrl)) {
+-                      return PAM_AUTHTOK_RECOVER_ERR;         /* didn't work */
++                      return PAM_AUTHTOK_RECOVERY_ERR;                /* didn't work */
+               } else if (on(WINBIND_USE_AUTHTOK_ARG, ctrl)
+                          && off(WINBIND__OLD_PASSWORD, ctrl)) {
+-                      return PAM_AUTHTOK_RECOVER_ERR;
++                      return PAM_AUTHTOK_RECOVERY_ERR;
+               }
+       }
+       /*
+@@ -394,7 +394,7 @@
+                                               if (!resp[i - 1].resp
+                                                   || strcmp(token, resp[i - 1].resp)) {
+                                                       _pam_delete(token);     /* mistyped */
+-                                                      retval = PAM_AUTHTOK_RECOVER_ERR;
++                                                      retval = PAM_AUTHTOK_RECOVERY_ERR;
+                                                       _make_remark(pamh                                                                   ,PAM_ERROR_MSG, MISTYPED_PASS);
+                                               }
+                                       }
+@@ -413,7 +413,7 @@
+ 
+               } else {
+                       retval = (retval == PAM_SUCCESS)
+-                          ? PAM_AUTHTOK_RECOVER_ERR : retval;
++                          ? PAM_AUTHTOK_RECOVERY_ERR : retval;
+               }
+       }
+ 



Home | Main Index | Thread Index | Old Index