diff options
author | az <az@FreeBSD.org> | 2014-02-11 18:45:16 +0800 |
---|---|---|
committer | az <az@FreeBSD.org> | 2014-02-11 18:45:16 +0800 |
commit | ad383249034bd1e729d1a9f167ea35e6740fdb6d (patch) | |
tree | 07f9bc6f07829211838796ded0fc0eb77b734219 /lang/perl5.14 | |
parent | f48bd3a52013d5222d38e808329c2ab26dc2e446 (diff) | |
download | freebsd-ports-gnome-ad383249034bd1e729d1a9f167ea35e6740fdb6d.tar.gz freebsd-ports-gnome-ad383249034bd1e729d1a9f167ea35e6740fdb6d.tar.zst freebsd-ports-gnome-ad383249034bd1e729d1a9f167ea35e6740fdb6d.zip |
Partial restore r343675 (leave some warnings/errors output)
Suggested by: ak@
Reviewed by: ak@
Diffstat (limited to 'lang/perl5.14')
-rw-r--r-- | lang/perl5.14/files/use.perl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lang/perl5.14/files/use.perl b/lang/perl5.14/files/use.perl index ad764abc4884..3f1f15724d8f 100644 --- a/lang/perl5.14/files/use.perl +++ b/lang/perl5.14/files/use.perl @@ -21,6 +21,7 @@ do_remove_links() 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 "use.perl: Removing ${binary} installed by an older perl port" /bin/rm -f "${binary}" fi done @@ -30,11 +31,15 @@ do_create_links() { for binary in ${special_link_list} ; do if [ -f "/usr/bin/${binary}" ] ; then + echo "use.perl: 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 "use.perl: /usr/bin/${binary} is still there, which should not happen" elif [ -e "${PKG_PREFIX}/bin/perl${PERL_VERSION}" ] ; then /bin/ln -sf "${PKG_PREFIX}/bin/perl${PERL_VERSION}" "/usr/bin/${binary}" + else + echo "use.perl: ${PKG_PREFIX}/bin/perl${PERL_VERSION} is not there, a symlink won't do any good" fi done } |