diff options
Diffstat (limited to 'multimedia/gstreamer/files/plugins.tmpl')
-rw-r--r-- | multimedia/gstreamer/files/plugins.tmpl | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/multimedia/gstreamer/files/plugins.tmpl b/multimedia/gstreamer/files/plugins.tmpl index 0ef4cacd46e..db60367b239 100644 --- a/multimedia/gstreamer/files/plugins.tmpl +++ b/multimedia/gstreamer/files/plugins.tmpl @@ -1,4 +1,4 @@ -# $NetBSD: plugins.tmpl,v 1.1 2004/04/06 09:30:01 jmmv Exp $ +# $NetBSD: plugins.tmpl,v 1.2 2005/01/06 11:23:44 jmmv Exp $ # # Handle registration of GStreamer plugins into the global plugin registry. # @@ -8,10 +8,23 @@ GST_REGISTER="@GST_REGISTER@" GST_DBDIR="@GST_DBDIR@" case ${STAGE} in -DEINSTALL|POST-INSTALL) +POST-INSTALL) ${GST_REGISTER} --gst-registry=${GST_DBDIR}/registry.xml >/dev/null ${GST_COMPPREP} --gst-registry=${GST_DBDIR}/registry.xml >/dev/null ;; +DEINSTALL) + if [ "${PKGBASE}" = gstreamer ]; then + ${RM} -f ${GST_DBDIR}/compreg.xml ${GST_DBDIR}/registry.xml + fi + ;; +POST-DEINSTALL) + if [ "${PKGBASE}" != gstreamer ]; then + ${GST_REGISTER} --gst-registry=${GST_DBDIR}/registry.xml \ + >/dev/null + ${GST_COMPPREP} --gst-registry=${GST_DBDIR}/registry.xml \ + >/dev/null + fi + ;; *) ;; esac |