diff options
Diffstat (limited to 'lang/perl5.16/files/use.perl')
-rw-r--r-- | lang/perl5.16/files/use.perl | 47 |
1 files changed, 13 insertions, 34 deletions
diff --git a/lang/perl5.16/files/use.perl b/lang/perl5.16/files/use.perl index 55b7f51ed148..a75ac2641a65 100644 --- a/lang/perl5.16/files/use.perl +++ b/lang/perl5.16/files/use.perl @@ -17,41 +17,20 @@ else osreldate=${OSVERSION} fi -if [ "x$this" = "xuse.perl" ]; then - PKG_PREFIX="%%PREFIX%%" - if [ "$1" = "port" ] ; then - need_remove_links=yes - need_create_links=yes - need_cleanup_make_conf=yes - need_cleanup_manpath=yes - need_spam_make_conf=yes - need_spam_manpath=yes - elif [ "$1" = "system" ] ; then - need_remove_links=yes - need_cleanup_make_conf=yes - need_cleanup_manpath=yes - else - echo "Usage: - ${0##*/} port -> /usr/bin/perl is the perl5 port - ${0##*/} system -> /usr/bin/perl is the system perl" - exit 2; - fi +if [ "$2" = "POST-INSTALL" ] ; then + need_remove_links=yes + need_create_links=yes + need_cleanup_make_conf=yes + need_cleanup_manpath=yes + need_spam_make_conf=yes + need_spam_manpath=yes + need_post_install=yes +elif [ "$2" = "POST-DEINSTALL" ] ; then + need_remove_links=yes + need_cleanup_make_conf=yes + need_cleanup_manpath=yes else - if [ "$2" = "POST-INSTALL" ] ; then - need_remove_links=yes - need_create_links=yes - need_cleanup_make_conf=yes - need_cleanup_manpath=yes - need_spam_make_conf=yes - need_spam_manpath=yes - need_post_install=yes - elif [ "$2" = "POST-DEINSTALL" ] ; then - need_remove_links=yes - need_cleanup_make_conf=yes - need_cleanup_manpath=yes - else - exit 0; - fi + exit 0; fi special_link_list=" |