SUNWjdsrm.spec revision 19140
# includes module(s): SUNWjdsver.spec
SUNW_BaseDir: /
%prep
%post
sed -e 's: /usr: ${PKG_INSTALL_ROOT}/usr:' ${PKG_INSTALL_ROOT}/var/sadm/pkg/$i/install/preremove > /tmp/$i.pkgremove.$$
cp /tmp/$i.pkgremove.$$ ${PKG_INSTALL_ROOT}/var/sadm/pkg/$i/install/preremove
rm /tmp/$i.pkgremove.$$
(pkgparam -R ${PKG_INSTALL_ROOT} $i VERSION | egrep -v '^[0-9.]+$|^[0-9.]+,REV=[0-9.]+$') > /dev/null 2>&1
exist=$?
do_pkgrm $i
if [ -f $REM_SCRIPT ]; then