Improved installation task for FreeBSD.

Updated comments for FreeBSD displayed by the installer.
This commit is contained in:
Junichi Satoh 2020-07-27 13:52:06 +09:00
parent f0724446a2
commit b3f724a193
1 changed files with 22 additions and 11 deletions

View File

@ -229,21 +229,15 @@ install () {
echo " " echo " "
echo "For FreeBSD do : " echo "For FreeBSD do : "
echo " " echo " "
echo " Install perl5.8 or later from ports with thread enabled." echo " Install following tools from ports or packages."
echo " (perl-5.8.x.pkg can not be used.)"
echo " # cd /usr/ports/lang/perl5.8"
echo " # make config"
echo " -> Enable THREADS."
echo " # make"
echo " # make install"
echo " "
echo " Install following tools from ports. Don't use packages."
echo " Recommended: p5-DBI p5-NetAddr-IP p5-XML-Simple p5-XML-Twig p5-HTML-Parser p5-DBD-mysql p5-Socket6 p5-IO-Socket-INET6 p5-JSON" echo " Recommended: p5-DBI p5-NetAddr-IP p5-XML-Simple p5-XML-Twig p5-HTML-Parser p5-DBD-mysql p5-Socket6 p5-IO-Socket-INET6 p5-JSON"
echo " Optional: nmap xprobe" echo " Optional: nmap xprobe"
echo " " echo " "
echo "To get it from source through CPAN do" echo " And install Geo::IP manually."
echo " " echo " "
echo " $ cpan Time::Local DBI Socket6 XML::Simple XML::Twig IO::Socket Time::HiRes NetAddr::IP HTML::Entities IO::Socket::INET6 JSON" echo "To get them from source through CPAN do"
echo " "
echo " $ cpan Time::Local DBI Socket6 XML::Simple XML::Twig IO::Socket Time::HiRes NetAddr::IP HTML::Entities IO::Socket::INET6 JSON Geo::IP"
echo " " echo " "
rm output rm output
exit 1 exit 1
@ -392,6 +386,23 @@ install () {
mkdir -p $DESTDIR$PANDORA_HOME 2> /dev/null mkdir -p $DESTDIR$PANDORA_HOME 2> /dev/null
cp -R util $DESTDIR$PANDORA_HOME cp -R util $DESTDIR$PANDORA_HOME
find $DESTDIR$PANDORA_HOME -type l -delete find $DESTDIR$PANDORA_HOME -type l -delete
case $DISTRO in
FreeBSD)
# adjust shebang
for pl_script in `find $DESTDIR$PANDORA_HOME/util -name "*.pl"`
do
cat $pl_script | sed 's/^#!\/usr\/bin\/perl/#!\/usr\/local\/bin\/perl/g' > ${pl_script}.new
mv ${pl_script}.new $pl_script
chmod a+x $pl_script
done
for sh_script in `find $DESTDIR$PANDORA_HOME/util -name "*.sh"`
do
cat $sh_script | sed 's/^#!\/bin\/bash/#!\/usr\/local\/bin\/bash/g' > ${sh_script}.new
mv ${sh_script}.new $sh_script
chmod a+x $sh_script
done
;;
esac
# install cron job # install cron job
if [ -d /etc/cron.hourly ] if [ -d /etc/cron.hourly ]