pkgsrc-WIP-changes archive

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

pamtester: Import pamtester-0.1.2 as wip/pamtester



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Mon Oct 12 21:24:45 2026 +0200
Changeset:	692b4e5e49c56e72357afc1be383c4db8194ddee

Added Files:
	pamtester/DESCR
	pamtester/Makefile
	pamtester/PLIST
	pamtester/TODO
	pamtester/distinfo
	pamtester/patches/patch-src_app.c
	pamtester/patches/patch-src_compat.c
	pamtester/patches/patch-src_expr__parser.c
	pamtester/patches/patch-src_pamtester.c
	pamtester/patches/patch-src_parse__opts.c
	pamtester/patches/patch-src_util.c

Log Message:
pamtester: Import pamtester-0.1.2 as wip/pamtester

pamtester is a tiny program to test the pluggable authentication modules (PAM)
facility, which is a defacto mechanism for authentication management in many
unices and similar OSes including Solaris, HP-UX, *BSD, MacOSX and Linux.

While specifically designed to help PAM module authors to test their modules,
that might also be useful for system administrators interested in building a
centralised authentication system using common standards such as NIS, SASL and
LDAP.

Still does not build, see TODO.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=692b4e5e49c56e72357afc1be383c4db8194ddee

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 pamtester/DESCR                            |  8 ++++++++
 pamtester/Makefile                         | 16 ++++++++++++++++
 pamtester/PLIST                            |  4 ++++
 pamtester/TODO                             | 19 +++++++++++++++++++
 pamtester/distinfo                         | 11 +++++++++++
 pamtester/patches/patch-src_app.c          | 28 ++++++++++++++++++++++++++++
 pamtester/patches/patch-src_compat.c       | 18 ++++++++++++++++++
 pamtester/patches/patch-src_expr__parser.c | 18 ++++++++++++++++++
 pamtester/patches/patch-src_pamtester.c    | 18 ++++++++++++++++++
 pamtester/patches/patch-src_parse__opts.c  | 18 ++++++++++++++++++
 pamtester/patches/patch-src_util.c         | 18 ++++++++++++++++++
 11 files changed, 176 insertions(+)

diffs:
diff --git a/pamtester/DESCR b/pamtester/DESCR
new file mode 100644
index 0000000000..1eeab57fe4
--- /dev/null
+++ b/pamtester/DESCR
@@ -0,0 +1,8 @@
+pamtester is a tiny program to test the pluggable authentication modules (PAM)
+facility, which is a defacto mechanism for authentication management in many
+unices and similar OSes including Solaris, HP-UX, *BSD, MacOSX and Linux.
+
+While specifically designed to help PAM module authors to test their modules,
+that might also be useful for system administrators interested in building a
+centralised authentication system using common standards such as NIS, SASL and
+LDAP.
diff --git a/pamtester/Makefile b/pamtester/Makefile
new file mode 100644
index 0000000000..c5708435e7
--- /dev/null
+++ b/pamtester/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD$
+
+DISTNAME=	pamtester-0.1.2
+CATEGORIES=	security
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=pamtester/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://pamtester.sourceforge.net/
+COMMENT=	Program to test the PAM facility
+LICENSE=	modified-bsd
+
+GNU_CONFIGURE=	yes
+USE_LIBTOOL=	yes
+
+.include "../../mk/bsd.pkg.mk"
+.include "../../mk/pam.buildlink3.mk"
diff --git a/pamtester/PLIST b/pamtester/PLIST
new file mode 100644
index 0000000000..92ba51a2d7
--- /dev/null
+++ b/pamtester/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/bin/make package"
+@comment TODO: 2. run "/usr/bin/make print-PLIST"
diff --git a/pamtester/TODO b/pamtester/TODO
new file mode 100644
index 0000000000..a068f73f8b
--- /dev/null
+++ b/pamtester/TODO
@@ -0,0 +1,19 @@
+On NetBSD build fails with:
+
+--- app.o ---
+gcc -DHAVE_CONFIG_H -I. -I. -I..     -Wall -c app.c
+In file included from app.c:83:
+app.c: In function 'pamtester_app_run':
+compat.h:56:19: error: initialization of 'int (*)(int,  const struct pam_message **, struct pam_response **, void *)' from incompatible pointer type 'int (*)(int,  struct pam_message **, struct pam_response **, void *)' [-Wincompatible-pointer-types]
+   56 | #define misc_conv pamtester_compat_misc_conv
+      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
+app.c:204:40: note: in expansion of macro 'misc_conv'
+  204 |         const struct pam_conv conv = { misc_conv, NULL };
+      |                                        ^~~~~~~~~
+compat.h:56:19: note: (near initialization for 'conv.conv')
+   56 | #define misc_conv pamtester_compat_misc_conv
+      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
+app.c:204:40: note: in expansion of macro 'misc_conv'
+  204 |         const struct pam_conv conv = { misc_conv, NULL };
+      |                                        ^~~~~~~~~
+*** [app.o] Error code 1
diff --git a/pamtester/distinfo b/pamtester/distinfo
new file mode 100644
index 0000000000..c19594feec
--- /dev/null
+++ b/pamtester/distinfo
@@ -0,0 +1,11 @@
+$NetBSD$
+
+BLAKE2s (pamtester-0.1.2.tar.gz) = e2c13b0d7d0993b12b9cc8dd8c878bed951bcc84af0bc8d7d2a2ad798ab54b77
+SHA512 (pamtester-0.1.2.tar.gz) = baf4786ad735d73bce8f351071e658cffa5fa45dcf67045827f998555e6cff2bd7ff88dd751ab0198b7b1ecfb9c37ffc8ad0bcc5def098ea7143241a3d501168
+Size (pamtester-0.1.2.tar.gz) = 282872 bytes
+SHA1 (patch-src_app.c) = dd1db055930fc2cdca3b9cb8988032e6cce2db82
+SHA1 (patch-src_compat.c) = 44b294bf0e12034337d1f9da17104f913e9f48f9
+SHA1 (patch-src_expr__parser.c) = 8e17fb9bbe87522238a83b4026d5c757c8ef1a66
+SHA1 (patch-src_pamtester.c) = be2be4cb7391d0374625a8c78cda9253f96adfba
+SHA1 (patch-src_parse__opts.c) = 3bf15cbdb7d3340c48bdf3ca93c6d79f437aa922
+SHA1 (patch-src_util.c) = 96df77092668f59baff4c3266156e6c977313267
diff --git a/pamtester/patches/patch-src_app.c b/pamtester/patches/patch-src_app.c
new file mode 100644
index 0000000000..d4165778c4
--- /dev/null
+++ b/pamtester/patches/patch-src_app.c
@@ -0,0 +1,28 @@
+$NetBSD$
+
+AC_HEADER_STDC is obsolete, all pkgsrc supported platforms should
+likely have them.
+
+--- src/app.c.orig	2005-09-20 05:55:34.000000000 +0000
++++ src/app.c
+@@ -37,10 +37,8 @@
+ #include "config.h"
+ #endif
+ 
+-#ifdef STDC_HEADERS
+ #include <stdio.h>
+ #include <stdlib.h>
+-#endif
+ 
+ #ifdef HAVE_STRING_H
+ #include <string.h>
+@@ -62,6 +60,9 @@
+ 
+ #ifdef HAVE_SECURITY_PAM_MISC_H
+ #include <security/pam_misc.h>
++#else
++#include <security/openpam.h>
++#define	misc_conv	openpam_ttyconv
+ #endif
+ 
+ #ifdef HAVE_PAM_PAM_MISC_H
diff --git a/pamtester/patches/patch-src_compat.c b/pamtester/patches/patch-src_compat.c
new file mode 100644
index 0000000000..0429c69584
--- /dev/null
+++ b/pamtester/patches/patch-src_compat.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+AC_HEADER_STDC is obsolete, all pkgsrc supported platforms should
+likely have them.
+
+--- src/compat.c.orig	2026-10-12 19:01:52.361074339 +0000
++++ src/compat.c
+@@ -37,10 +37,8 @@
+ #include "config.h"
+ #endif
+ 
+-#ifdef STDC_HEADERS
+ #include <stdio.h>
+ #include <stdlib.h>
+-#endif
+ 
+ #ifdef HAVE_STRING_H
+ #include <string.h>
diff --git a/pamtester/patches/patch-src_expr__parser.c b/pamtester/patches/patch-src_expr__parser.c
new file mode 100644
index 0000000000..f550276e57
--- /dev/null
+++ b/pamtester/patches/patch-src_expr__parser.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+AC_HEADER_STDC is obsolete, all pkgsrc supported platforms should
+likely have them.
+
+--- src/expr_parser.c.orig	2026-10-12 19:01:52.368089909 +0000
++++ src/expr_parser.c
+@@ -37,10 +37,8 @@
+ #include "config.h"
+ #endif
+ 
+-#ifdef STDC_HEADERS
+ #include <stdio.h>
+ #include <stdlib.h>
+-#endif
+ 
+ #ifdef HAVE_ERRNO_H
+ #include <errno.h>
diff --git a/pamtester/patches/patch-src_pamtester.c b/pamtester/patches/patch-src_pamtester.c
new file mode 100644
index 0000000000..2a003ece0e
--- /dev/null
+++ b/pamtester/patches/patch-src_pamtester.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+AC_HEADER_STDC is obsolete, all pkgsrc supported platforms should
+likely have them.
+
+--- src/pamtester.c.orig	2026-10-12 19:01:40.220609287 +0000
++++ src/pamtester.c
+@@ -37,10 +37,8 @@
+ #include "config.h"
+ #endif
+ 
+-#ifdef STDC_HEADERS
+ #include <stdio.h>
+ #include <stdlib.h>
+-#endif
+ 
+ #ifdef HAVE_STRING_H
+ #include <string.h>
diff --git a/pamtester/patches/patch-src_parse__opts.c b/pamtester/patches/patch-src_parse__opts.c
new file mode 100644
index 0000000000..3cf1b9e7a5
--- /dev/null
+++ b/pamtester/patches/patch-src_parse__opts.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+AC_HEADER_STDC is obsolete, all pkgsrc supported platforms should
+likely have them.
+
+--- src/parse_opts.c.orig	2026-10-12 19:01:52.378318381 +0000
++++ src/parse_opts.c
+@@ -37,10 +37,8 @@
+ #include "config.h"
+ #endif
+ 
+-#ifdef STDC_HEADERS
+ #include <stdio.h>
+ #include <stdlib.h>
+-#endif
+ 
+ #ifdef HAVE_STRING_H
+ #include <string.h>
diff --git a/pamtester/patches/patch-src_util.c b/pamtester/patches/patch-src_util.c
new file mode 100644
index 0000000000..c421f59cec
--- /dev/null
+++ b/pamtester/patches/patch-src_util.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+AC_HEADER_STDC is obsolete, all pkgsrc supported platforms should
+likely have them.
+
+--- src/util.c.orig	2026-10-12 19:01:52.373251786 +0000
++++ src/util.c
+@@ -37,10 +37,8 @@
+ #include "config.h"
+ #endif
+ 
+-#ifdef STDC_HEADERS
+ #include <stdio.h>
+ #include <stdlib.h>
+-#endif
+ 
+ #ifdef HAVE_MEMORY_H
+ #include <memory.h>


Home | Main Index | Thread Index | Old Index