Skip to content

Commit

Permalink
Merge pull request #1470 from nickanderson/ENT-11901/master
Browse files Browse the repository at this point in the history
ENT-11901: Removed /etc/init.d/cfengine3 from EL9+ packages
  • Loading branch information
vpodzime authored Jul 1, 2024
2 parents 426ef4c + 7e86174 commit 2727177
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packaging/cfengine-community/cfengine-community.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ rm -f $RPM_BUILD_ROOT%{prefix}/bin/openssl
rm -f $RPM_BUILD_ROOT%{prefix}/bin/curl
rm -rf $RPM_BUILD_ROOT%{prefix}/ssl

%if %{?rhel}%{!rhel:0} >= 9
rm -f $RPM_BUILD_ROOT/etc/sysconfig/cfengine3
rm -f $RPM_BUILD_ROOT/etc/init.d/cfengine3
rm -f $RPM_BUILD_ROOT/etc/profile.d/cfengine.sh
%endif

%clean
#rm -rf $RPM_BUILD_ROOT
Expand Down Expand Up @@ -127,9 +132,13 @@ rm -rf $RPM_BUILD_ROOT%{prefix}/ssl
%endif

# Globally installed configs, scripts
%if %{?rhel}%{!?rhel:0} < 9
%attr(644,root,root) /etc/sysconfig/cfengine3
%attr(755,root,root) /etc/profile.d/cfengine3.sh
# ENT-11901
# For el9+ we started seeing issues from other packages not expecting init scripts
%attr(755,root,root) /etc/init.d/cfengine3
%endif

# Systemd units
%defattr(644,root,root,755)
Expand Down
11 changes: 11 additions & 0 deletions packaging/cfengine-nova-hub/cfengine-nova-hub.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ mkdir -p $RPM_BUILD_ROOT%{prefix}
cp -a %{prefix}/* $RPM_BUILD_ROOT%{prefix}
cp -a %{_basedir}/cfengine/dist/* $RPM_BUILD_ROOT

# ENT-11901
# For el9+ we started seeing issues from other packages not expecting init scripts
%if %{?rhel}%{!?rhel:0} >= 9
rm -f $RPM_BUILD_ROOT/etc/sysconfig/cfengine3
rm -f $RPM_BUILD_ROOT/etc/init.d/cfengine3
rm -f $RPM_BUILD_ROOT/etc/profile.d/cfengine.sh
%endif
# Remove useless stuff

rm -f $RPM_BUILD_ROOT%{prefix}/lib/libpromises.la
Expand Down Expand Up @@ -318,9 +325,13 @@ exit 0

# Initscript, other configuration
%defattr(755,root,root,755)
# ENT-11901
# For el9+ we started seeing issues from other packages not expecting init scripts
%if %{?rhel}%{!?rhel:0} < 9
/etc/init.d/cfengine3
/etc/profile.d/cfengine.sh
%attr(644,root,root) /etc/sysconfig/cfengine3
%endif

# Systemd units
%defattr(644,root,root,755)
Expand Down
11 changes: 11 additions & 0 deletions packaging/cfengine-nova/cfengine-nova.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ mkdir -p $RPM_BUILD_ROOT%{prefix}
cp -a %{prefix}/* $RPM_BUILD_ROOT%{prefix}
cp -a %{_basedir}/cfengine/dist/* $RPM_BUILD_ROOT

# ENT-11901
# For el9+ we started seeing issues from other packages not expecting init scripts
%if %{?rhel}%{!?rhel:0} >= 9
rm -f $RPM_BUILD_ROOT/etc/sysconfig/cfengine3
rm -f $RPM_BUILD_ROOT/etc/profile.d/cfengine.sh
rm -f $RPM_BUILD_ROOT/etc/init.d/cfengine3
%endif

# Remove useless stuff

Expand Down Expand Up @@ -145,9 +152,13 @@ exit 0
%endif

# Globally installed configs, scripts
# ENT-11901
# For el9+ we started seeing issues from other packages not expecting init scripts
%if %{?rhel}%{!?rhel:0} < 9
%attr(755,root,root) /etc/init.d/cfengine3
%attr(644,root,root) /etc/sysconfig/cfengine3
%attr(755,root,root) /etc/profile.d/cfengine.sh
%endif

# Systemd units
%defattr(644,root,root,755)
Expand Down

0 comments on commit 2727177

Please sign in to comment.