updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / jre6 / jre.install
blob111da3c2aef51501719ae918496ad278a785829c
1 post_install() {
2    echo "The jre package is licensed software."
3         echo "You MUST read and agree to the license stored in"
4         echo "/opt/java/jre/LICENSE before using it."
5         if [ -f /etc/mailcap ] ; then
6                 sed -e '/application\/x-java-jnlp-file/d' -i /etc/mailcap
7         fi
8         echo 'application/x-java-jnlp-file;/opt/java/jre/bin/javaws %s' >>/etc/mailcap
10   echo 'Please relogin to include jre in your PATH.'
13 post_remove() {
14         mailcap=$(grep -v 'application/x-java-jnlp-file' /etc/mailcap)
15         if [ "$mailcap" != "" ] ; then
16                 sed -e '/application\/x-java-jnlp-file/d' -i /etc/mailcap
17         else
18                 rm /etc/mailcap
19         fi