diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2015-02-01 18:55:29 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2015-02-01 18:55:29 +0000 |
commit | f18568b5b98f67f0d511badc701160386a18f0f7 (patch) | |
tree | c55c4b2a9766de5a44f243ca5e76ed99d7f6769a /security/p5-Heimdal-Kadm5 | |
parent | 6fd55f7db60c6a0e766c3c62c18bfa5d381ac4e4 (diff) | |
download | ports-f18568b5b98f67f0d511badc701160386a18f0f7.tar.gz ports-f18568b5b98f67f0d511badc701160386a18f0f7.zip |
Notes
Diffstat (limited to 'security/p5-Heimdal-Kadm5')
-rw-r--r-- | security/p5-Heimdal-Kadm5/Makefile | 27 | ||||
-rw-r--r-- | security/p5-Heimdal-Kadm5/distinfo | 2 | ||||
-rw-r--r-- | security/p5-Heimdal-Kadm5/files/patch-Makefile.PL | 50 | ||||
-rw-r--r-- | security/p5-Heimdal-Kadm5/pkg-descr | 8 | ||||
-rw-r--r-- | security/p5-Heimdal-Kadm5/pkg-plist | 4 |
5 files changed, 91 insertions, 0 deletions
diff --git a/security/p5-Heimdal-Kadm5/Makefile b/security/p5-Heimdal-Kadm5/Makefile new file mode 100644 index 000000000000..efa1a552f71a --- /dev/null +++ b/security/p5-Heimdal-Kadm5/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= Heimdal-Kadm5 +PORTVERSION= 0.08 +CATEGORIES= security perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- +#DISTNAME= Krb5-${PORTVERSION} + +MAINTAINER= hrs@FreeBSD.org +COMMENT= Perl extension for Heimdal administrative client library + +USES= perl5 +USE_PERL5= configure +CONFIGURE_ENV= GSSAPIBASEDIR="${GSSAPIBASEDIR}" + +OPTIONS_SINGLE= GSSAPI +OPTIONS_SINGLE_GSSAPI= GSSAPI_BASE GSSAPI_HEIMDAL +OPTIONS_DEFAULT= GSSAPI_BASE + +GSSAPI_BASE_USES= gssapi +GSSAPI_HEIMDAL_USES= gssapi:heimdal + +post-build: + ${STRIP_CMD} ${WRKSRC}/blib/arch/auto/Heimdal/Kadm5/Kadm5.so + +.include <bsd.port.mk> diff --git a/security/p5-Heimdal-Kadm5/distinfo b/security/p5-Heimdal-Kadm5/distinfo new file mode 100644 index 000000000000..f5780808088d --- /dev/null +++ b/security/p5-Heimdal-Kadm5/distinfo @@ -0,0 +1,2 @@ +SHA256 (Heimdal-Kadm5-0.08.tar.gz) = 4c02975477587cd72245146e95496402233b3c43dfcd7cb5b0a730114f28d3a1 +SIZE (Heimdal-Kadm5-0.08.tar.gz) = 15855 diff --git a/security/p5-Heimdal-Kadm5/files/patch-Makefile.PL b/security/p5-Heimdal-Kadm5/files/patch-Makefile.PL new file mode 100644 index 000000000000..5422aa476895 --- /dev/null +++ b/security/p5-Heimdal-Kadm5/files/patch-Makefile.PL @@ -0,0 +1,50 @@ +--- Makefile.PL.orig 2010-02-05 06:33:46.000000000 +0900 ++++ Makefile.PL 2015-01-04 04:37:19.000000000 +0900 +@@ -1,23 +1,23 @@ + use ExtUtils::MakeMaker; + # $Id$ + +-my $find_krb5_config; +- +-my $lflags= '-L/pkg/heimdal/default/lib -lkrb5 -lroken -lasn1 -ldes -lkadm5clnt'; +-my $cflags= '-I/usr/heimdal/default/include' ; +- +-my @args = ("krb5-config", "--version"); +-$find_krb5_config = system(@args); ++my $CONF = $ENV{"GSSAPIBASEDIR"} . "/bin/krb5-config"; ++my $DEF; ++my $KRB5_INCS; ++my $KRB5_LIBS; + +-if ($find_krb5_config eq 0) { +- $lflags = `krb5-config --libs kadm-client`; +- $cflags = `krb5-config --cflags kadm-client`; +- chomp $lflags; +- chomp $cflags; ++if (-f $CONF) { ++ $KRB5_LIBS = `$CONF --libs kadm-client`; ++ $KRB5_INCS = `$CONF --cflags kadm-client`; ++ chomp($KRB5_LIBS); ++ chomp($KRB5_INCS); ++} else { ++ $KRB5_LIBS = $ENV{'GSSAPILDFLAGS'} . " " . $ENV{'GSSAPILIBS'}; ++ $KRB5_INCS = $ENV{'GSSAPICPPFLAGS'}; + } + +-printf "cflags: $cflags\n"; +-printf "lflags: $lflags\n"; ++printf "KRB5_INCS = $KRB5_INCS\n"; ++printf "KRB5_LIBS = $KRB5_LIBS\n"; + + WriteMakefile( + 'NAME' => 'Heimdal::Kadm5', +@@ -26,7 +26,7 @@ + ($] >= 5.005 ? + (ABSTRACT_FROM => 'Kadm5.pm', + AUTHOR => 'Leif Johansson <leifj@it.su.se>') : ()), +- 'LIBS' => [ $lflags ], +- 'INC' => $cflags , ++ 'LIBS' => [ $KRB5_LIBS ], ++ 'INC' => $KRB5_INCS , + 'DEFINE' => '', + ); diff --git a/security/p5-Heimdal-Kadm5/pkg-descr b/security/p5-Heimdal-Kadm5/pkg-descr new file mode 100644 index 000000000000..778b423ecdad --- /dev/null +++ b/security/p5-Heimdal-Kadm5/pkg-descr @@ -0,0 +1,8 @@ +Heimdal::Kadm5 is a Perl XS wrapper around the Heimdal Kerberos +administrative client library (libkadm5clnt). Heimdal is a free slightly +less export challenged implementation of Kerberos5 by Assar Westerlund and +Johan Danielsson. This module exposes the API used to administer a +Kerberos realm: add, remove, and list principals, create keytabs, change +keys, and similar operations. + +WWW: http://search.cpan.org/dist/Heimdal-Kadm5/ diff --git a/security/p5-Heimdal-Kadm5/pkg-plist b/security/p5-Heimdal-Kadm5/pkg-plist new file mode 100644 index 000000000000..8efd26dbd834 --- /dev/null +++ b/security/p5-Heimdal-Kadm5/pkg-plist @@ -0,0 +1,4 @@ +%%PERL5_MAN3%%/Heimdal::Kadm5.3.gz +%%SITE_ARCH%%/Heimdal/Kadm5.pm +%%SITE_ARCH%%/auto/Heimdal/Kadm5/Kadm5.so +%%SITE_ARCH%%/auto/Heimdal/Kadm5/autosplit.ix |