From bb6c64a611dd19b671f97c9a6d90ef53d4400116 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Mon, 7 Mar 2011 13:08:58 +0000 Subject: [PATCH] The most recent version copied. Do not modify this instance (RW in ./org.glite.lb). --- org.glite.px.myproxy-yaim/configure | 103 ++++++++++++++++++++++++------------ org.glite.px.proxyrenewal/configure | 103 ++++++++++++++++++++++++------------ 2 files changed, 136 insertions(+), 70 deletions(-) diff --git a/org.glite.px.myproxy-yaim/configure b/org.glite.px.myproxy-yaim/configure index 67f58dc..a3e8862 100755 --- a/org.glite.px.myproxy-yaim/configure +++ b/org.glite.px.myproxy-yaim/configure @@ -47,8 +47,8 @@ my $lbjp_tag = ''; my $jp_tag = ''; my $jobid_tag = ''; my $libdir = getlibdir(); -my $projectname; -my $project = ''; +my $project = 'glite'; +my (%projects, %project); my @nodes = qw/client server logger logger-msg utils client-java doc ws-test db jpprimary jpindex jpclient harvester glite-LB glite-PX/; @@ -202,7 +202,6 @@ my @opts = ( 'jobid-tag=s' => \$jobid_tag, 'help' => \$help, 'libdir=s' => \$libdir, - 'emi' => \$emi, 'project=s' => \$project, ); @@ -231,9 +230,8 @@ $localstatedir=~s/\/$//; $externs{'mysql-devel'}{prefix}=$externs{mysql}{prefix} if $externs{'mysql-devel'}{prefix} eq ''; $externs{'mysql-server'}{prefix}=$externs{mysql}{prefix} if $externs{'mysql-server'}{prefix} eq ''; -if (!$project) { $project = $emi ? 'emi' : 'glite'; } -$projectname = ($project eq 'emi') ? 'emi' : 'org.glite'; -if ($emi) { +%project = %{$projects{$project}}; +if ($project eq 'emi') { for $_ (keys %etics_externs_emi) { $etics_externs{$_} = $etics_externs_emi{$_}; } @@ -242,7 +240,7 @@ if ($emi) { if ($help) { usage(); exit 0; } if ($listmodules) { - my @m = map "$projectname.$listmodules.$_",@{$lbmodules{$listmodules}}; + my @m = map "$project{etics_name}.$listmodules.$_",@{$lbmodules{$listmodules}}; print "@m\n"; exit 0; } @@ -443,7 +441,7 @@ BEGIN{ 'lb.common' => [ qw/expat cares:B cppunit:B classads/ ], 'lb.doc' => [], 'lb.logger' => [ qw/cppunit:B/ ], - 'lb.logger-msg' => [ qw/cppunit:B activemq apr aprutil/ ], + 'lb.logger-msg' => [ qw/cppunit:B activemq/ ], 'lb.server' => [ qw/globus_essentials:R globus:B expat cares mysql:R mysql-server:R mysql-devel:B cppunit:B gsoap:B classads voms lcas gridsite/ ], 'lb.state-machine' => [ qw/classads/ ], 'lb.utils' => [ qw/cppunit:B/ ], @@ -632,7 +630,7 @@ for my $ext (keys %deps_aux) { 'px' => 'org.glite', ); -%conf_prefix = ( +%cvs_tag_prefix = ( 'lb' => 'glite-', 'jp' => 'glite-', 'jobid' => 'glite-', @@ -641,13 +639,29 @@ for my $ext (keys %deps_aux) { 'px' => 'glite-', ); -%emi_conf_prefix = ( - 'lb' => 'emi-', - 'jp' => 'emi-', - 'jobid' => 'emi-', - 'lbjp-common' => 'emi-', - 'gridsite' => '', - 'px' => 'emi-', +%projects = ( + glite => { + etics_name => 'org.glite', + conf_prefix => { %cvs_tag_prefix }, + tag_prefix => { %cvs_tag_prefix }, + flavours => '--thrflavour=${globus.thr.flavor} --nothrflavour=${globus.nothr.flavor}', + local_prefix => '', + }, + + emi => { + etics_name => 'emi', + conf_prefix => { + 'lb' => 'emi-', + 'jp' => 'emi-', + 'jobid' => 'emi-', + 'lbjp-common' => 'emi-', + 'gridsite' => '', + 'px' => 'emi-', + }, + tag_prefix => { %cvs_tag_prefix }, + flavours => '--thrflavour= --nothrflavour=', + local_prefix => '/usr', + }, ); my @k = keys %deps_aux; @@ -785,6 +799,27 @@ BEGIN{ default => { } }, + 'jobid.api-java' => { + default => { 'package.buildarch' => 'noarch' }, + }, + 'lb.types' => { + default => { 'package.buildarch' => 'noarch' }, + }, + 'lb.doc' => { + default => { 'package.buildarch' => 'noarch' }, + }, + 'lb.ws-interface' => { + default => { 'package.buildarch' => 'noarch' }, + }, + 'lb.yaim' => { + default => { 'package.buildarch' => 'noarch' }, + }, + 'px.yaim' => { + default => { 'package.buildarch' => 'noarch' }, + }, + 'px.myproxy-config' => { + default => { 'package.buildarch' => 'noarch' }, + }, ); }; @@ -820,7 +855,7 @@ sub mode_etics { for (@{$need_externs{"$subsys.$module"}}) { if ($need_externs_type{"$subsys.$module"}->{$_}=~/B/) { my $eext = $etics_externs{$_} ? $etics_externs{$_} : $_; - if ($emi) { + if ($project ne 'glite') { if ($ge{$_} and not defined $externs{$_}{pkg}) { push @copts, "--with-$_=\${stageDir}"; } @@ -833,7 +868,7 @@ sub mode_etics { for (@{$need_jars{"$subsys.$module"}}) { my $eext = $etics_externs{$_} ? $etics_externs{$_} : $_; - push @copts,"--with-$_ \${$eext.location}$jar{$_}" if (not $emi); + push @copts,"--with-$_ \${$eext.location}$jar{$_}" if ($project eq 'glite'); } my $conf; @@ -842,7 +877,7 @@ sub mode_etics { $dwpath = "path = \${projectName}/\${moduleName}/\${version}/\${platformName}/\${packageName}-\${version}-\${age}.tar.gz\n"; - $confprefix = $emi ? $emi_conf_prefix{$subsys} : $conf_prefix{$subsys}; + $confprefix = $project{conf_prefix}{$subsys}; $nameprefix = $confprefix; $nameprefix =~ s/-$//; $nameprefix =~ s/-/\./g; @@ -856,13 +891,14 @@ sub mode_etics { $conf = "$confprefix$subsys-${module}_R_${major}_${minor}_${rev}_${age}"; # XXX: gridsite hack - $conftag = $subsys eq 'gridsite' ? "$conf_prefix{$subsys}$subsys-${module}_R_${major}_${minor}_${rev}" : - "$conf_prefix{$subsys}$subsys-${module}_R_${major}_${minor}_${rev}_${age}"; } + $conftag = $subsys eq 'gridsite' ? "$project{tag_prefix}{$subsys}$subsys-${module}_R_${major}_${minor}_${rev}" : + "$project{tag_prefix}{$subsys}$subsys-${module}_R_${major}_${minor}_${rev}_${age}"; } my $file = $output ? $output : "$conf.ini"; open C,">$file" or die "$file: $!\n"; - my $buildroot = $buildroot{"$subsys.$module"} eq '' ? '#no build.root' : "build.root = " . $buildroot{"$subsys.$module"}; + my $buildroot = "build.root = $cvs_prefix{$subsys}.$subsys.$module"; + $buildroot .= '/'.$buildroot{"$subsys.$module"} unless ($buildroot{"$subsys.$module"} eq ''); my $confdir = $buildroot{"$subsys.$module"} eq '' ? '..' : '../..'; @@ -899,7 +935,7 @@ sub mode_etics { if ($module eq 'core') { my $flags; - if ($emi) { + if ($project ne 'glite') { $flags = 'RELEASE_VERSION=${age}.${platformFamily} prefix=${prefix}/usr libdir=${libdir} GSOAPDIR=`pkg-config gsoap --variable=prefix` OPENSSL_GLOBUS_FLAGS=`pkg-config globus-openssl --cflags` OPENSSL_GLOBUS_LIBS=`pkg-config globus-openssl --libs` FLAVOR_GLOBUS_EXT= HTTPD_FLAGS="-I/usr/include/httpd -I/usr/include/apache2 -I/usr/include/apr-${aprSuffix} -I/usr/include/pcre"'; } else { $flags = 'RELEASE_VERSION=${age}.${platformFamily} prefix=${prefix} libdir=${libdir} GSOAPDIR=${gsoap.location} OPENSSL_GLOBUS_FLAGS=-I${globus.location}/include/${globus.dbg.nothr.flavor} OPENSSL_GLOBUS_LIBS=-L${globus.location}/${libdir}/ FLAVOR_GLOBUS_EXT=_${globus.dbg.nothr.flavor} HTTPD_FLAGS="-I${httpd-devel.location}/include/httpd -I${httpd-devel.location}/include/apache2 -I${httpd-devel.location}/include/apr-${aprSuffix} -I${httpd-devel.location}/include/pcre"'; @@ -914,13 +950,11 @@ sub mode_etics { } } elsif ($subsys eq 'px' and $module eq 'myproxy-config') { - $cmd{configure} = "cd $confdir && /usr/bin/perl \${moduleName}/configure --root=\${prefix} --prefix= --stage=\${stageDir} --libdir=\${libdir} --project=\${projectName} --module $subsys.$module @copts"; + $cmd{configure} = "cd $confdir && /usr/bin/perl $cvs_prefix{$subsys}.$subsys.$module/configure --root=\${prefix} --prefix= --stage=\${stageDir} --libdir=\${libdir} --project=\${projectName} --module $subsys.$module @copts"; $cmd{packaging} = "make rpm package=".$confprefix."$subsys-myproxy-config"; } else { - my $flavours = $emi ? "--thrflavour= --nothrflavour=" : "--thrflavour=\${globus.thr.flavor} --nothrflavour=\${globus.nothr.flavor}"; - my $local_prefix = $emi ? '/usr' : ''; - $cmd{configure} = "cd $confdir && /usr/bin/perl \${moduleName}/configure $flavours --root=\${prefix} --prefix=$local_prefix --stage=\${stageDir} --sysroot=\${package.prefix} --libdir=\${libdir} --project=\${projectName} --module $subsys.$module @copts"; + $cmd{configure} = "cd $confdir && /usr/bin/perl $cvs_prefix{$subsys}.$subsys.$module/configure $project{flavours} --root=\${prefix} --prefix=$project{local_prefix} --stage=\${stageDir} --sysroot=\${package.prefix} --libdir=\${libdir} --project=\${projectName} --module $subsys.$module @copts"; $cmd{compile} = 'make'; $cmd{test} = 'make check'; $cmd{install} = 'make install'; @@ -932,17 +966,16 @@ sub mode_etics { $defprops .= $p . ' = ' . $platform_properties{"$subsys.$module"}->{default}->{$p} . "\n"; } - my $checkoutcmd = "cvs -d \${vcsroot} co -d \${moduleName} ".($conftag eq 'HEAD' ? '-A' : '-r ${tag}')." $cvs_prefix{$subsys}.$subsys.$module"; - $checkoutcmd .= "; test -e $cvs_prefix{$subsys}.$subsys.$module || ln -s \${moduleName} $cvs_prefix{$subsys}.$subsys.$module 2>/dev/null" if ($emi); + my $checkoutcmd = "mkdir -v \${moduleName}; cd \${moduleName} && cvs -d \${vcsroot} co ".($conftag eq 'HEAD' ? '-A' : '-r ${tag}')." $cvs_prefix{$subsys}.$subsys.$module"; print STDERR "Writing $file\n"; print C qq{ [Configuration-$conf] profile = None -moduleName = $projectname.$subsys.$module +moduleName = $project{etics_name}.$subsys.$module displayName = $conf description = $cvs_prefix{$subsys}.$subsys.$module -projectName = $projectname +projectName = $project{etics_name} age = $age deploymentType = None vcsroot = :pserver:anonymous\@glite.cvs.cern.ch:/cvs/glite @@ -952,7 +985,7 @@ $dwpath [Platform-default:VcsCommand] displayName = None description = None -tag = cvs -d \${vcsroot} tag -R \${tag} \${moduleName} +tag = cd \${moduleName} && cvs -d \${vcsroot} tag -R \${tag} $cvs_prefix{$subsys}.$subsys.$module branch = None commit = None checkout = $checkoutcmd @@ -1007,7 +1040,7 @@ package.SRPMSLocation = ${moduleDir}/RPMTMP/SRPMS my $proj = 'externals'; for my $p (keys %etics_projects) { - if ($emi and defined $etics_projects_emi{$p}) { + if ($project eq 'emi' and defined $etics_projects_emi{$p}) { $p = $etics_projects_emi{$p}; } for $m (@{$etics_projects{$p}}) { @@ -1021,7 +1054,7 @@ package.SRPMSLocation = ${moduleDir}/RPMTMP/SRPMS for (@{$deps{"$subsys.$module"}}) { my $type = $deps_type{"$subsys.$module"}->{$_}; - print C "$projectname|$projectname.$_ = $type\n"; + print C "$project{etics_name}|$project{etics_name}.$_ = $type\n"; } close C; @@ -1112,7 +1145,7 @@ General options (defaults in []): --version=maj.min.rev-age specify version here instead of reading version.properties --branch=branch CVS branch/etics name suffix (HEAD, branch_2_1, ...) --libdir=libdir typically [lib,lib64] postfix - --emi generate configurations with emi flavor in mode 'etics' + --project=PROJECT build or generate etics for a project (glite/emi) [emi] Mode of operation: --mode=\{checkout|build|etics\} what to do [build] diff --git a/org.glite.px.proxyrenewal/configure b/org.glite.px.proxyrenewal/configure index 67f58dc..a3e8862 100755 --- a/org.glite.px.proxyrenewal/configure +++ b/org.glite.px.proxyrenewal/configure @@ -47,8 +47,8 @@ my $lbjp_tag = ''; my $jp_tag = ''; my $jobid_tag = ''; my $libdir = getlibdir(); -my $projectname; -my $project = ''; +my $project = 'glite'; +my (%projects, %project); my @nodes = qw/client server logger logger-msg utils client-java doc ws-test db jpprimary jpindex jpclient harvester glite-LB glite-PX/; @@ -202,7 +202,6 @@ my @opts = ( 'jobid-tag=s' => \$jobid_tag, 'help' => \$help, 'libdir=s' => \$libdir, - 'emi' => \$emi, 'project=s' => \$project, ); @@ -231,9 +230,8 @@ $localstatedir=~s/\/$//; $externs{'mysql-devel'}{prefix}=$externs{mysql}{prefix} if $externs{'mysql-devel'}{prefix} eq ''; $externs{'mysql-server'}{prefix}=$externs{mysql}{prefix} if $externs{'mysql-server'}{prefix} eq ''; -if (!$project) { $project = $emi ? 'emi' : 'glite'; } -$projectname = ($project eq 'emi') ? 'emi' : 'org.glite'; -if ($emi) { +%project = %{$projects{$project}}; +if ($project eq 'emi') { for $_ (keys %etics_externs_emi) { $etics_externs{$_} = $etics_externs_emi{$_}; } @@ -242,7 +240,7 @@ if ($emi) { if ($help) { usage(); exit 0; } if ($listmodules) { - my @m = map "$projectname.$listmodules.$_",@{$lbmodules{$listmodules}}; + my @m = map "$project{etics_name}.$listmodules.$_",@{$lbmodules{$listmodules}}; print "@m\n"; exit 0; } @@ -443,7 +441,7 @@ BEGIN{ 'lb.common' => [ qw/expat cares:B cppunit:B classads/ ], 'lb.doc' => [], 'lb.logger' => [ qw/cppunit:B/ ], - 'lb.logger-msg' => [ qw/cppunit:B activemq apr aprutil/ ], + 'lb.logger-msg' => [ qw/cppunit:B activemq/ ], 'lb.server' => [ qw/globus_essentials:R globus:B expat cares mysql:R mysql-server:R mysql-devel:B cppunit:B gsoap:B classads voms lcas gridsite/ ], 'lb.state-machine' => [ qw/classads/ ], 'lb.utils' => [ qw/cppunit:B/ ], @@ -632,7 +630,7 @@ for my $ext (keys %deps_aux) { 'px' => 'org.glite', ); -%conf_prefix = ( +%cvs_tag_prefix = ( 'lb' => 'glite-', 'jp' => 'glite-', 'jobid' => 'glite-', @@ -641,13 +639,29 @@ for my $ext (keys %deps_aux) { 'px' => 'glite-', ); -%emi_conf_prefix = ( - 'lb' => 'emi-', - 'jp' => 'emi-', - 'jobid' => 'emi-', - 'lbjp-common' => 'emi-', - 'gridsite' => '', - 'px' => 'emi-', +%projects = ( + glite => { + etics_name => 'org.glite', + conf_prefix => { %cvs_tag_prefix }, + tag_prefix => { %cvs_tag_prefix }, + flavours => '--thrflavour=${globus.thr.flavor} --nothrflavour=${globus.nothr.flavor}', + local_prefix => '', + }, + + emi => { + etics_name => 'emi', + conf_prefix => { + 'lb' => 'emi-', + 'jp' => 'emi-', + 'jobid' => 'emi-', + 'lbjp-common' => 'emi-', + 'gridsite' => '', + 'px' => 'emi-', + }, + tag_prefix => { %cvs_tag_prefix }, + flavours => '--thrflavour= --nothrflavour=', + local_prefix => '/usr', + }, ); my @k = keys %deps_aux; @@ -785,6 +799,27 @@ BEGIN{ default => { } }, + 'jobid.api-java' => { + default => { 'package.buildarch' => 'noarch' }, + }, + 'lb.types' => { + default => { 'package.buildarch' => 'noarch' }, + }, + 'lb.doc' => { + default => { 'package.buildarch' => 'noarch' }, + }, + 'lb.ws-interface' => { + default => { 'package.buildarch' => 'noarch' }, + }, + 'lb.yaim' => { + default => { 'package.buildarch' => 'noarch' }, + }, + 'px.yaim' => { + default => { 'package.buildarch' => 'noarch' }, + }, + 'px.myproxy-config' => { + default => { 'package.buildarch' => 'noarch' }, + }, ); }; @@ -820,7 +855,7 @@ sub mode_etics { for (@{$need_externs{"$subsys.$module"}}) { if ($need_externs_type{"$subsys.$module"}->{$_}=~/B/) { my $eext = $etics_externs{$_} ? $etics_externs{$_} : $_; - if ($emi) { + if ($project ne 'glite') { if ($ge{$_} and not defined $externs{$_}{pkg}) { push @copts, "--with-$_=\${stageDir}"; } @@ -833,7 +868,7 @@ sub mode_etics { for (@{$need_jars{"$subsys.$module"}}) { my $eext = $etics_externs{$_} ? $etics_externs{$_} : $_; - push @copts,"--with-$_ \${$eext.location}$jar{$_}" if (not $emi); + push @copts,"--with-$_ \${$eext.location}$jar{$_}" if ($project eq 'glite'); } my $conf; @@ -842,7 +877,7 @@ sub mode_etics { $dwpath = "path = \${projectName}/\${moduleName}/\${version}/\${platformName}/\${packageName}-\${version}-\${age}.tar.gz\n"; - $confprefix = $emi ? $emi_conf_prefix{$subsys} : $conf_prefix{$subsys}; + $confprefix = $project{conf_prefix}{$subsys}; $nameprefix = $confprefix; $nameprefix =~ s/-$//; $nameprefix =~ s/-/\./g; @@ -856,13 +891,14 @@ sub mode_etics { $conf = "$confprefix$subsys-${module}_R_${major}_${minor}_${rev}_${age}"; # XXX: gridsite hack - $conftag = $subsys eq 'gridsite' ? "$conf_prefix{$subsys}$subsys-${module}_R_${major}_${minor}_${rev}" : - "$conf_prefix{$subsys}$subsys-${module}_R_${major}_${minor}_${rev}_${age}"; } + $conftag = $subsys eq 'gridsite' ? "$project{tag_prefix}{$subsys}$subsys-${module}_R_${major}_${minor}_${rev}" : + "$project{tag_prefix}{$subsys}$subsys-${module}_R_${major}_${minor}_${rev}_${age}"; } my $file = $output ? $output : "$conf.ini"; open C,">$file" or die "$file: $!\n"; - my $buildroot = $buildroot{"$subsys.$module"} eq '' ? '#no build.root' : "build.root = " . $buildroot{"$subsys.$module"}; + my $buildroot = "build.root = $cvs_prefix{$subsys}.$subsys.$module"; + $buildroot .= '/'.$buildroot{"$subsys.$module"} unless ($buildroot{"$subsys.$module"} eq ''); my $confdir = $buildroot{"$subsys.$module"} eq '' ? '..' : '../..'; @@ -899,7 +935,7 @@ sub mode_etics { if ($module eq 'core') { my $flags; - if ($emi) { + if ($project ne 'glite') { $flags = 'RELEASE_VERSION=${age}.${platformFamily} prefix=${prefix}/usr libdir=${libdir} GSOAPDIR=`pkg-config gsoap --variable=prefix` OPENSSL_GLOBUS_FLAGS=`pkg-config globus-openssl --cflags` OPENSSL_GLOBUS_LIBS=`pkg-config globus-openssl --libs` FLAVOR_GLOBUS_EXT= HTTPD_FLAGS="-I/usr/include/httpd -I/usr/include/apache2 -I/usr/include/apr-${aprSuffix} -I/usr/include/pcre"'; } else { $flags = 'RELEASE_VERSION=${age}.${platformFamily} prefix=${prefix} libdir=${libdir} GSOAPDIR=${gsoap.location} OPENSSL_GLOBUS_FLAGS=-I${globus.location}/include/${globus.dbg.nothr.flavor} OPENSSL_GLOBUS_LIBS=-L${globus.location}/${libdir}/ FLAVOR_GLOBUS_EXT=_${globus.dbg.nothr.flavor} HTTPD_FLAGS="-I${httpd-devel.location}/include/httpd -I${httpd-devel.location}/include/apache2 -I${httpd-devel.location}/include/apr-${aprSuffix} -I${httpd-devel.location}/include/pcre"'; @@ -914,13 +950,11 @@ sub mode_etics { } } elsif ($subsys eq 'px' and $module eq 'myproxy-config') { - $cmd{configure} = "cd $confdir && /usr/bin/perl \${moduleName}/configure --root=\${prefix} --prefix= --stage=\${stageDir} --libdir=\${libdir} --project=\${projectName} --module $subsys.$module @copts"; + $cmd{configure} = "cd $confdir && /usr/bin/perl $cvs_prefix{$subsys}.$subsys.$module/configure --root=\${prefix} --prefix= --stage=\${stageDir} --libdir=\${libdir} --project=\${projectName} --module $subsys.$module @copts"; $cmd{packaging} = "make rpm package=".$confprefix."$subsys-myproxy-config"; } else { - my $flavours = $emi ? "--thrflavour= --nothrflavour=" : "--thrflavour=\${globus.thr.flavor} --nothrflavour=\${globus.nothr.flavor}"; - my $local_prefix = $emi ? '/usr' : ''; - $cmd{configure} = "cd $confdir && /usr/bin/perl \${moduleName}/configure $flavours --root=\${prefix} --prefix=$local_prefix --stage=\${stageDir} --sysroot=\${package.prefix} --libdir=\${libdir} --project=\${projectName} --module $subsys.$module @copts"; + $cmd{configure} = "cd $confdir && /usr/bin/perl $cvs_prefix{$subsys}.$subsys.$module/configure $project{flavours} --root=\${prefix} --prefix=$project{local_prefix} --stage=\${stageDir} --sysroot=\${package.prefix} --libdir=\${libdir} --project=\${projectName} --module $subsys.$module @copts"; $cmd{compile} = 'make'; $cmd{test} = 'make check'; $cmd{install} = 'make install'; @@ -932,17 +966,16 @@ sub mode_etics { $defprops .= $p . ' = ' . $platform_properties{"$subsys.$module"}->{default}->{$p} . "\n"; } - my $checkoutcmd = "cvs -d \${vcsroot} co -d \${moduleName} ".($conftag eq 'HEAD' ? '-A' : '-r ${tag}')." $cvs_prefix{$subsys}.$subsys.$module"; - $checkoutcmd .= "; test -e $cvs_prefix{$subsys}.$subsys.$module || ln -s \${moduleName} $cvs_prefix{$subsys}.$subsys.$module 2>/dev/null" if ($emi); + my $checkoutcmd = "mkdir -v \${moduleName}; cd \${moduleName} && cvs -d \${vcsroot} co ".($conftag eq 'HEAD' ? '-A' : '-r ${tag}')." $cvs_prefix{$subsys}.$subsys.$module"; print STDERR "Writing $file\n"; print C qq{ [Configuration-$conf] profile = None -moduleName = $projectname.$subsys.$module +moduleName = $project{etics_name}.$subsys.$module displayName = $conf description = $cvs_prefix{$subsys}.$subsys.$module -projectName = $projectname +projectName = $project{etics_name} age = $age deploymentType = None vcsroot = :pserver:anonymous\@glite.cvs.cern.ch:/cvs/glite @@ -952,7 +985,7 @@ $dwpath [Platform-default:VcsCommand] displayName = None description = None -tag = cvs -d \${vcsroot} tag -R \${tag} \${moduleName} +tag = cd \${moduleName} && cvs -d \${vcsroot} tag -R \${tag} $cvs_prefix{$subsys}.$subsys.$module branch = None commit = None checkout = $checkoutcmd @@ -1007,7 +1040,7 @@ package.SRPMSLocation = ${moduleDir}/RPMTMP/SRPMS my $proj = 'externals'; for my $p (keys %etics_projects) { - if ($emi and defined $etics_projects_emi{$p}) { + if ($project eq 'emi' and defined $etics_projects_emi{$p}) { $p = $etics_projects_emi{$p}; } for $m (@{$etics_projects{$p}}) { @@ -1021,7 +1054,7 @@ package.SRPMSLocation = ${moduleDir}/RPMTMP/SRPMS for (@{$deps{"$subsys.$module"}}) { my $type = $deps_type{"$subsys.$module"}->{$_}; - print C "$projectname|$projectname.$_ = $type\n"; + print C "$project{etics_name}|$project{etics_name}.$_ = $type\n"; } close C; @@ -1112,7 +1145,7 @@ General options (defaults in []): --version=maj.min.rev-age specify version here instead of reading version.properties --branch=branch CVS branch/etics name suffix (HEAD, branch_2_1, ...) --libdir=libdir typically [lib,lib64] postfix - --emi generate configurations with emi flavor in mode 'etics' + --project=PROJECT build or generate etics for a project (glite/emi) [emi] Mode of operation: --mode=\{checkout|build|etics\} what to do [build] -- 1.8.2.3