diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2015-02-01 18:48:50 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2015-02-01 18:48:50 +0000 |
commit | c622075b3a96b5b2eef05bee2066f6386be08492 (patch) | |
tree | 1bcf31b13f816b6c01574f831a5e2a26cd2d9dd2 /security | |
parent | - Switch to @sample (diff) |
Add security/p5-Authen-Krb5-Simple, simple Kerberos authentication module.
Notes
Notes:
svn path=/head/; revision=378263
Diffstat (limited to 'security')
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/p5-Authen-Krb5-Simple/Makefile | 29 | ||||
-rw-r--r-- | security/p5-Authen-Krb5-Simple/distinfo | 2 | ||||
-rw-r--r-- | security/p5-Authen-Krb5-Simple/files/patch-Makefile.PL | 87 | ||||
-rw-r--r-- | security/p5-Authen-Krb5-Simple/files/patch-Simple.xs | 14 | ||||
-rw-r--r-- | security/p5-Authen-Krb5-Simple/pkg-descr | 3 | ||||
-rw-r--r-- | security/p5-Authen-Krb5-Simple/pkg-plist | 3 |
7 files changed, 139 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile index f51dadfb5add..96909ec159e6 100644 --- a/security/Makefile +++ b/security/Makefile @@ -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 diff --git a/security/p5-Authen-Krb5-Simple/Makefile b/security/p5-Authen-Krb5-Simple/Makefile new file mode 100644 index 000000000000..f7071ffb17ed --- /dev/null +++ b/security/p5-Authen-Krb5-Simple/Makefile @@ -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> diff --git a/security/p5-Authen-Krb5-Simple/distinfo b/security/p5-Authen-Krb5-Simple/distinfo new file mode 100644 index 000000000000..c7d9d111ffbd --- /dev/null +++ b/security/p5-Authen-Krb5-Simple/distinfo @@ -0,0 +1,2 @@ +SHA256 (Authen-Krb5-Simple-0.43.tar.gz) = 70b2590e56a48c5f0310b6f810cd2ce1aa7185772e2b180ef4360110dde20708 +SIZE (Authen-Krb5-Simple-0.43.tar.gz) = 9910 diff --git a/security/p5-Authen-Krb5-Simple/files/patch-Makefile.PL b/security/p5-Authen-Krb5-Simple/files/patch-Makefile.PL new file mode 100644 index 000000000000..46b409bd23a4 --- /dev/null +++ b/security/p5-Authen-Krb5-Simple/files/patch-Makefile.PL @@ -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, + ); + + diff --git a/security/p5-Authen-Krb5-Simple/files/patch-Simple.xs b/security/p5-Authen-Krb5-Simple/files/patch-Simple.xs new file mode 100644 index 000000000000..ef1e3c8db51a --- /dev/null +++ b/security/p5-Authen-Krb5-Simple/files/patch-Simple.xs @@ -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: diff --git a/security/p5-Authen-Krb5-Simple/pkg-descr b/security/p5-Authen-Krb5-Simple/pkg-descr new file mode 100644 index 000000000000..0f534b236ed2 --- /dev/null +++ b/security/p5-Authen-Krb5-Simple/pkg-descr @@ -0,0 +1,3 @@ +Simple Kerberos authentication + +WWW: http://search.cpan.org/dist/Authen-Simple-Kerberos/ diff --git a/security/p5-Authen-Krb5-Simple/pkg-plist b/security/p5-Authen-Krb5-Simple/pkg-plist new file mode 100644 index 000000000000..555ed576b994 --- /dev/null +++ b/security/p5-Authen-Krb5-Simple/pkg-plist @@ -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 |