diff options
author | root <root@rshg047.dnsready.net> | 2011-05-23 22:47:30 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-05-23 22:47:30 +0000 |
commit | 87e20a64534e8f58ca4a4f84000b629e48569a98 (patch) | |
tree | 8c4b498a38d72459c7bc88bc02719b4849159d0f /staging/perl/perl.install | |
parent | 3837a11a2a471b9db222d8eb6ed7d2fb9d1778c6 (diff) |
Mon May 23 22:47:30 UTC 2011
Diffstat (limited to 'staging/perl/perl.install')
-rw-r--r-- | staging/perl/perl.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/staging/perl/perl.install b/staging/perl/perl.install new file mode 100644 index 000000000..3f7d58f23 --- /dev/null +++ b/staging/perl/perl.install @@ -0,0 +1,18 @@ +# arg 1: the new package version +post_install() { + for ver in 5.8.{0,1,2,3,4,5,6,7,8}; do + [ -h usr/lib/perl5/$ver ] && rm usr/lib/perl5/$ver + [ -h usr/lib/perl5/site_perl/$ver ] && rm usr/lib/perl5/site_perl/$ver + [ -h usr/bin/perl$ver ] && rm usr/bin/perl$ver + done + return 0 +} + +post_upgrade() { + echo '- The directories /usr/lib/perl5/current, /usr/lib/perl5/site_perl/current,' + echo ' /usr/lib/perl5/site_perl/5.10.1, and /usr/share/perl5/site_perl/5.10.1' + echo ' have been removed from @INC.' + + echo '- The script/binary directories are now /usr/bin/*_perl instead of' + echo ' /usr/lib/perl5/*_perl/bin which will be eventually removed.' +} |