Subversion Repositories camp_sysinfo_client_3

Rev

Rev 226 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 226 Rev 249
Line 3... Line 3...
3
# This file will contain information for a specific installer
3
# This file will contain information for a specific installer
4
# this allows the installer to be used on different programs.
4
# this allows the installer to be used on different programs.
5
 
5
 
6
# defines a basic install. Values are overridden depending on operating
6
# defines a basic install. Values are overridden depending on operating
7
# system as defined by %operatingSystems
7
# system as defined by %operatingSystems
-
 
8
#
-
 
9
# 20241224 RWR
-
 
10
# added wget as a binary to check for, since not installed by default on freebsd
8
our %install = (  
11
our %install = (  
9
                  'bindir' => '/opt/camp/sysinfo-client',
12
                  'bindir' => '/opt/camp/sysinfo-client',
10
                  'confdir' => '/etc/camp/sysinfo-client',
13
                  'confdir' => '/etc/camp/sysinfo-client',
11
                  'application name' => 'sysinfo client',
14
                  'application name' => 'sysinfo client',
12
                  'default group' => 'root',
15
                  'default group' => 'root',
Line 232... Line 235...
232
                     },
235
                     },
233
                     'opnsense' => {
236
                     'opnsense' => {
234
                        'command' => 'echo y | pkg install',
237
                        'command' => 'echo y | pkg install',
235
                        'parameter' => 'dmidecode'
238
                        'parameter' => 'dmidecode'
236
                     }
239
                     }
237
                  }
240
                  },
-
 
241
                  'wget' => {
-
 
242
                     'debian' => {
-
 
243
                        'command' => 'apt -y install',
-
 
244
                        'parameter' => 'wget',
-
 
245
                     },
-
 
246
                     'freebsd' => { 
-
 
247
                        'command' => 'echo y | pkg install',
-
 
248
                        'parameter' => 'wget',
-
 
249
                     },
-
 
250
                     'opnsense' => { 
-
 
251
                        'command' => 'echo y | pkg install',
-
 
252
                        'parameter' => 'wget',
-
 
253
                     },
-
 
254
                  },
238
               );
255
               );
239
 
256
 
240
 
257
 
241
# if subroutine &postInstall exists, it is called with a reference to the %install hash
258
# if subroutine &postInstall exists, it is called with a reference to the %install hash
242
# postInstall may return, or may call some other script. it is the last thing called by
259
# postInstall may return, or may call some other script. it is the last thing called by