summaryrefslogtreecommitdiff
path: root/community/plan9port/plan9.install
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/plan9port/plan9.install
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/plan9port/plan9.install')
-rw-r--r--community/plan9port/plan9.install42
1 files changed, 42 insertions, 0 deletions
diff --git a/community/plan9port/plan9.install b/community/plan9port/plan9.install
new file mode 100644
index 000000000..23d047c8c
--- /dev/null
+++ b/community/plan9port/plan9.install
@@ -0,0 +1,42 @@
+pre_install() {
+ /bin/true
+}
+
+post_install() {
+ echo "==> Decompressing man 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
+}
+