Skip to content

Commit

Permalink
Delete vomses entries in the spec file instead for SOFTWARE-5843
Browse files Browse the repository at this point in the history
we previously used that method for SOFTWARE-4595; I'd rather not have
two separate methods for doing the same thing.
  • Loading branch information
matyasselmeci committed Mar 15, 2024
1 parent b6771c2 commit f0710fa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
14 changes: 12 additions & 2 deletions rpm/vo-client.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Set to 1 to enable IAM-based VOMS endpoints
# (SOFTWARE-4666, SOFTWARE-4576, SOFTWARE-4595)
# (SOFTWARE-4666, SOFTWARE-4576, SOFTWARE-4595, SOFTWARE-5843)
%define iam 1
# Set to 1 to include IAM-based VOMS endpoints in the vomses file (SOFTWARE-5843)
%define iam_vomses 0

Name: vo-client
Version: 135
Expand Down Expand Up @@ -44,15 +46,23 @@ Requires: %{name} = %{version}-%{release}
%build
make

%if ! 0%{iam}
%if ! 0%{?iam}
rm -f vomsdir/atlas/voms-atlas-auth.app.cern.ch.lsc
rm -f vomsdir/cms/voms-cms-auth.app.cern.ch.lsc

for vo in alice atlas cms dteam lhcb; do
rm -f vomsdir/${vo}/voms-${vo}-auth.cern.ch.lsc
done
%endif

# FIXME: Remove IAM vomses entries to avoid use by VOMS clients until
# IAM LSC files are more widely distributed across the world
# (SOFTWARE-4595)
sed -Ei '/.*voms-(alice|lhcb|ops)-auth.app.cern.ch.*/d' vomses
%if ! 0%{?iam_vomses}
# Additional entries from SOFTWARE-5843:
sed -Ei '/.*voms-(alice|atlas|cms|dteam|lhcb)-auth.cern.ch.*/d' vomses
%endif

%install
install -d $RPM_BUILD_ROOT/%{_sysconfdir}
Expand Down
5 changes: 5 additions & 0 deletions vomses
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,8 @@
"eic" "eic.voms2.opensciencegrid.org" "15001" "/DC=org/DC=incommon/C=US/ST=Wisconsin/O=University of Wisconsin-Madison/CN=eic.voms2.opensciencegrid.org" "eic"
"eic" "eicvoms.sdcc.bnl.gov" "15001" "/DC=org/DC=incommon/C=US/ST=New York/O=Brookhaven National Laboratory/OU=SDCC/CN=eicvoms.sdcc.bnl.gov" "eic"
"kagra" "voms.cc.kek.jp" "15027" "/C=JP/O=KEK/OU=CRC/CN=host/voms.cc.kek.jp" "kagra"
"alice" "voms-alice-auth.cern.ch" "443" "/DC=ch/DC=cern/OU=computers/CN=alice-auth.cern.ch" "alice"
"atlas" "voms-atlas-auth.cern.ch" "443" "/DC=ch/DC=cern/OU=computers/CN=atlas-auth.cern.ch" "atlas"
"cms" "voms-cms-auth.cern.ch" "443" "/DC=ch/DC=cern/OU=computers/CN=cms-auth.cern.ch" "cms"
"dteam" "voms-dteam-auth.cern.ch" "443" "/DC=ch/DC=cern/OU=computers/CN=dteam-auth.cern.ch" "dteam"
"lhcb" "voms-lhcb-auth.cern.ch" "443" "/DC=ch/DC=cern/OU=computers/CN=lhcb-auth.cern.ch" "lhcb"

0 comments on commit f0710fa

Please sign in to comment.