2015-04-23 11:57:26 +00:00
|
|
|
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++;
|
2009-11-12 15:51:40 +00:00
|
|
|
my $prefix="";
|
|
|
|
my $libdir="";
|
|
|
|
my $openssldir="";
|
|
|
|
+my $enginesdir="";
|
|
|
|
my $exe_ext="";
|
|
|
|
my $install_prefix= "$ENV{'INSTALL_PREFIX'}";
|
|
|
|
my $cross_compile_prefix="";
|
2015-04-23 11:57:26 +00:00
|
|
|
@@ -929,6 +930,10 @@ PROCESS_ARGS:
|
2009-11-12 15:51:40 +00:00
|
|
|
{
|
|
|
|
$openssldir=$1;
|
|
|
|
}
|
|
|
|
+ elsif (/^--enginesdir=(.*)$/)
|
|
|
|
+ {
|
|
|
|
+ $enginesdir=$1;
|
|
|
|
+ }
|
|
|
|
elsif (/^--install.prefix=(.*)$/)
|
|
|
|
{
|
|
|
|
$install_prefix=$1;
|
2015-04-23 11:57:26 +00:00
|
|
|
@@ -1185,7 +1190,7 @@ chop $prefix if $prefix =~ /.\/$/;
|
2009-11-12 15:51:40 +00:00
|
|
|
|
|
|
|
$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";
|
|
|
|
|
2015-04-23 11:57:26 +00:00
|
|
|
@@ -1871,7 +1876,7 @@ while (<IN>)
|
2010-01-21 08:12:12 +00:00
|
|
|
}
|
|
|
|
elsif (/^#define\s+ENGINESDIR/)
|
|
|
|
{
|
|
|
|
- my $foo = "$prefix/$libdir/engines";
|
2009-11-12 15:51:40 +00:00
|
|
|
+ my $foo = "$enginesdir";
|
|
|
|
$foo =~ s/\\/\\\\/g;
|
|
|
|
print OUT "#define ENGINESDIR \"$foo\"\n";
|
|
|
|
}
|
2015-04-23 11:57:26 +00:00
|
|
|
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
|
2009-11-12 15:51:40 +00:00
|
|
|
@@ -124,7 +124,7 @@ install:
|
2015-04-23 11:57:26 +00:00
|
|
|
esac; \
|
|
|
|
cp $$pfx$$l$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \
|
2009-11-12 15:51:40 +00:00
|
|
|
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
|