Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,10 +1,12 @@
$NetBSD: patch-Makefile.PL,v 1.1 2013/12/11 10:29:45 jperkin Exp $
$NetBSD: patch-Makefile.PL,v 1.2 2015/12/10 18:54:12 tron Exp $
Handle the pkgsrc krb5-config wrapper for SunOS.
1.) Handle the pkgsrc "krb5-config" wrapper for SunOS.
2.) Strip trailing linefeeds and other whitespace from the output of
the "krb5-config" wrapper to avoid generation of a broken makefile.
--- Makefile.PL.orig 2010-04-24 12:37:38.000000000 +0000
+++ Makefile.PL
@@ -115,7 +115,7 @@ if (exists $options{gssapi_libs} || exis
--- Makefile.PL.orig 2010-04-24 13:37:38.000000000 +0100
+++ Makefile.PL 2015-12-10 18:50:38.000000000 +0000
@@ -115,7 +115,7 @@
unless ($libconf) {
die "$krb5cmd does not respond libconf!";
} else {
@@ -13,7 +15,7 @@ Handle the pkgsrc krb5-config wrapper for SunOS.
$libconf = "-L/usr/lib -R/usr/lib -lgss";
}
@@ -153,7 +153,7 @@ if (exists $options{gssapi_libs} || exis
@@ -153,7 +153,7 @@
#
$incconf = '-I/usr/include';
}
@@ -22,3 +24,33 @@ Handle the pkgsrc krb5-config wrapper for SunOS.
$incconf = "-I/usr/include/kerberosv5";
push @EXTRADEFINES, '-DSEAM';
}
@@ -240,20 +240,26 @@
sub krb5_libconfig {
my ($cfgcmd) = @_;
$cfgcmd || die 'no $cfgcmd ';
- return `$cfgcmd --libs gssapi`;
+ my $output = `$cfgcmd --libs gssapi`;
+ chomp( $output );
+ return $output;
}
#-------------------------------------------------
#-------------------------------------------------
sub krb5_cflags {
my ($cfgcmd) = @_;
$cfgcmd || die 'no $cfgcmd ';
- return `$cfgcmd --cflags gssapi`;
+ my $output = `$cfgcmd --cflags gssapi`;
+ chomp( $output );
+ return $output;
}
#-------------------------------------------------
sub krb5_version {
my ($cfgcmd) = @_;
$cfgcmd || die 'no $cfgcmd ';
- return `$cfgcmd --version`;
+ my $output = `$cfgcmd --version`;
+ chomp( $output );
+ return $output;
}
#-------------------------------------------------
#-------------------------------------------------