Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > main > by-pkgid > b9d3c6d299427d38cba4081a8ddfcc07 > scriptlet

mozplugger-1.7.2-3mdk.x86_64.rpm

Triggers

acroread-nppdf

/bin/sh
[ "$2" -ge 1 ] || exit 0
if [ -r /etc/mozpluggerrc ]; then
	if [ -x /usr/bin/disable_mozmimetypes ]; then
		/usr/bin/disable_mozmimetypes /etc/mozpluggerrc \
			application/pdf application/x-pdf
		touch /usr/lib64/mozilla/plugins/mozplugger.so
	fi
fi

acroread-nppdf

/bin/sh
[ "$2" = "0" ] || exit 0
if [ -r /etc/mozpluggerrc ]; then
	if [ -x /usr/bin/enable_mozmimetypes ]; then
		/usr/bin/enable_mozmimetypes /etc/mozpluggerrc \
			application/pdf application/x-pdf
		touch /usr/lib64/mozilla/plugins/mozplugger.so
	fi
fi

acroread-nppdf

/bin/sh
[ "$2" = "0" ] || exit 0
if [ -r /etc/mozpluggerrc ]; then
	if [ -x /usr/bin/enable_mozmimetypes ]; then
		/usr/bin/enable_mozmimetypes /etc/mozpluggerrc \
			application/pdf application/x-pdf
		touch /usr/lib64/mozilla/plugins/mozplugger.so
	fi
fi

RealPlayer-rpnp

/bin/sh
[ "$2" -ge 1 ] || exit 0
if [ -r /etc/mozpluggerrc ]; then
	if [ -x /usr/bin/disable_mozmimetypes ]; then
		/usr/bin/disable_mozmimetypes /etc/mozpluggerrc \
			audio/x-pn-realaudio-plugin
		touch /usr/lib64/mozilla/plugins/mozplugger.so
	fi
fi

RealPlayer-rpnp

/bin/sh
[ "$2" = "0" ] || exit 0
if [ -r /etc/mozpluggerrc ]; then
	if [ -x /usr/bin/enable_mozmimetypes ]; then
		/usr/bin/enable_mozmimetypes /etc/mozpluggerrc \
			audio/x-pn-realaudio-plugin
		touch /usr/lib64/mozilla/plugins/mozplugger.so
	fi
fi

RealPlayer-rpnp

/bin/sh
[ "$2" = "0" ] || exit 0
if [ -r /etc/mozpluggerrc ]; then
	if [ -x /usr/bin/enable_mozmimetypes ]; then
		/usr/bin/enable_mozmimetypes /etc/mozpluggerrc \
			audio/x-pn-realaudio-plugin
		touch /usr/lib64/mozilla/plugins/mozplugger.so
	fi
fi

mplayerplugin

/bin/sh
[ "$2" -ge 1 ] || exit 0
if [ -r /etc/mozpluggerrc ]; then
	if [ -x /usr/bin/disable_mozmimetypes ]; then
		/usr/bin/disable_mozmimetypes /etc/mozpluggerrc \
			application/x-drm-v2 \
			application/x-mplayer2 \
			application/x-ogg \
			application/x-quicktimeplayer \
			application/x-ms-wmw \
			application/x-nsv-vp3-mp3 \
			audio/ogg \
			audio/wav \
			audio/x-ms-wax \
			audio/x-ms-wma \
			audio/x-wav \
			video/anim \
			video/dl \
			video/fli \
			video/mp4 \
			video/mpeg \
			video/msvideo \
			video/quicktime \
			video/sgi-movie \
			video/x-anim \
			video/x-dl \
			video/x-fli \
			video/x-mpeg \
			video/x-mpeg2 \
			video/x-ms-asf \
			video/x-ms-asf-plugin \
			video/x-msvideo \
			video/x-ms-wm \
			video/x-ms-wmv \
			video/x-ms-wvx \
			image/x-macpaint \
			video/x-quicktime \
			video/x-sgi-movie
		touch /usr/lib64/mozilla/plugins/mozplugger.so
	fi
fi

mplayerplugin

/bin/sh
[ "$2" = "0" ] || exit 0
if [ -r /etc/mozpluggerrc ]; then
	if [ -x /usr/bin/enable_mozmimetypes ]; then
		/usr/bin/enable_mozmimetypes /etc/mozpluggerrc \
			application/x-drm-v2 \
			application/x-mplayer2 \
			application/x-ogg \
			application/x-quicktimeplayer \
			application/x-ms-wmv \
			application/x-nsv-vp3-mp3 \
			audio/ogg \
			audio/wav \
			audio/x-ms-wax \
			audio/x-ms-wma \
			audio/x-wav \
			video/anim \
			video/dl \
			video/fli \
			video/mp4 \
			video/mpeg \
			video/msvideo \
			video/quicktime \
			video/sgi-movie \
			video/x-anim \
			video/x-dl \
			video/x-fli \
			video/x-mpeg \
			video/x-mpeg2 \
			video/x-ms-asf \
			video/x-ms-asf-plugin \
			video/x-msvideo \
			video/x-ms-wm \
			video/x-ms-wmv \
			video/x-ms-wvx \
			image/x-macpaint \
			video/x-quicktime \
			video/x-sgi-movie
		touch /usr/lib64/mozilla/plugins/mozplugger.so
	fi
fi

mplayerplugin

/bin/sh
[ "$2" = "0" ] || exit 0
if [ -r /etc/mozpluggerrc ]; then
	if [ -x /usr/bin/enable_mozmimetypes ]; then
		/usr/bin/enable_mozmimetypes /etc/mozpluggerrc \
			application/x-drm-v2 \
			application/x-mplayer2 \
			application/x-ogg \
			application/x-quicktimeplayer \
			application/x-ms-wmv \
			application/x-nsv-vmp3-mp3 \
			audio/ogg \
			audio/wav \
			audio/x-ms-wax \
			audio/x-ms-wma \
			audio/x-wav \
			video/anim \
			video/dl \
			video/fli \
			video/mp4 \
			video/mpeg \
			video/msvideo \
			video/quicktime \
			video/sgi-movie \
			video/x-anim \
			video/x-dl \
			video/x-fli \
			video/x-mpeg \
			video/x-mpeg2 \
			video/x-ms-asf \
			video/x-ms-asf-plugin \
			video/x-msvideo \
			video/x-ms-wm \
			video/x-ms-wmv \
			video/x-ms-wvx \
			image/x-macpaint \
			video/x-quicktime \
			video/x-sgi-movie
		touch /usr/lib64/mozilla/plugins/mozplugger.so
	fi
fi

gv >= 3.6.1

/bin/sh
if grep -q  "gv -safer -quiet -antialias" /etc/mozpluggerrc; then
        perl -pi -e "s/gv -safer -quiet -antialias/gv --safer --quiet --antialias/g" /etc/mozpluggerrc
fi

gv < 3.6.1

/bin/sh
if grep "gv --safer --quiet --antialias" /etc/mozpluggerrc; then
        perl -pi -e "s/gv --safer --quiet --antialias/gv -safer -quiet -antialias/g" /etc/mozpluggerrc
fi