# HG changeset patch # User Pascal Bellard # Date 1233490980 0 # Node ID 14a7a851672ff8ab5326f52f7650cea787deee25 # Parent 2093d8f8343915e49f4e26c38ce332c54257b0a6 ntfs-3g: update /etc/filesystems diff -r 2093d8f83439 -r 14a7a851672f ntfs-3g/receipt --- a/ntfs-3g/receipt Sun Feb 01 10:41:34 2009 +0000 +++ b/ntfs-3g/receipt Sun Feb 01 12:23:00 2009 +0000 @@ -30,3 +30,15 @@ cp -a $_pkg/usr/lib/*.so* $fs/usr/lib cp -a $_pkg/usr/bin $fs/usr } + +# Pre remove and post install commands for Tazpkg. +pre_remove() +{ + sed -i '/ntfs-3g/d' $1/etc/filesystems +} + +post_install() +{ + grep -qs ntfs-3g $1/etc/filesystems || \ + echo "ntfs-3g" >> $1/etc/filesystems +}