summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhialto <rhialto@pkgsrc.org>2021-07-06 20:01:17 +0000
committerrhialto <rhialto@pkgsrc.org>2021-07-06 20:01:17 +0000
commit377d12a9b66f8b8ba88b257717d04beffaded716 (patch)
tree9d805b9efee06bc2b5dcec7f1fe7bf7c31b3c126
parent5d151d56ff645be92312ec6667c866c3d1d3d2d3 (diff)
downloadpkgsrc-377d12a9b66f8b8ba88b257717d04beffaded716.tar.gz
security/pam-af: "Fix" missing pam_sm_authenticate().
Hacky workaround for Jul 5 16:38:36 murthe sshd: in openpam_dispatch(): /usr/pkg/lib/security/pam_af.so: no pam_sm_authenticate() Jul 5 16:38:36 murthe sshd: in openpam_check_error_code(): pam_sm_authenticate(): unexpected return value 2 See http://mail-index.netbsd.org/tech-pkg/2021/07/05/msg025227.html and http://gnats.netbsd.org/39313.
-rw-r--r--security/pam-af/Makefile4
-rw-r--r--security/pam-af/distinfo4
-rw-r--r--security/pam-af/patches/patch-ab6
3 files changed, 8 insertions, 6 deletions
diff --git a/security/pam-af/Makefile b/security/pam-af/Makefile
index 9889e3008ea..2a6fe789661 100644
--- a/security/pam-af/Makefile
+++ b/security/pam-af/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.17 2018/01/28 20:11:03 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2021/07/06 20:01:17 rhialto Exp $
DISTNAME= pam_af-1.0.2
PKGNAME= ${DISTNAME:S/_/-/}
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= security
MASTER_SITES= http://mbsd.msk.ru/dist/
EXTRACT_SUFX= .tar.bz2
diff --git a/security/pam-af/distinfo b/security/pam-af/distinfo
index 44246963daf..61765b2f788 100644
--- a/security/pam-af/distinfo
+++ b/security/pam-af/distinfo
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.12 2017/02/08 00:07:38 joerg Exp $
+$NetBSD: distinfo,v 1.13 2021/07/06 20:01:17 rhialto Exp $
SHA1 (pam_af-1.0.2.tar.bz2) = e3856a33d79beafa8d4e8cb44b19cbf79a3ed422
RMD160 (pam_af-1.0.2.tar.bz2) = 0c4163d811ba83de32e9b4633780ac76c8d10d8f
SHA512 (pam_af-1.0.2.tar.bz2) = 89dc8a78e5d888e6cbf84820420201ef19d012d7fbc39f40ede7e7b4cef12a5896bec7a2a6bfc17cf8d111800e54eb2559e55cd3218b04e84cd0a2a24d7dcc01
Size (pam_af-1.0.2.tar.bz2) = 17991 bytes
SHA1 (patch-aa) = 9c8e44c7b25e268777967c742a6946abe0c80316
-SHA1 (patch-ab) = 2d42056f2972a34d2ec681f3c408cfdfc7c26d67
+SHA1 (patch-ab) = aec6c301a5e699cd0e39c552748c48bbf77af52d
SHA1 (patch-ad) = 0f46fecfec3b920a08e2c22c14ada368214d6a69
SHA1 (patch-common_pam__af.h) = 026b303116b80cb48987c24b5f48677e7581a346
SHA1 (patch-pam__af__tool_pam__af__tool.c) = af061bc8766cbf8406dd7a8ce95240e708085bba
diff --git a/security/pam-af/patches/patch-ab b/security/pam-af/patches/patch-ab
index 6e0e3e214dd..7249da9581f 100644
--- a/security/pam-af/patches/patch-ab
+++ b/security/pam-af/patches/patch-ab
@@ -1,7 +1,8 @@
-$NetBSD: patch-ab,v 1.4 2012/04/07 01:53:18 obache Exp $
+$NetBSD: patch-ab,v 1.5 2021/07/06 20:01:17 rhialto Exp $
* LOG_AUTHPRIV is not in Solaris, use LOG_AUTH instead.
* Allow to build with non-native PAM on *BSD.
+* Hacky workaround for http://gnats.netbsd.org/39313
--- pam_af.c.orig 2011-08-24 07:53:32.000000000 +0000
+++ pam_af.c
@@ -15,11 +16,12 @@ $NetBSD: patch-ab,v 1.4 2012/04/07 01:53:18 obache Exp $
#include <assert.h>
#include <ndbm.h>
-@@ -444,6 +447,6 @@ pam_sm_setcred(pamh, flags, argc, argv)
+@@ -444,6 +447,7 @@ pam_sm_setcred(pamh, flags, argc, argv)
PAM_RETURN(PAM_SUCCESS);
}
-#ifdef _USE_MODULE_ENTRY_
+#ifdef PAM_MODULE_ENTRY
++#define static
PAM_MODULE_ENTRY("pam_af");
#endif