cd
test -f installed/kaffeine-0.6.tar.bz2 &&
mv installed/kaffeine-0.6.tar.bz2 .
test ! -f kaffeine-0.6.tar.bz2 &&
wget http://download.sf.net/kaffeine/kaffeine-0.6.tar.bz2
cd /usr/local/src
find -type d -maxdepth 1 -name "kaffeine-*" -exec rm -r {} \;
tar xjvf ~/kaffeine-0.6.tar.bz2
cd kaffeine-0.6
chown -R root:root .
# The prefix you use here should match where KDE is installed.
# If your distribution doesn't use /usr/man (many use /usr/share/man) like
# Slackware does, change that below.
# If you use XFree86 and not X.org's X, leave off --with-xorg below.
./configure --prefix=/opt/kde --mandir=/usr/man --with-xorg
make
make install
cd
mkdir -p -m 0700 installed
rm -f installed/kaffeine-*.tar.*
mv kaffeine-0.6.tar.bz2 installed/
# /opt/kde/share/icons/hicolor/48x48/apps/kaffeine.png can be used as a
# desktop icon
# kaffeine-mozilla 0.2
# ====================
cd
test -f installed/kaffeine-mozilla-0.2.tar.bz2 &&
mv installed/kaffeine-mozilla-0.2.tar.bz2 .
test ! -f kaffeine-mozilla-0.2.tar.bz2 &&
wget http://download.sf.net/kaffeine/kaffeine-mozilla-0.2.tar.bz2
cd /usr/local/src
find -type d -maxdepth 1 -name "kaffeine-mozilla-*" -exec rm -r {} \;
tar xjvf ~/kaffeine-mozilla-0.2.tar.bz2
cd kaffeine-mozilla-0.2
chown -R root:root .
# This plugin used to be installed as part of the regular kaffeine package.
# If you have a /usr/local/firefox/plugins/kaffeineplugin.so symlink, remove
# it before you proceed below.
test -L /usr/local/firefox/plugins/kaffeineplugin.so &&
rm /usr/local/firefox/plugins/kaffeineplugin.so
# If you want to install it for a browser other than Firefox (Mozilla,
# Netscape, etc.) replace /usr/local/firefox with the path to that browser.
# You can also specify ~/.mozilla, but I haven't tried that - that of course
# would only install the plugin for the user you're logged in as.
./configure --prefix=/usr/local/firefox
make
make install
cd
mkdir -p -m 0700 installed
rm -f installed/kaffeine-mozilla-*.tar.*
mv kaffeine-mozilla-0.2.tar.bz2 installed/
# If you run other browsers that will work with the plugin, you may want to
# copy or symlink the /usr/local/firefox/plugins/kaffeineplugin.* files into
# your other browser's plugin directory. You can also run 'make distclean',
# and then run configure, make, make install for the other browser(s). If
# you run this below, it will copy the plugins to some common locations for
# firefox/netscape/mozilla if they exist.
test -d /usr/lib/mozilla-?.*/plugins &&
cp /usr/local/firefox/plugins/kaffeineplugin.* /usr/lib/mozilla-?.*/plugins/
test -d /usr/lib/netscape/plugins &&
cp /usr/local/firefox/plugins/kaffeineplugin.* /usr/lib/netscape/plugins/
test -d /usr/local/lib/mozilla-?.*/plugins &&
cp /usr/local/firefox/plugins/kaffeineplugin.* \
/usr/local/lib/mozilla-?.*/plugins/
test -d /usr/local/mozilla/plugins &&
cp /usr/local/firefox/plugins/kaffeineplugin.* /usr/local/mozilla/plugins/
test -d /usr/local/netscape/plugins &&
cp /usr/local/firefox/plugins/kaffeineplugin.* /usr/local/netscape/plugins/