summaryrefslogtreecommitdiff
path: root/pcr/mailcrypt/mailcrypt.install
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-05-21 19:36:16 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-05-21 19:36:16 -0500
commitc04637262810dc74f509a28162ff2c6efce3c887 (patch)
tree201e710cde730c18ca21041d49deefe99d55ad02 /pcr/mailcrypt/mailcrypt.install
parent3b7a1f44a8546f13f121e2a02522a2e35f785ba2 (diff)
mailcrypt: add new package to [pcr]
Diffstat (limited to 'pcr/mailcrypt/mailcrypt.install')
-rw-r--r--pcr/mailcrypt/mailcrypt.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/mailcrypt/mailcrypt.install b/pcr/mailcrypt/mailcrypt.install
new file mode 100644
index 000000000..f3da9efcb
--- /dev/null
+++ b/pcr/mailcrypt/mailcrypt.install
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(mailcrypt.info.gz)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}