1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- OpenPAM seesm to defined _OPENPAM instead of OPENPAM in older

releases. Make autodetection work on both.
This commit is contained in:
Stanislav Sedov 2008-08-03 08:06:15 +00:00
parent 8ac57f52fe
commit 484f070a21
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=217979
4 changed files with 10 additions and 10 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= pam_af
PORTVERSION= 1.0.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= http://mbsd.msk.ru/dist/

View File

@ -1,11 +1,11 @@
--- common/pam_af.h.orig 2008-08-02 20:32:55.000000000 +0400
+++ common/pam_af.h 2008-08-02 20:33:08.000000000 +0400
--- common/pam_af.h.orig 2005-10-16 19:55:28.000000000 +0400
+++ common/pam_af.h 2008-08-03 12:00:10.000000000 +0400
@@ -37,7 +37,7 @@
#define CFGDB "/etc/pam_af.conf"
#define CFGDB_PERM (S_IRUSR | S_IWUSR)
-#ifdef _OPENPAM
+#ifdef OPENPAM
+#if defined(OPENPAM) || defined(_OPENPAM)
# define PAM_AF_LOG(...) \
PAM_LOG(__VA_ARGS__)
# define PAM_AF_LOGERR(...) \

View File

@ -1,11 +1,11 @@
--- common/subr.c.orig 2008-08-02 20:33:51.000000000 +0400
+++ common/subr.c 2008-08-02 20:34:25.000000000 +0400
--- common/subr.c.orig 2006-11-07 03:22:37.000000000 +0300
+++ common/subr.c 2008-08-03 12:00:42.000000000 +0400
@@ -66,7 +66,7 @@
# define LOGERR(...) warnx(__VA_ARGS__)
#else /* !PAM_AF_DEFS */
# include <security/pam_appl.h>
-# ifdef _OPENPAM
+# ifdef OPENPAM
+# if defined(OPENPAM) || defined(_OPENPAM)
# include <security/pam_mod_misc.h>
# include <security/openpam.h>
# endif

View File

@ -1,11 +1,11 @@
--- pam_af.c.orig 2008-08-02 20:34:30.000000000 +0400
+++ pam_af.c 2008-08-02 20:34:36.000000000 +0400
--- pam_af.c.orig 2006-11-07 03:05:53.000000000 +0300
+++ pam_af.c 2008-08-03 12:03:49.000000000 +0400
@@ -53,7 +53,7 @@
#include <security/pam_appl.h>
#include <security/pam_modules.h>
-#ifdef _OPENPAM
+#ifdef OPENPAM
+#if defined(OPENPAM) || defined(_OPENPAM)
# include <security/openpam.h>
# include <security/pam_mod_misc.h>
#endif