Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Feb 2015 18:48:50 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r378263 - in head/security: . p5-Authen-Krb5-Simple p5-Authen-Krb5-Simple/files
Message-ID:  <201502011848.t11ImoHh035147@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Sun Feb  1 18:48:50 2015
New Revision: 378263
URL: https://svnweb.freebsd.org/changeset/ports/378263
QAT: https://qat.redports.org/buildarchive/r378263/

Log:
  Add security/p5-Authen-Krb5-Simple, simple Kerberos authentication module.

Added:
  head/security/p5-Authen-Krb5-Simple/
  head/security/p5-Authen-Krb5-Simple/Makefile   (contents, props changed)
  head/security/p5-Authen-Krb5-Simple/distinfo   (contents, props changed)
  head/security/p5-Authen-Krb5-Simple/files/
  head/security/p5-Authen-Krb5-Simple/files/patch-Makefile.PL   (contents, props changed)
  head/security/p5-Authen-Krb5-Simple/files/patch-Simple.xs   (contents, props changed)
  head/security/p5-Authen-Krb5-Simple/pkg-descr   (contents, props changed)
  head/security/p5-Authen-Krb5-Simple/pkg-plist   (contents, props changed)
Modified:
  head/security/Makefile

Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile	Sun Feb  1 18:48:23 2015	(r378262)
+++ head/security/Makefile	Sun Feb  1 18:48:50 2015	(r378263)
@@ -411,6 +411,7 @@
     SUBDIR += p5-Authen-DecHpwd
     SUBDIR += p5-Authen-Htpasswd
     SUBDIR += p5-Authen-Krb5
+    SUBDIR += p5-Authen-Krb5-Simple
     SUBDIR += p5-Authen-Libwrap
     SUBDIR += p5-Authen-NTLM
     SUBDIR += p5-Authen-OATH

Added: head/security/p5-Authen-Krb5-Simple/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/p5-Authen-Krb5-Simple/Makefile	Sun Feb  1 18:48:50 2015	(r378263)
@@ -0,0 +1,29 @@
+# $FreeBSD$
+
+PORTNAME=	Authen-Krb5-Simple
+PORTVERSION=	0.43
+CATEGORIES=	security perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	hrs@FreeBSD.org
+COMMENT=	User/password authentication using Kerberose 5
+
+USES=		perl5
+USE_PERL5=	configure
+CONFIGURE_ENV=	GSSAPIBASEDIR="${GSSAPIBASEDIR}"
+
+OPTIONS_SINGLE=		GSSAPI
+OPTIONS_SINGLE_GSSAPI=	GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT
+OPTIONS_DEFAULT=	GSSAPI_BASE
+
+GSSAPI_BASE_USES=	gssapi
+GSSAPI_BASE_CONFIGURE_ENV=	HAVE_HEIMDAL=1
+GSSAPI_HEIMDAL_USES=	gssapi:heimdal
+GSSAPI_HEIMDAL_CONFIGURE_ENV=	HAVE_HEIMDAL=1
+GSSAPI_MIT_USES=	gssapi:mit
+
+post-build:
+	${STRIP_CMD} ${WRKSRC}/blib/arch/auto/Authen/Krb5/Simple/Simple.so
+
+.include <bsd.port.mk>

Added: head/security/p5-Authen-Krb5-Simple/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/p5-Authen-Krb5-Simple/distinfo	Sun Feb  1 18:48:50 2015	(r378263)
@@ -0,0 +1,2 @@
+SHA256 (Authen-Krb5-Simple-0.43.tar.gz) = 70b2590e56a48c5f0310b6f810cd2ce1aa7185772e2b180ef4360110dde20708
+SIZE (Authen-Krb5-Simple-0.43.tar.gz) = 9910

Added: head/security/p5-Authen-Krb5-Simple/files/patch-Makefile.PL
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/p5-Authen-Krb5-Simple/files/patch-Makefile.PL	Sun Feb  1 18:48:50 2015	(r378263)
@@ -0,0 +1,87 @@
+--- Makefile.PL.orig	2012-01-08 23:11:50.000000000 +0900
++++ Makefile.PL	2015-01-04 05:07:53.000000000 +0900
+@@ -8,56 +8,26 @@
+ #
+ ###############################################################################
+ #
+-use lib 'inc';
+-use Devel::CheckLib;
+ use ExtUtils::MakeMaker;
+ 
+-my ($krb5_inc, $krb5_lib);
+-
+-# Places we might find Kerberos5 libs.
+-#
+-my @krb_lib_dirs =  qw(
+-    /usr/lib64
+-    /usr/lib
+-    /usr/local/lib64
+-    /usr/local/lib
+-    /usr/lib64/krb5
+-    /usr/lib/krb5
+-    /usr/local/lib64/krb5
+-    /usr/local/lib/krb5
+-    /usr/lib64/krb
+-    /usr/lib/krb
+-    /usr/local/lib64/krb
+-    /usr/local/lib/krb
+-    /opt/krb5/lib64
+-    /opt/krb5/lib
+-    /opt/krb/lib64
+-    /opt/krb/lib
+-    /usr/heimdal/lib64
+-    /usr/heimdal/lib
+-    /usr/local/heimdal/lib64
+-    /usr/local/heimdal/lib
+-    /opt/heimdal/lib64
+-    /opt/heimdal/lib
+-);
++my $CONF = $ENV{"GSSAPIBASEDIR"} . "/bin/krb5-config";
++my $DEFS;
++my $KRB5_INCS;
++my $KRB5_LIBS;
+ 
+-# If the ENV vars are specified, use them.
+-#
+-if(exists($ENV{KRB5_INCLUDE})) {
+-    $krb5_inc = "-I$ENV{KRB5_INCLUDE}";
+-}
+-if(exists($ENV{KRB5_LIB})) {
+-    $krb5_lib = "-L$ENV{KRB5_LIB}";
+-    unshift(@krb_lib_dirs, $ENV{KRB5_LIB});
++if (-f $CONF) {
++	$KRB5_LIBS = `$CONF --libs krb5`;
++	$KRB5_INCS = `$CONF --cflags krb5`;
++	chomp($KRB5_LIBS);
++	chomp($KRB5_INCS);
++} else {
++	$KRB5_LIBS = $ENV{'GSSAPILDFLAGS'} . " " . $ENV{'GSSAPILIBS'};
++	$KRB5_INCS = $ENV{'GSSAPICPPFLAGS'};
+ }
+ 
+-# See if the needed libs are available.  Take a shot at several "possible"
+-# locations for these libs.
+-#
+-check_lib_or_exit(
+-    lib     => [qw( krb5 )],
+-    libpath => \@krb_lib_dirs
+-) unless($ENV{skip_lib_check});
++if (defined($ENV{'HAVE_HEIMDAL'})) {
++	$DEFS = "-DHAVE_HEIMDAL";
++}
+ 
+ # Write out the Makefile
+ #
+@@ -73,9 +43,9 @@
+             AUTHOR     => 'Damien S. Stuart <dstuart@dstuart.org>')
+         : ()
+     ),
+-    'LIBS'      => ["$krb5_lib -lkrb5"],
+-    'DEFINE'    => '',
+-    'INC'       => $krb5_inc,
++    'LIBS'      => [$KRB5_LIBS],
++    'DEFINE'    => $DEFS,
++    'INC'       => $KRB5_INCS,
+ );
+ 
+ 

Added: head/security/p5-Authen-Krb5-Simple/files/patch-Simple.xs
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/p5-Authen-Krb5-Simple/files/patch-Simple.xs	Sun Feb  1 18:48:50 2015	(r378263)
@@ -0,0 +1,14 @@
+--- Simple.xs.orig	2015-01-04 05:05:11.000000000 +0900
++++ Simple.xs	2015-01-04 05:06:06.000000000 +0900
+@@ -75,7 +75,11 @@
+     INPUT:
+     int errcode;
+     INIT:
++#ifdef HAVE_HEIMDAL
++    char* result = (char*)krb5_get_error_message(0, errcode);
++#else
+     char* result = (char*)error_message(errcode);
++#endif
+     CODE:
+     RETVAL = result;
+     OUTPUT:

Added: head/security/p5-Authen-Krb5-Simple/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/p5-Authen-Krb5-Simple/pkg-descr	Sun Feb  1 18:48:50 2015	(r378263)
@@ -0,0 +1,3 @@
+Simple Kerberos authentication
+
+WWW: http://search.cpan.org/dist/Authen-Simple-Kerberos/

Added: head/security/p5-Authen-Krb5-Simple/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/p5-Authen-Krb5-Simple/pkg-plist	Sun Feb  1 18:48:50 2015	(r378263)
@@ -0,0 +1,3 @@
+%%PERL5_MAN3%%/Authen::Krb5::Simple.3.gz
+%%SITE_ARCH%%/Authen/Krb5/Simple.pm
+%%SITE_ARCH%%/auto/Authen/Krb5/Simple/Simple.so



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502011848.t11ImoHh035147>