diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-11-04 22:47:05 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-11-04 22:47:58 -0300 |
commit | 1a23ccf788ba484d03ee64fddea4472eddb96ffa (patch) | |
tree | df03422863876ec2711e63c71982fada13332403 /pcr/tinc-pre/tinc.install | |
parent | 62fca50d732e0850c9c86cae090c8445ca1b0b8f (diff) | |
download | abslibre-1a23ccf788ba484d03ee64fddea4472eddb96ffa.tar.gz abslibre-1a23ccf788ba484d03ee64fddea4472eddb96ffa.tar.bz2 abslibre-1a23ccf788ba484d03ee64fddea4472eddb96ffa.zip |
tinc-pre: rebuild pkg
Diffstat (limited to 'pcr/tinc-pre/tinc.install')
-rw-r--r-- | pcr/tinc-pre/tinc.install | 20 |
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 +} |