The postun will remove entries on older packages that incorrectly
add and remove entries instead of updating the file. When updating
from these older version we end up with an empty /etc/dat.conf.
In order to fix we have to save the dat.conf and restore during
the upgrade process with the triggerpostun
%triggerpostun -- dapl < 2.0.35-1
rm -rf %{buildroot}
%post
+# fix problem with older dapl packages that clobber dat.conf when updating
+cp $RPM_BUILD_ROOT%{_sysconfdir}/dat.conf /tmp/%{version}-dat.conf
/sbin/ldconfig
if [ $1 = 1 ]; then
/sbin/chkconfig --add mpxyd
%{_mandir}/man1/*.1*
%{_mandir}/man5/*.5*
+%triggerpostun -- dapl < 2.0.35-1
+# fix problem with older dapl packages that clobber dat.conf during update
+mv /tmp/%{version}-dat.conf %{_sysconfdir}/dat.conf
+
%changelog
* Thu Dec 6 2012 Arlin Davis <ardavis@ichips.intel.com> - 2.0.36.2
- DAT/DAPL Version 2.0.36.2 Release 1, OFED 3.5, Intel MPSS 2.1