[89392] users/cal/ports

cal at macports.org cal at macports.org
Fri Jan 27 17:30:01 PST 2012


Revision: 89392
          http://trac.macports.org/changeset/89392
Author:   cal at macports.org
Date:     2012-01-27 17:30:01 -0800 (Fri, 27 Jan 2012)
Log Message:
-----------
New user ports: yubico-pam and it's dependency yubico-c-client

Added Paths:
-----------
    users/cal/ports/security/
    users/cal/ports/security/yubico-c-client/
    users/cal/ports/security/yubico-c-client/Portfile
    users/cal/ports/security/yubico-pam/
    users/cal/ports/security/yubico-pam/Portfile
    users/cal/ports/security/yubico-pam/files/
    users/cal/ports/security/yubico-pam/files/Makefile.am.patch
    users/cal/ports/security/yubico-pam/files/pam_yubico.c.patch
    users/cal/ports/security/yubico-pam/files/util.c.patch
    users/cal/ports/security/yubico-pam/files/util.h.patch

Added: users/cal/ports/security/yubico-c-client/Portfile
===================================================================
--- users/cal/ports/security/yubico-c-client/Portfile	                        (rev 0)
+++ users/cal/ports/security/yubico-c-client/Portfile	2012-01-28 01:30:01 UTC (rev 89392)
@@ -0,0 +1,28 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id $
+
+PortSystem      1.0
+PortGroup       github 1.0
+
+github.setup    Yubico yubico-c-client 2.7 ykclient-
+checksums       rmd160  ea175500cff332d45da851016dd5527f641c6230 \
+                sha256  fcc84d4f0f8c2ebf9e298c9deccf4022f9dcd022387fb5ef0a0241c78f63beec
+
+
+# I'm explicitly not marking this openmaintainer
+maintainers     cal
+
+categories      security
+description     C library to validate a Yubikey OTP against a validation server
+long_description \
+                Library to validate Yubikey one-time-passwords against online validation \
+                servers, such as the Yubico YubiCloud.
+
+platforms       darwin
+license         BSD
+
+depends_lib     port:curl \
+                port:libyubikey
+
+use_autoreconf  yes
+


Property changes on: users/cal/ports/security/yubico-c-client/Portfile
___________________________________________________________________
Added: svn:eol-style:native
   + 
Added: svn:keywords
   + Id

Added: users/cal/ports/security/yubico-pam/Portfile
===================================================================
--- users/cal/ports/security/yubico-pam/Portfile	                        (rev 0)
+++ users/cal/ports/security/yubico-pam/Portfile	2012-01-28 01:30:01 UTC (rev 89392)
@@ -0,0 +1,56 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id $
+
+PortSystem      1.0
+PortGroup       github 1.0
+
+github.setup    Yubico yubico-pam 2.10
+checksums       rmd160  ce0e375645a59c782224f248b5f9e5c906737630 \
+                sha256  41fc3bcf8201cb348c3232b0c760e311d31713960201c10c880aab19ee3d550f
+
+
+# I'm explicitly not marking this openmaintainer
+maintainers     cal
+
+categories      security
+description     PAM module to authenticate against a Yubikey validation server or \
+                via challenge-response against a local yubikey
+long_description \
+                The Yubico PAM module provides an easy way to integrate the Yubikey \
+                into your existing user authentication infrastructure. The module can \
+                be configured to validate Yubikeys against Yubico's YubiCloud \
+                infrastructure, a custom Yubikey validation server or it can be used \
+                for offline authentication with newer Yubikeys supporting a \
+                challenge-response protocol.
+
+platforms       darwin
+license         BSD
+
+patchfiles      pam_yubico.c.patch \
+                util.c.patch \
+                util.h.patch \
+                Makefile.am.patch
+
+variant debug description {Build with debugging support} {
+    patchfiles-delete \
+                util.h.patch \
+                Makefile.am.patch
+}
+
+default_variants +debug
+
+depends_lib     port:ykpers \
+                port:yubico-c-client
+
+use_autoreconf  yes
+
+configure.args  --with-pam-dir=/usr/lib/pam \
+                --without-ldap
+
+destroot.violate_mtree \
+                yes
+
+post-destroot {
+    file delete ${destroot}/usr/lib/pam/pam_yubico.la
+}
+


Property changes on: users/cal/ports/security/yubico-pam/Portfile
___________________________________________________________________
Added: svn:eol-style:native
   + 
Added: svn:keywords
   + Id

Added: users/cal/ports/security/yubico-pam/files/Makefile.am.patch
===================================================================
--- users/cal/ports/security/yubico-pam/files/Makefile.am.patch	                        (rev 0)
+++ users/cal/ports/security/yubico-pam/files/Makefile.am.patch	2012-01-28 01:30:01 UTC (rev 89392)
@@ -0,0 +1,11 @@
+--- Makefile.am.orig	2012-01-28 02:15:15.000000000 +0100
++++ Makefile.am	2012-01-28 02:15:23.000000000 +0100
+@@ -40,7 +40,7 @@
+ pam_yubico_la_LDFLAGS = -module -avoid-version
+ pam_yubico_la_CPPFLAGS = @YKPERS_CFLAGS@
+ 
+-DEFS = -DDEBUG_PAM -DPAM_DEBUG @DEFS@
++DEFS = @DEFS@
+ 
+ # The command line tools.
+ 

Added: users/cal/ports/security/yubico-pam/files/pam_yubico.c.patch
===================================================================
--- users/cal/ports/security/yubico-pam/files/pam_yubico.c.patch	                        (rev 0)
+++ users/cal/ports/security/yubico-pam/files/pam_yubico.c.patch	2012-01-28 01:30:01 UTC (rev 89392)
@@ -0,0 +1,19 @@
+--- pam_yubico.c.orig	2012-01-27 23:38:37.000000000 +0100
++++ pam_yubico.c	2012-01-27 23:39:03.000000000 +0100
+@@ -37,6 +37,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
++#include <fcntl.h>
+ #include <errno.h>
+ #include <string.h>
+
+@@ -616,6 +616,8 @@
+   }
+ 
+   DBG(("Challenge-response success!"));
++  // sometimes this apparently is still set
++  yk_errno = 0;
+   errstr = NULL;
+ 
+  out:

Added: users/cal/ports/security/yubico-pam/files/util.c.patch
===================================================================
--- users/cal/ports/security/yubico-pam/files/util.c.patch	                        (rev 0)
+++ users/cal/ports/security/yubico-pam/files/util.c.patch	2012-01-28 01:30:01 UTC (rev 89392)
@@ -0,0 +1,10 @@
+--- util.c.orig	2012-01-27 23:42:59.000000000 +0100
++++ util.c	2012-01-27 23:43:14.000000000 +0100
+@@ -36,6 +36,7 @@
+ #include <string.h>
+ #include <sys/types.h>
+ #include <pwd.h>
++#include <unistd.h>
+ 
+ #include "util.h"
+

Added: users/cal/ports/security/yubico-pam/files/util.h.patch
===================================================================
--- users/cal/ports/security/yubico-pam/files/util.h.patch	                        (rev 0)
+++ users/cal/ports/security/yubico-pam/files/util.h.patch	2012-01-28 01:30:01 UTC (rev 89392)
@@ -0,0 +1,12 @@
+--- util.h.orig	2012-01-28 02:25:22.000000000 +0100
++++ util.h	2012-01-28 02:25:36.000000000 +0100
+@@ -50,6 +50,8 @@
+     printf ("\n");							\
+   } while (0)
+ # endif /* HAVE_SECURITY__PAM_MACROS_H */
++#else
++# define D(x)
+ #endif /* DEBUG_PAM */
+ 
+ int get_user_cfgfile_path(const char *common_path, const char *filename, const char *username, char **fn);
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120127/e919579d/attachment.html>


More information about the macports-changes mailing list