1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/audio/last.fm/files/pkg-install.in
2007-02-06 14:20:53 +00:00

29 lines
757 B
Bash

#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/audio/last.fm/files/pkg-install.in,v 1.1 2007-02-06 14:20:53 lofi Exp $
#
if [ "$2" != "POST-INSTALL" ]; then
exit 0
fi
lmozprefs=%%LOCALBASE%%/lib/linux-firefox/defaults/pref/firefox.js
blmozprefs=%%LOCALBASE%%/lib/linux-firefox/defaults/pref/firefox.js.bak
mozprefs=%%LOCALBASE%%/lib/firefox/defaults/pref/firefox.js
bmozprefs=%%LOCALBASE%%/lib/firefox/defaults/pref/firefox.js.bak
if [ -f $lmozprefs ]; then
cp $lmozprefs $blmozprefs
echo 'pref("network.protocol-handler.app.lastfm", "/usr/local/bin/last.fm");' >> $lmozprefs
fi
if [ -f $mozprefs ]; then
cp $mozprefs $bmozprefs
echo 'pref("network.protocol-handler.app.lastfm", "/usr/local/bin/last.fm");' >> $mozprefs
fi
exit 0