wok-undigest rev 1106
zfs: add EXTRAVERSION
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 03 14:20:06 2014 +0000 (2014-02-03) |
parents | 6629b3eabf2d |
children | cbebf3bb6bb6 |
files | zfs/receipt |
line diff
1.1 --- a/zfs/receipt Mon Feb 03 12:16:06 2014 +0000 1.2 +++ b/zfs/receipt Mon Feb 03 14:20:06 2014 +0000 1.3 @@ -2,6 +2,7 @@ 1.4 1.5 PACKAGE="zfs" 1.6 VERSION="0.6.2" 1.7 +EXTRAVERSION="_${kvers}" 1.8 CATEGORY="system-tools" 1.9 SHORT_DESC="The native Linux kernel port of the ZFS filesystem." 1.10 MAINTAINER="pascal.bellard@slitaz.org" 1.11 @@ -39,3 +40,16 @@ 1.12 cp -a $install/sbin $fs 1.13 cp -a $install/etc $fs 1.14 } 1.15 + 1.16 +# Post install/remove commands for Tazpkg. 1.17 +post_install() 1.18 +{ 1.19 + echo "Processing post-install commands..." 1.20 + chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz 1.21 +} 1.22 + 1.23 +post_remove() 1.24 +{ 1.25 + echo "Processing post-remove commands..." 1.26 + chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz 1.27 +}