updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / jre5 / jre.install
blob41e698fd2ebc89545b3d6d68e50cc94a6aae3d32
1 post_upgrade() {
2         post_install $1
5 post_install() {
6    echo "The jre package is licensed software."
7         echo "You MUST read and agree to the license stored in"
8         echo "/opt/java/jre/LICENSE before using it."
9         if [ -f /etc/mailcap ] ; then
10                 sed -e '/application\/x-java-jnlp-file/d' -i /etc/mailcap
11         fi
12         echo 'application/x-java-jnlp-file;/opt/java/jre/bin/javaws %s' >>/etc/mailcap
15 post_remove() {
16         mailcap=$(grep -v 'application/x-java-jnlp-file' /etc/mailcap)
17         if [ "$mailcap" != "" ] ; then
18                 sed -e '/application\/x-java-jnlp-file/d' -i /etc/mailcap
19         else
20                 rm /etc/mailcap
21         fi