( cd usr/lib64/pkgconfig ; rm -rf nss.pc )
( cd usr/lib64/pkgconfig ; ln -sf seamonkey-nss.pc nss.pc )
( cd usr/lib64/pkgconfig ; rm -rf plugin.pc )
( cd usr/lib64/pkgconfig ; ln -sf seamonkey-plugin.pc plugin.pc )
( cd usr/lib64/pkgconfig ; rm -rf libxul.pc )
( cd usr/lib64/pkgconfig ; ln -sf seamonkey-libxul.pc libxul.pc )
( cd usr/lib64/pkgconfig ; rm -rf xpcom.pc )
( cd usr/lib64/pkgconfig ; ln -sf seamonkey-xpcom.pc xpcom.pc )
( cd usr/lib64/pkgconfig ; rm -rf nspr.pc )
( cd usr/lib64/pkgconfig ; ln -sf seamonkey-nspr.pc nspr.pc )
( cd usr/lib64/pkgconfig ; rm -rf js.pc )
( cd usr/lib64/pkgconfig ; ln -sf seamonkey-js.pc js.pc )
( cd usr/lib64 ; rm -rf seamonkey )
( cd usr/lib64 ; ln -sf seamonkey-2.17.1 seamonkey )
( cd usr/include/seamonkey-2.17.1 ; rm -rf plugin )
( cd usr/include/seamonkey-2.17.1 ; ln -sf . plugin )
( cd usr/include/seamonkey-2.17.1 ; rm -rf nss )
( cd usr/include/seamonkey-2.17.1 ; ln -sf . nss )
( cd usr/include/seamonkey-2.17.1 ; rm -rf xpcom )
( cd usr/include/seamonkey-2.17.1 ; ln -sf . xpcom )
( cd usr/include/seamonkey-2.17.1 ; rm -rf threads )
( cd usr/include/seamonkey-2.17.1 ; ln -sf . threads )
( cd usr/include ; rm -rf seamonkey )
( cd usr/include ; ln -sf seamonkey-2.17.1 seamonkey )
( cd usr/bin ; rm -rf seamonkey )
( cd usr/bin ; ln -sf /usr/lib64/seamonkey-2.17.1/seamonkey seamonkey )

# If there's no mozilla here, then take over:
if [ ! -r usr/bin/mozilla ]; then
  ( cd usr/bin ; ln -sf seamonkey mozilla )
fi
# Hopefully this won't break everything.  ;-)
if ! grep /usr/lib64/seamonkey etc/ld.so.conf 1> /dev/null 2> /dev/null ; then
  echo "/usr/lib64/seamonkey" >> etc/ld.so.conf
fi
if [ -x /sbin/ldconfig ]; then
  /sbin/ldconfig 2> /dev/null
fi
