Changeset View
Changeset View
Standalone View
Standalone View
lang/perl5.18/files/use.perl.in
#!/bin/sh | #!/bin/sh | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
LINK_USRBIN="%%LINK_USRBIN%%" | LINK_USRBIN="%%LINK_USRBIN%%" | ||||
: ${OSVERSION:=`/sbin/sysctl -n kern.osreldate`}; | : ${OSVERSION:=`/sbin/sysctl -n kern.osreldate`}; | ||||
PERL_VERSION="%%PERL_VERSION%%" | PERL_VERSION="%%PERL_VERSION%%" | ||||
PERL_VER="%%PERL_VER%%" | |||||
banner="# added by use.perl $(/bin/date +'%F %T')" | banner="# added by use.perl $(/bin/date +'%F %T')" | ||||
special_link_list="perl perl5" | special_link_list="perl perl5" | ||||
do_remove_links() | do_remove_links() | ||||
{ | { | ||||
for binary in ${special_link_list} ; do | for binary in ${special_link_list} ; do | ||||
if [ -L "/usr/bin/${binary}" ] ; then | if [ -L "/usr/bin/${binary}" ] ; then | ||||
/bin/rm -f "/usr/bin/${binary}" | /bin/rm -f "/usr/bin/${binary}" | ||||
Show All 40 Lines | if [ -f /etc/manpath.config ] ; then | ||||
/bin/rm /etc/manpath.config.bak | /bin/rm /etc/manpath.config.bak | ||||
fi | fi | ||||
} | } | ||||
do_spam_manpath() | do_spam_manpath() | ||||
{ | { | ||||
if [ -f /etc/manpath.config ] ; then | if [ -f /etc/manpath.config ] ; then | ||||
echo "${banner}" >>/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}/%%SITEMAN3PREFIX%%/man" >>/etc/manpath.config | ||||
echo "OPTIONAL_MANPATH ${PKG_PREFIX}/lib/perl5/${PERL_VER}/perl/man" >>/etc/manpath.config | echo "OPTIONAL_MANPATH ${PKG_PREFIX}/%%MAN3PREFIX%%/man" >>/etc/manpath.config | ||||
fi | fi | ||||
} | } | ||||
if [ "$2" = "POST-INSTALL" ] ; then | if [ "$2" = "POST-INSTALL" ] ; then | ||||
if [ ${LINK_USRBIN} = yes ] ; then | if [ ${LINK_USRBIN} = yes ] ; then | ||||
do_remove_links | do_remove_links | ||||
do_create_links | do_create_links | ||||
Show All 11 Lines |