diff options
author | Andrej Zverev <az@FreeBSD.org> | 2014-02-10 19:33:05 +0000 |
---|---|---|
committer | Andrej Zverev <az@FreeBSD.org> | 2014-02-10 19:33:05 +0000 |
commit | b1a6dc354ff830fc4a630d8810081df56f20e90d (patch) | |
tree | 57e013d49de00570b69f1750bc76b37165ab23e7 /lang/perl5.14 | |
parent | 49bf77c0efa423f1e1668d1287137270e00e8db8 (diff) | |
download | ports-b1a6dc354ff830fc4a630d8810081df56f20e90d.tar.gz ports-b1a6dc354ff830fc4a630d8810081df56f20e90d.zip |
Notes
Diffstat (limited to 'lang/perl5.14')
-rw-r--r-- | lang/perl5.14/files/use.perl | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lang/perl5.14/files/use.perl b/lang/perl5.14/files/use.perl index 185814c44984..ad764abc4884 100644 --- a/lang/perl5.14/files/use.perl +++ b/lang/perl5.14/files/use.perl @@ -13,43 +13,30 @@ special_link_list="perl perl5" do_remove_links() { - echo "Removing stale symlinks from /usr/bin..." for binary in ${special_link_list} ; do if [ -L "/usr/bin/${binary}" ] ; then - echo " Removing /usr/bin/${binary}" /bin/rm -f "/usr/bin/${binary}" - else - echo " Skipping /usr/bin/${binary}" fi done bins=`/bin/ls /usr/bin/*perl*5.* ${PKG_PREFIX}/bin/*perl*5.* 2>/dev/null` for binary in ${bins} ; do if [ -L "${binary}" ] ; then - echo " Removing ${binary} installed by an older perl port" /bin/rm -f "${binary}" fi done - echo "Done." } do_create_links() { - echo "Creating various symlinks in /usr/bin..." for binary in ${special_link_list} ; do if [ -f "/usr/bin/${binary}" ] ; then - echo " Backing up /usr/bin/${binary} as /usr/bin/${binary}.freebsd" /bin/mv -f "/usr/bin/${binary}" "/usr/bin/${binary}.freebsd" fi if [ -e "/usr/bin/${binary}" ] ; then - echo " *** /usr/bin/${binary} is still there, which should not happen" elif [ -e "${PKG_PREFIX}/bin/perl${PERL_VERSION}" ] ; then - echo " Symlinking ${PKG_PREFIX}/bin/perl${PERL_VERSION} to /usr/bin/${binary}" /bin/ln -sf "${PKG_PREFIX}/bin/perl${PERL_VERSION}" "/usr/bin/${binary}" - else - echo " *** ${PKG_PREFIX}/bin/perl${PERL_VERSION} is not there, a symlink won't do any good" fi done - echo "Done." } do_post_install() @@ -63,15 +50,12 @@ do_post_install() do_remove_perl5_signature() { - echo -n "Removing ${PERL5_SIGNATURE}..." [ -f "${PERL5_SIGNATURE}" ] && /bin/rm "${PERL5_SIGNATURE}" - echo " Done." } do_cleanup_manpath() { if [ -f /etc/manpath.config ] ; then - echo -n "Cleaning up /etc/manpath.config..." /bin/cp -p /etc/manpath.config /etc/manpath.config.new /usr/bin/awk 's=0; /^#.*use.perl/ { s=1; mode=1 } @@ -81,27 +65,22 @@ do_cleanup_manpath() { 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 - echo " Done." fi } do_create_perl5_signature() { - echo -n "Creating ${PERL5_SIGNATURE}..." echo "${banner}" >>"${PERL5_SIGNATURE}" echo "# Do not modify PERL_VERSION here, instead use DEFAULT_VERSIONS= perl5=${PERL_VER}" >>"${PERL5_SIGNATURE}" echo "PERL_VERSION=${PERL_VERSION}" >>"${PERL5_SIGNATURE}" - echo " Done." } do_spam_manpath() { if [ -f /etc/manpath.config ] ; then - echo -n "Spamming /etc/manpath.config..." echo "${banner}" >>/etc/manpath.config echo "OPTIONAL_MANPATH ${PKG_PREFIX}/lib/perl5/${PERL_VER}/man" >>/etc/manpath.config echo "OPTIONAL_MANPATH ${PKG_PREFIX}/lib/perl5/${PERL_VER}/perl/man" >>/etc/manpath.config - echo " Done." fi } |