06fa2131c5
no longer install all of the demo programs with openmotif (which are largely just bloat), and we use bsd.pkg.install.mk to replace some of the bloat in the package Makefile.
40 lines
970 B
Text
40 lines
970 B
Text
# $NetBSD: DEINSTALL,v 1.2 2002/01/10 12:10:45 jlam Exp $
|
|
|
|
X11BASE=@X11BASE@
|
|
MOTIF_RULES=${PKG_PREFIX}/lib/X11/config/Motif.rules
|
|
MOTIF_TMPL=${PKG_PREFIX}/lib/X11/config/Motif.tmpl
|
|
X11_HOSTDEF=${X11BASE}/lib/X11/config/host.def
|
|
HOSTDEF=${PKG_PREFIX}/lib/X11/config/host.def
|
|
|
|
case ${STAGE} in
|
|
DEINSTALL)
|
|
;;
|
|
|
|
POST-DEINSTALL)
|
|
${ECHO} -n "Updating ${HOSTDEF}..."
|
|
${CP} -f ${HOSTDEF} ${HOSTDEF}.bak
|
|
( ${GREP} -v OpenMotif ${HOSTDEF}.bak || ${TRUE} ) > ${HOSTDEF}
|
|
${RM} -f ${HOSTDEF}.bak
|
|
if [ ${PKG_PREFIX} != ${X11BASE} ] && \
|
|
[ -f ${X11_HOSTDEF} ] && \
|
|
${CMP} -s ${X11_HOSTDEF} ${HOSTDEF}
|
|
then
|
|
${RM} -f ${HOSTDEF}
|
|
fi
|
|
${ECHO} "done."
|
|
|
|
${RM} -f ${MOTIF_RULES} ${MOTIF_TMPL}
|
|
if [ ${PKG_PREFIX} = ${X11BASE} ]
|
|
then
|
|
${MV} -f ${MOTIF_RULES}.openmotif.bak ${MOTIF_RULES}
|
|
${MV} -f ${MOTIF_TMPL}.openmotif.bak ${MOTIF_TMPL}
|
|
fi
|
|
|
|
${RMDIR} -p ${PKG_PREFIX}/lib/X11/config 2>/dev/null || ${TRUE}
|
|
;;
|
|
|
|
*)
|
|
${ECHO} "Unexpected argument: ${STAGE}"
|
|
exit 1
|
|
;;
|
|
esac
|