summaryrefslogtreecommitdiff
path: root/testing/perl/perl.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-20 23:14:32 +0000
committerroot <root@rshg054.dnsready.net>2011-08-20 23:14:32 +0000
commit839141249778baa4dba0f0511c52b5eded3cd934 (patch)
tree6c3df2941048911b4126ea70a46816110bddf514 /testing/perl/perl.install
parentc6a4d3790fc33558d9af322dac15d2bd6d34ac0b (diff)
Sat Aug 20 23:14:32 UTC 2011
Diffstat (limited to 'testing/perl/perl.install')
-rw-r--r--testing/perl/perl.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/perl/perl.install b/testing/perl/perl.install
new file mode 100644
index 000000000..3f7d58f23
--- /dev/null
+++ b/testing/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.'
+}