Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 2002 14:59:01 +0900
From:      Shoichi Sakane <sakane@kame.net>
To:        freebsd-ports@freebsd.org
Cc:        sakane@kame.net
Subject:   totd-1.3_1.tgz
Message-ID:  <20020522145901X.sakane@kame.net>

next in thread | raw e-mail | index | archive | help
+INATALL script in totd-1.3_1.tgz seems incorrect.
i think the sample configuration file should be installed
into ${PREFIX} directory.  and the script always fails because
it attempts to copy the sample script into /usr/local/share/totd
from share/totd/totd.conf.sample, but the sample file doesn't exist,
actually the file is in etc/totd.conf.sample.

if my opinion is correct, here is the patch for +INSTALL.

====

*** +INSTALL.old	Wed May 15 07:44:55 2002
--- +INSTALL	Wed May 22 14:40:32 2002
***************
*** 11,25 ****
  do_install_configuration()
  {
    echo -n "Let's see if there is already a configuration file... "
!   if [ -f /etc/totd.conf ]; then
      echo "yes"
      echo "Please compare your existing configuration with"
!     echo "${PREFIX}/share/totd/totd.conf.sample"
    else
      echo "no"
      echo -n "Copying sample configuration file... "
!     install -o root -g wheel -m 644 ${PREFIX}/share/totd/totd.conf.sample \
!       /etc/totd.conf
      echo "ok"
      echo "Please review new configuration /etc/totd.conf"
    fi
--- 11,25 ----
  do_install_configuration()
  {
    echo -n "Let's see if there is already a configuration file... "
!   if [ -f ${PREFIX}/etc/totd.conf ]; then
      echo "yes"
      echo "Please compare your existing configuration with"
!     echo "${PREFIX}/etc/totd.conf.sample"
    else
      echo "no"
      echo -n "Copying sample configuration file... "
!     install -o root -g wheel -m 644 ${PREFIX}/etc/totd.conf.sample \
!       ${PREFIX}/etc/totd.conf
      echo "ok"
      echo "Please review new configuration /etc/totd.conf"
    fi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020522145901X.sakane>