my $sysroot = '';
my $sysconfdir;
my $localstatedir;
+my $os_type;
my $staged;
my $module;
my $thrflavour = 'gcc64dbgpthr';
'sysroot:s' => \$sysroot,
'sysconfdir=s' => \$sysconfdir,
'localstatedir=s' => \$localstatedir,
+ 'os-type=s' => \$os_type,
'lb-tag=s' => \$lb_tag,
'lbjp-common-tag=s' => \$lbjp_tag,
'jp-tag=s' => \$jp_tag,
if (not $localstatedir) { $localstatedir = $prefix eq '/usr' ? '/var' : "$prefix/var"; }
$sysconfdir=~s/\/$//;
$localstatedir=~s/\/$//;
+if (not $os_type) { $os_type = os_type(); }
$externs{'mysql-server'}{prefix}=$externs{mysql}{prefix} if $externs{'mysql-server'}{prefix} eq '';
$externs{'mysql-devel'}{prefix}=$externs{mysql}{prefix} if $externs{'mysql-devel'}{prefix} eq '';
sysroot = $sysroot
sysconfdir = $sysconfdir
localstatedir = $localstatedir
+os_type = $os_type
thrflavour = $thrflavour
nothrflavour = $nothrflavour
libdir = $libdir
}
}
+sub os_type {
+ my $ver;
+
+ open FH, '<', '/etc/issue' or return "redhat";
+ $_=<FH>;
+ close FH;
+
+ if (/Debian|Ubuntu/i) { return "debian"; }
+ elsif (/Scientific|Redhat|Centos/i) { return "redhat"; }
+ elsif (/Fedora/i) {
+ $ver = `rpm -q --queryformat '%{version}' fedora-release 2>/dev/null`;
+ if ($ver and $ver >= 15) { return "fedora"; }
+ else { return "redhat"; }
+ } else {
+ return "redhat";
+ }
+}
+
sub usage {
my @ext = keys %externs;
my @myjars = keys %jar;
--root=DIR installation root (custom relocation root -> sysroot) [./stage]
--sysroot=DIR system root (custom relocation root -> sysroot) []
--sysconfdir=DIR system configuration directory [PREFIX/etc]
+ --localstatedir=DIR system local status directory [PREFIX/var]
+ --os-type=DIST system type (debian/redhat/fedora)
--staged=module,module,... what is already in PREFIX (specify without org.glite.)
--thrflavour=flavour
--nothrflavour=flavour threaded and non-treaded flavours [gcc64dbgpthr,gcc64dbg]
4.5.1-2
- Module rebuilt
+4.5.2-1
+- gLite L&B setup script:
+ - switch yaim to use the (sourced) setup script
+ - GLITE_USER, GLITE_HOST_CERT, GLITE_HOST_KEY not required
+ - GLITE_LB_LOCATION removed
+ - all defaults in the setup script now
+ - added Kerberos support (not launched by default)
+ - detect distribution and use that for the scripts
+ - configuration file in /etc/default or /etc/sysconfig
+ (replacement for the profile.d and site-info.def file)
+ - hide other startup scripts output
+ - more strict check for L&B database, migration for L&B 4
+ - update msg-config script
+