We keep getting the following error when trying to install the sme7-open-xchange-conf-0.8.2-1.noarch file. All other components appear to be fine for open-xchange.
error: %pre(sme7-open-xchange-conf-0.8.2-1.noarch) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping sme7-open-xchange-conf-0.8.2-1
I think that you are not showing us the full story. I think the details of the error will appear a little before the bit which you have shown us.
If I do:
rpm -qp --scripts sme7-open-xchange-conf-0.8.2-1.noarch.rpm
then we can see what the script is which has failed.
preinstall scriptlet (using /bin/sh):
if [ -e /usr/lib/perl5/site_perl/esmith/FormMagick/Panel/useraccounts.pm.old ]
then
echo
echo "-----Warning-Warning-Warning-Warning-Warning-Warning-Warning-Warning-------"
echo "You must use rpm -e sme7-open-xchange-conf to delete this rpm."
echo "and re-install it with rpm -ivh sme7-open-xchange-conf-0.8.2-1.noarch.rpm"
echo
exit 1
fi
if [ -e /usr/lib/perl5/site_perl/esmith/util.pm.old ]
then
echo
echo "-----Warning-Warning-Warning-Warning-Warning-Warning-Warning-Warning-------"
echo "You must use rpm -e sme7-open-xchange-conf to delete this rpm."
echo "and re-install it with rpm -ivh sme7-open-xchange-conf-0.8.2-1.noarch.rpm"
echo
exit 1
fi
rm -f /home/e-smith/files/ibays/Primary/html/ox/files/*.exe
postinstall scriptlet (using /bin/sh):
...
Now the "exit 1" is the point where an error has been reported. There are two possibilities, that you have either a useraccounts.pm.old file or a util.pm.old file (or both). This RPM is doing something pretty nasty to these two files, which belong to other RPMs. It's replacing those RPMs with its own version of them, and keeping the "old" ones by renaming them.
This is very messy stuff. What the developers of this RPM should really be doing is providing their own versions of e-smith-lib and e-smith-base, and insisting via dependencies that their versions are installed. Or they should be sending us patches to e-smith-lib and e-smith-base so that they standard versions work correctly with this contrib.
It's a very dangerous practice for an RPM to go around modifying files which don't belong to it.