wok rev 13945
gpm: add post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 29 11:17:09 2013 +0100 (2013-01-29) |
parents | 6d1e49695497 |
children | 5ea9ca3cd82e |
files | gpm/receipt |
line diff
1.1 --- a/gpm/receipt Tue Jan 29 09:43:35 2013 +0100 1.2 +++ b/gpm/receipt Tue Jan 29 11:17:09 2013 +0100 1.3 @@ -37,3 +37,14 @@ 1.4 cp -a $install/usr/lib/*.so* $fs/usr/lib 1.5 cp -a $stuff/* $fs 1.6 } 1.7 + 1.8 +# Pre and post install commands for Tazpkg. 1.9 +pre_remove() 1.10 +{ 1.11 + [ -n "$1" ] || /etc/init.d/gpm stop 1.12 +} 1.13 + 1.14 +post_install() 1.15 +{ 1.16 + [ -n "$1" ] || /etc/init.d/gpm start 1.17 +}