summaryrefslogtreecommitdiffstats
path: root/abs/core/cpio/cpio.install
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-24 02:51:27 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-24 02:51:27 (GMT)
commit934a530817b4a444e84d68a7679b2c94ac059c77 (patch)
tree43dabbf2a0178e8ad6ea9e869212afdd273bb87d /abs/core/cpio/cpio.install
parentc2d1357248bfea67ced38063ea92e938249370b5 (diff)
downloadlinhes_pkgbuild-934a530817b4a444e84d68a7679b2c94ac059c77.zip
linhes_pkgbuild-934a530817b4a444e84d68a7679b2c94ac059c77.tar.gz
linhes_pkgbuild-934a530817b4a444e84d68a7679b2c94ac059c77.tar.bz2
cpio: upgrade
Diffstat (limited to 'abs/core/cpio/cpio.install')
-rw-r--r--abs/core/cpio/cpio.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/abs/core/cpio/cpio.install b/abs/core/cpio/cpio.install
new file mode 100644
index 0000000..e5502ca
--- /dev/null
+++ b/abs/core/cpio/cpio.install
@@ -0,0 +1,21 @@
+infodir=/usr/share/info
+filelist=(cpio.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ usr/bin/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
+ usr/bin/install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+