wok-4.x rev 5912
foomatic-db-engine: move perl files in the right location
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jul 26 22:45:46 2010 +0200 (2010-07-26) |
parents | 37f3adfaa485 |
children | 48b516d81cd5 |
files | foomatic-db-engine/receipt |
line diff
1.1 --- a/foomatic-db-engine/receipt Mon Jul 26 21:51:41 2010 +0200 1.2 +++ b/foomatic-db-engine/receipt Mon Jul 26 22:45:46 2010 +0200 1.3 @@ -42,3 +42,17 @@ 1.4 1.5 } 1.6 1.7 +pre_install() 1.8 +{ 1.9 + rm -f $1/usr/lib/perl5/site_perl/current 1.10 +} 1.11 + 1.12 +post_install() 1.13 +{ 1.14 + # Move file to the right place 1.15 + cp -a $1/usr/lib/perl5/site_perl/current/* $1/usr/lib/perl5/site_perl/*.* 1.16 + rm -rf $1/usr/lib/perl5/site_perl/current 1.17 + 1.18 + # Keep path the remove the package 1.19 + ( cd /usr/lib/perl5/site_perl ; ln -s * current ) 1.20 +}