diff options
Diffstat (limited to 'security/pam_alreadyloggedin')
-rw-r--r-- | security/pam_alreadyloggedin/Makefile | 5 | ||||
-rw-r--r-- | security/pam_alreadyloggedin/files/patch-pam_alreadyloggedin.c | 14 |
2 files changed, 15 insertions, 4 deletions
diff --git a/security/pam_alreadyloggedin/Makefile b/security/pam_alreadyloggedin/Makefile index c4089d1e7db..7936aff7f15 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 <bsd.port.pre.mk> -.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 00000000000..f676d9a38c5 --- /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) |