summaryrefslogtreecommitdiff
path: root/community/plan9port/plan9.install
blob: 63b8dd0da058dc10b3f67197a39a45da5847718d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
pre_install() {
  /bin/true
}

post_install() {
  echo "==> Decompressing plan9 man pages"
  for i in `find /opt/plan9/man -type f`; do
    if [ ${i##*.} = "gz" ]; then
#      echo "    ${i%%.*}..."
      gunzip $i
    fi
  done

  echo ""
  echo "==> In order to use Plan9 specific apps, run them"
  echo "    as arguments to the '9' script, i.e. '9 date'"
  echo "==> Please log off or 'source /etc/profile.d/plan9.sh'"
  echo "==> Run '9 man 1 intro | less' to begin"
  source /etc/profile.d/plan9.sh
  /bin/true
}

pre_upgrade() {
  post_remove
  /bin/true
}

post_upgrade() {
  post_install
  /bin/true
}

pre_remove() {
  /bin/true
}

post_remove() {
  #we had to unpack them so they won't get removed....
  rm -rf /opt/plan9/man
  /bin/true
}