From 1a23ccf788ba484d03ee64fddea4472eddb96ffa Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Wed, 4 Nov 2015 22:47:05 -0300 Subject: tinc-pre: rebuild pkg --- pcr/tinc-pre/tinc.install | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pcr/tinc-pre/tinc.install (limited to 'pcr/tinc-pre/tinc.install') 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 +} -- cgit v1.2.3