summaryrefslogtreecommitdiff
path: root/pcr/tinc-pre/tinc.install
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-11-04 22:47:05 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-11-04 22:47:58 -0300
commit1a23ccf788ba484d03ee64fddea4472eddb96ffa (patch)
treedf03422863876ec2711e63c71982fada13332403 /pcr/tinc-pre/tinc.install
parent62fca50d732e0850c9c86cae090c8445ca1b0b8f (diff)
tinc-pre: rebuild pkg
Diffstat (limited to 'pcr/tinc-pre/tinc.install')
-rw-r--r--pcr/tinc-pre/tinc.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/tinc-pre/tinc.install b/pcr/tinc-pre/tinc.install
new file mode 100644
index 000000000..1b804fd8d
--- /dev/null
+++ b/pcr/tinc-pre/tinc.install
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(tinc.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
+}