aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/nagios/nagios-nrpe/fix-configure-uses-host-openssl.patch
blob: 920aabfc618af1375c604c418d49562f7a45d882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
fix configure uses host openssl

include/dh.h file is needed to be generated with command:

openssl dhparam -C 512

just do not use openssl from host.

Signed-off-by: Rickard Engberg <rickard.engberg@windriver.com>
Signed-off-by: Vu Tran <vu.tran@windriver.com>

Index: nrpe-2.15/configure.in
===================================================================
--- nrpe-2.15.orig/configure.in	2013-09-06 17:27:13.000000000 +0200
+++ nrpe-2.15/configure.in	2013-11-21 14:09:31.798606782 +0100
@@ -330,17 +330,6 @@
 
 			AC_DEFINE_UNQUOTED(HAVE_SSL,[1],[Have SSL support])
 			AC_SUBST(HAVE_SSL)
-	
-			dnl Generate DH parameters
-			echo ""
-			echo "*** Generating DH Parameters for SSL/TLS ***"
-			if test -f "$ssldir/sbin/openssl"; then
-				sslbin=$ssldir/sbin/openssl
-			else
-				sslbin=$ssldir/bin/openssl
-			fi
-			# awk to strip off meta data at bottom of dhparam output
-			$sslbin dhparam -C 512 | awk '/^-----/ {exit} {print}' > include/dh.h
 		fi
 	fi
 
Index: nrpe-2.15/configure
===================================================================
--- nrpe-2.15.orig/configure	2013-09-06 17:27:13.000000000 +0200
+++ nrpe-2.15/configure	2013-11-21 14:11:45.491269701 +0100
@@ -6738,14 +6738,6 @@
 
 
 						echo ""
-			echo "*** Generating DH Parameters for SSL/TLS ***"
-			if test -f "$ssldir/sbin/openssl"; then
-				sslbin=$ssldir/sbin/openssl
-			else
-				sslbin=$ssldir/bin/openssl
-			fi
-			# awk to strip off meta data at bottom of dhparam output
-			$sslbin dhparam -C 512 | awk '/^-----/ {exit} {print}' > include/dh.h
 		fi
 	fi