aboutsummaryrefslogtreecommitdiff
path: root/lang/perl5.16/files/use.perl.in
diff options
context:
space:
mode:
Diffstat (limited to 'lang/perl5.16/files/use.perl.in')
-rw-r--r--lang/perl5.16/files/use.perl.in32
1 files changed, 0 insertions, 32 deletions
diff --git a/lang/perl5.16/files/use.perl.in b/lang/perl5.16/files/use.perl.in
index a31e87c1195c..5936051e6a8a 100644
--- a/lang/perl5.16/files/use.perl.in
+++ b/lang/perl5.16/files/use.perl.in
@@ -5,7 +5,6 @@
LINK_USRBIN="%%LINK_USRBIN%%"
: ${OSVERSION:=`/sbin/sysctl -n kern.osreldate`};
PERL_VERSION="%%PERL_VERSION%%"
-banner="# added by use.perl $(/bin/date +'%F %T')"
special_link_list="perl perl5"
do_remove_links()
@@ -41,44 +40,13 @@ do_create_links()
done
}
-do_cleanup_manpath()
-{
- if [ -f /etc/manpath.config ] ; then
- /bin/cp -p /etc/manpath.config /etc/manpath.config.new
- /usr/bin/awk 's=0;
- /^#.*use.perl/ { s=1; mode=1 }
- /^#/ { s=1; if (mode != 1) { mode=0 } }
- /^OPTIONAL_MANPATH.*perl5/ { s=1; if (mode == 1) { mode=2 } }
- /^$/ { s=1; if (mode != 2) { mode = 0 } }
- { if (s != 1) { mode = 0 } if (mode == 0) print }' /etc/manpath.config >/etc/manpath.config.new
- /bin/mv /etc/manpath.config /etc/manpath.config.bak
- /bin/mv /etc/manpath.config.new /etc/manpath.config
- /bin/rm /etc/manpath.config.bak
- fi
-}
-
-do_spam_manpath()
-{
- if [ -f /etc/manpath.config ] ; then
- echo "${banner}" >>/etc/manpath.config
- echo "OPTIONAL_MANPATH ${PKG_PREFIX}/%%SITEMAN3PREFIX%%/man" >>/etc/manpath.config
- echo "OPTIONAL_MANPATH ${PKG_PREFIX}/%%MAN3PREFIX%%/man" >>/etc/manpath.config
- fi
-}
-
-
if [ "$2" = "POST-INSTALL" ] ; then
if [ ${LINK_USRBIN} = yes ] ; then
do_remove_links
do_create_links
fi
- if [ "${OSVERSION}" -lt 900022 ] ; then
- do_cleanup_manpath
- do_spam_manpath
- fi
elif [ "$2" = "POST-DEINSTALL" ] ; then
[ ${LINK_USRBIN} = yes ] && do_remove_links
- [ "${OSVERSION}" -lt 900022 ] && do_cleanup_manpath
fi
exit 0