forked from rpms/openssl
53 lines
1.8 KiB
Diff
53 lines
1.8 KiB
Diff
diff -up openssl-1.0.2a/Configure.enginesdir openssl-1.0.2a/Configure
|
|
--- openssl-1.0.2a/Configure.enginesdir 2015-04-20 14:37:58.137392222 +0200
|
|
+++ openssl-1.0.2a/Configure 2015-04-20 14:37:58.140392292 +0200
|
|
@@ -702,6 +702,7 @@ my $idx_multilib = $idx++;
|
|
my $prefix="";
|
|
my $libdir="";
|
|
my $openssldir="";
|
|
+my $enginesdir="";
|
|
my $exe_ext="";
|
|
my $install_prefix= "$ENV{'INSTALL_PREFIX'}";
|
|
my $cross_compile_prefix="";
|
|
@@ -929,6 +930,10 @@ PROCESS_ARGS:
|
|
{
|
|
$openssldir=$1;
|
|
}
|
|
+ elsif (/^--enginesdir=(.*)$/)
|
|
+ {
|
|
+ $enginesdir=$1;
|
|
+ }
|
|
elsif (/^--install.prefix=(.*)$/)
|
|
{
|
|
$install_prefix=$1;
|
|
@@ -1185,7 +1190,7 @@ chop $prefix if $prefix =~ /.\/$/;
|
|
|
|
$openssldir=$prefix . "/ssl" if $openssldir eq "";
|
|
$openssldir=$prefix . "/" . $openssldir if $openssldir !~ /(^\/|^[a-zA-Z]:[\\\/])/;
|
|
-
|
|
+$enginesdir="$prefix/lib/engines" if $enginesdir eq "";
|
|
|
|
print "IsMK1MF=$IsMK1MF\n";
|
|
|
|
@@ -1871,7 +1876,7 @@ while (<IN>)
|
|
}
|
|
elsif (/^#define\s+ENGINESDIR/)
|
|
{
|
|
- my $foo = "$prefix/$libdir/engines";
|
|
+ my $foo = "$enginesdir";
|
|
$foo =~ s/\\/\\\\/g;
|
|
print OUT "#define ENGINESDIR \"$foo\"\n";
|
|
}
|
|
diff -up openssl-1.0.2a/engines/Makefile.enginesdir openssl-1.0.2a/engines/Makefile
|
|
--- openssl-1.0.2a/engines/Makefile.enginesdir 2015-04-20 14:37:58.140392292 +0200
|
|
+++ openssl-1.0.2a/engines/Makefile 2015-04-20 14:40:15.570598383 +0200
|
|
@@ -124,7 +124,7 @@ install:
|
|
esac; \
|
|
cp $$pfx$$l$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \
|
|
fi; \
|
|
- chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \
|
|
+ chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \
|
|
mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx ); \
|
|
done; \
|
|
fi
|