# HG changeset patch # User Pascal Bellard # Date 1280177146 -7200 # Node ID bf4ee34e64aff3fe9c17d6cbac10c43b103a2224 # Parent 37f3adfaa48587b660e653707ab029a697e37e2c foomatic-db-engine: move perl files in the right location diff -r 37f3adfaa485 -r bf4ee34e64af foomatic-db-engine/receipt --- a/foomatic-db-engine/receipt Mon Jul 26 21:51:41 2010 +0200 +++ b/foomatic-db-engine/receipt Mon Jul 26 22:45:46 2010 +0200 @@ -42,3 +42,17 @@ } +pre_install() +{ + rm -f $1/usr/lib/perl5/site_perl/current +} + +post_install() +{ + # Move file to the right place + cp -a $1/usr/lib/perl5/site_perl/current/* $1/usr/lib/perl5/site_perl/*.* + rm -rf $1/usr/lib/perl5/site_perl/current + + # Keep path the remove the package + ( cd /usr/lib/perl5/site_perl ; ln -s * current ) +}