diff options
author | garga <garga@FreeBSD.org> | 2010-12-06 17:56:58 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2010-12-06 17:56:58 +0800 |
commit | df7ef37bb21f0541e137fc5703ee27eb22151213 (patch) | |
tree | b4eeb0f3a418215b5c26d5b9cef1622a506958f4 /lang | |
parent | cc6744f76eebd37a7f232d4da501ab098ee1bfd7 (diff) | |
download | freebsd-ports-gnome-df7ef37bb21f0541e137fc5703ee27eb22151213.tar.gz freebsd-ports-gnome-df7ef37bb21f0541e137fc5703ee27eb22151213.tar.zst freebsd-ports-gnome-df7ef37bb21f0541e137fc5703ee27eb22151213.zip |
Do not touch /etc/manpath.config on -CURRENT after man.d/perl.conf is used
instead
PR: ports/151914
Submitted by: garga@
Approved by: skv@ (maintainer)
Diffstat (limited to 'lang')
-rw-r--r-- | lang/perl5.10/files/use.perl | 10 | ||||
-rw-r--r-- | lang/perl5.12/files/use.perl | 10 | ||||
-rw-r--r-- | lang/perl5.14/files/use.perl | 10 | ||||
-rw-r--r-- | lang/perl5.16/files/use.perl | 10 | ||||
-rw-r--r-- | lang/perl5.8/files/use.perl | 20 |
5 files changed, 42 insertions, 18 deletions
diff --git a/lang/perl5.10/files/use.perl b/lang/perl5.10/files/use.perl index d215b0c2ae4a..23a5ae48a62e 100644 --- a/lang/perl5.10/files/use.perl +++ b/lang/perl5.10/files/use.perl @@ -21,14 +21,18 @@ if [ "$2" = "POST-INSTALL" ] ; then need_remove_links=%%LINK_USRBIN%% need_create_links=%%LINK_USRBIN%% need_cleanup_make_conf=yes - need_cleanup_manpath=yes need_spam_make_conf=yes - need_spam_manpath=yes need_post_install=yes + if [ "${osreldate}" -lt 900022 ]; then + need_cleanup_manpath=yes + need_spam_manpath=yes + fi elif [ "$2" = "POST-DEINSTALL" ] ; then need_remove_links=%%LINK_USRBIN%% need_cleanup_make_conf=yes - need_cleanup_manpath=yes + if [ "${osreldate}" -lt 900022 ]; then + need_cleanup_manpath=yes + fi else exit 0; fi diff --git a/lang/perl5.12/files/use.perl b/lang/perl5.12/files/use.perl index 890d8f4f31d0..f9b8a5caa4bc 100644 --- a/lang/perl5.12/files/use.perl +++ b/lang/perl5.12/files/use.perl @@ -21,14 +21,18 @@ if [ "$2" = "POST-INSTALL" ] ; then need_remove_links=%%LINK_USRBIN%% need_create_links=%%LINK_USRBIN%% need_cleanup_make_conf=yes - need_cleanup_manpath=yes need_spam_make_conf=yes - need_spam_manpath=yes need_post_install=yes + if [ "${osreldate}" -lt 900022 ]; then + need_cleanup_manpath=yes + need_spam_manpath=yes + fi elif [ "$2" = "POST-DEINSTALL" ] ; then need_remove_links=%%LINK_USRBIN%% need_cleanup_make_conf=yes - need_cleanup_manpath=yes + if [ "${osreldate}" -lt 900022 ]; then + need_cleanup_manpath=yes + fi else exit 0; fi diff --git a/lang/perl5.14/files/use.perl b/lang/perl5.14/files/use.perl index 890d8f4f31d0..f9b8a5caa4bc 100644 --- a/lang/perl5.14/files/use.perl +++ b/lang/perl5.14/files/use.perl @@ -21,14 +21,18 @@ if [ "$2" = "POST-INSTALL" ] ; then need_remove_links=%%LINK_USRBIN%% need_create_links=%%LINK_USRBIN%% need_cleanup_make_conf=yes - need_cleanup_manpath=yes need_spam_make_conf=yes - need_spam_manpath=yes need_post_install=yes + if [ "${osreldate}" -lt 900022 ]; then + need_cleanup_manpath=yes + need_spam_manpath=yes + fi elif [ "$2" = "POST-DEINSTALL" ] ; then need_remove_links=%%LINK_USRBIN%% need_cleanup_make_conf=yes - need_cleanup_manpath=yes + if [ "${osreldate}" -lt 900022 ]; then + need_cleanup_manpath=yes + fi else exit 0; fi diff --git a/lang/perl5.16/files/use.perl b/lang/perl5.16/files/use.perl index 890d8f4f31d0..f9b8a5caa4bc 100644 --- a/lang/perl5.16/files/use.perl +++ b/lang/perl5.16/files/use.perl @@ -21,14 +21,18 @@ if [ "$2" = "POST-INSTALL" ] ; then need_remove_links=%%LINK_USRBIN%% need_create_links=%%LINK_USRBIN%% need_cleanup_make_conf=yes - need_cleanup_manpath=yes need_spam_make_conf=yes - need_spam_manpath=yes need_post_install=yes + if [ "${osreldate}" -lt 900022 ]; then + need_cleanup_manpath=yes + need_spam_manpath=yes + fi elif [ "$2" = "POST-DEINSTALL" ] ; then need_remove_links=%%LINK_USRBIN%% need_cleanup_make_conf=yes - need_cleanup_manpath=yes + if [ "${osreldate}" -lt 900022 ]; then + need_cleanup_manpath=yes + fi else exit 0; fi diff --git a/lang/perl5.8/files/use.perl b/lang/perl5.8/files/use.perl index ed6dd20654a8..73d64c2f2bb2 100644 --- a/lang/perl5.8/files/use.perl +++ b/lang/perl5.8/files/use.perl @@ -23,13 +23,17 @@ if [ "x$this" = "xuse.perl" ]; then need_remove_links=%%LINK_USRBIN%% need_create_links=%%LINK_USRBIN%% need_cleanup_make_conf=yes - need_cleanup_manpath=yes need_spam_make_conf=yes - need_spam_manpath=yes + if [ "${osreldate}" -lt 900022 ]; then + need_cleanup_manpath=yes + need_spam_manpath=yes + fi elif [ "$1" = "system" ] ; then need_remove_links=%%LINK_USRBIN%% need_cleanup_make_conf=yes - need_cleanup_manpath=yes + if [ "${osreldate}" -lt 900022 ]; then + need_cleanup_manpath=yes + fi else echo "Usage: ${0##*/} port -> /usr/bin/perl is the perl5 port @@ -41,14 +45,18 @@ else 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 + if [ "${osreldate}" -lt 900022 ]; then + need_cleanup_manpath=yes + need_spam_manpath=yes + fi elif [ "$2" = "POST-DEINSTALL" ] ; then need_remove_links=yes need_cleanup_make_conf=yes - need_cleanup_manpath=yes + if [ "${osreldate}" -lt 900022 ]; then + need_cleanup_manpath=yes + fi else exit 0; fi |