summarylogtreecommitdiffstats
path: root/omi-configure.patch
blob: f2fd05fb5e69d976e57ac690288424bb577f1122 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
diff --unified --recursive --text omi-1.9.0-0.orig/Unix/configure omi-1.9.0-0.new/Unix/configure
--- omi-1.9.0-0.orig/Unix/configure	2024-05-09 11:41:12.863430494 +0000
+++ omi-1.9.0-0.new/Unix/configure	2024-05-09 12:15:33.806125107 +0000
@@ -2227,28 +2227,28 @@
 ## Find openssl program.
 ##
 
-if [ ! -x "\`which openssl\`" ]; then
-    echo "\$0: 'openssl' program not found on path. Please add to path an try again".
-    exit 1
-fi
+# if [ ! -x "\`which openssl\`" ]; then
+#     echo "\$0: 'openssl' program not found on path. Please add to path an try again".
+#     exit 1
+# fi
 
 ##
 ## Attempt to resolve OpenSSL libdir.
 ##
 
-openssllibdir=\`$buildtool openssllibdir $buildtoolopts\`
-
-if [ -n "\$openssllibdir" ]; then
-    $ldlibrarypath=\$openssllibdir
-    export $ldlibrarypath
-fi
+# openssllibdir=\`$buildtool openssllibdir $buildtoolopts\`
 
-openssl version > /dev/null 2> /dev/null
-
-if [ "\$?" != "0" ]; then
-    echo "\$0: openssl program is not executable."
-    exit 1
-fi
+# if [ -n "\$openssllibdir" ]; then
+#     $ldlibrarypath=\$openssllibdir
+#     export $ldlibrarypath
+# fi
+
+# openssl version > /dev/null 2> /dev/null
+
+# if [ "\$?" != "0" ]; then
+#     echo "\$0: openssl program is not executable."
+#     exit 1
+# fi
 
 ##
 ## Create directories.
@@ -2259,7 +2259,7 @@
 mkdir -p \$destdir/$libdir
 mkdir -p \$destdir/$localstatedir
 mkdir -p \$destdir/$localstatedir/log
-mkdir -p \$destdir/$localstatedir/run
+# mkdir -p \$destdir/$localstatedir/run
 mkdir -p \$destdir/$sysconfdir
 mkdir -p \$destdir/$providerdir
 mkdir -p \$destdir/$certsdir
@@ -2275,7 +2275,7 @@
 mkdir -p "\$destdir/$sysconfdir/omiregister/root-omi"
 mkdir -p "\$destdir/$sysconfdir/omiregister/root-check"
 mkdir -p \$destdir/$sysconfdir/omiregister/$namespacedir
-mkdir -m 700 -p \$destdir/$sysconfdir/sockets
+# mkdir -m 700 -p \$destdir/$sysconfdir/sockets
 
 ##
 ## Install executables.
@@ -2388,35 +2388,35 @@
 ## Install certificates.
 ##
 
-hostname=`$buildtool hostname $buildtoolopts`
-cnffile=$outputdirrelative/ssl.cnf
-keyfile=\$destdir/$certsdir/omikey.pem
-certfile=\$destdir/$certsdir/omi.pem
-
-if [ -f "\$keyfile" -a -f "\$certfile" ]; then
-  echo
-  echo "************************************************************"
-  echo "* Warning: The certificate and keyfile were not generated  *"
-  echo "* since they already exist.                                *"
-  echo "************************************************************"
-else
-  openssl req -x509 -sha256 -newkey rsa:2048 -days 3650 -nodes -config \$cnffile -keyout \$keyfile -out \$certfile
-  chmod 600 \$keyfile
-  chmod 644 \$certfile
-fi
+# hostname=`$buildtool hostname $buildtoolopts`
+# cnffile=$outputdirrelative/ssl.cnf
+# keyfile=\$destdir/$certsdir/omikey.pem
+# certfile=\$destdir/$certsdir/omi.pem
+#
+# if [ -f "\$keyfile" -a -f "\$certfile" ]; then
+#   echo
+#   echo "************************************************************"
+#   echo "* Warning: The certificate and keyfile were not generated  *"
+#   echo "* since they already exist.                                *"
+#   echo "************************************************************"
+# else
+#   openssl req -x509 -sha256 -newkey rsa:2048 -days 3650 -nodes -config \$cnffile -keyout \$keyfile -out \$certfile
+#   chmod 600 \$keyfile
+#   chmod 644 \$certfile
+# fi
 
 ##
 ## Configure PAM.
 ##
 
-$outputdirrelative/installpam
+# $outputdirrelative/installpam
 
 ##
 ## Install 'uninstall' script.
 ##
 
-cp $outputdirrelative/uninstall \$destdir/$bindir/omiuninstall
-chmod 755 \$destdir/$bindir/omiuninstall
+# cp $outputdirrelative/uninstall \$destdir/$bindir/omiuninstall
+# chmod 755 \$destdir/$bindir/omiuninstall
 
 ##
 ## Print success message!