From 07f2461578c502203f7f0c775c050b96697b32d3 Mon Sep 17 00:00:00 2001 From: green Date: Thu, 23 Dec 2004 06:19:23 +0000 Subject: Attempt to make pam_alreadyloggedin work on 4.x again. Submitted by: vs --- security/pam_alreadyloggedin/Makefile | 5 +---- .../pam_alreadyloggedin/files/patch-pam_alreadyloggedin.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 security/pam_alreadyloggedin/files/patch-pam_alreadyloggedin.c diff --git a/security/pam_alreadyloggedin/Makefile b/security/pam_alreadyloggedin/Makefile index c4089d1e7db8..7936aff7f154 100644 --- a/security/pam_alreadyloggedin/Makefile +++ b/security/pam_alreadyloggedin/Makefile @@ -7,6 +7,7 @@ PORTNAME= pam_alreadyloggedin PORTVERSION= 0.3 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_LOCAL} \ http://green.homeunix.org/~green/ @@ -19,10 +20,6 @@ MANCOMPRESSED= yes .include -.if ${OSVERSION} < 500000 -BROKEN= "Does not compile on FreeBSD 4.x" -.endif - .if defined(NOPROFILE) PLIST_SUB+= PROFILE="@comment " .else diff --git a/security/pam_alreadyloggedin/files/patch-pam_alreadyloggedin.c b/security/pam_alreadyloggedin/files/patch-pam_alreadyloggedin.c new file mode 100644 index 000000000000..f676d9a38c5d --- /dev/null +++ b/security/pam_alreadyloggedin/files/patch-pam_alreadyloggedin.c @@ -0,0 +1,14 @@ +--- pam_alreadyloggedin.c.orig Tue Sep 21 17:41:20 2004 ++++ pam_alreadyloggedin.c Thu Dec 23 00:58:02 2004 +@@ -70,6 +70,11 @@ + int inutmp(struct utmp *utmp, const char *lineglob, const char *username, + uid_t uid); + ++#ifdef PAM_MAX_OPTIONS ++/* The old PAM requires this structure. */ ++static struct options options; ++#endif ++ + PAM_EXTERN int + pam_sm_authenticate(pam_handle_t *pamh, int flags __unused, int argc, + const char **argv) -- cgit