Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2002 04:32:47 -0700 (PDT)
From:      Shoichi Sakane <sakane@kame.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/38451: the package of totd-1.3_1.tgz seems incorrect.
Message-ID:  <200205231132.g4NBWlsI021289@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         38451
>Category:       ports
>Synopsis:       the package of totd-1.3_1.tgz seems incorrect.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 23 04:40:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Shoichi Sakane
>Release:        FreeBSD 4.5-RELEASE + KAME snapshot
>Organization:
KAME Project
>Environment:
FreeBSD shoichi.tanu.org 4.5-RELEASE FreeBSD 4.5-RELEASE #115: Sun May 19 03:23:15 JST 2002     sakane@shoichi.tanu.org:/usr/home/sakane/work/kame/kame/freebsd4/sys/compile/shoichi  i386      
>Description:
+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.
      
>How-To-Repeat:
use totd-1.3_1.tgz and run pkg_add with it.    
>Fix:
this patch fixs this problem.  i copied and pasted this patch.
so you might not use patch(1) directly.

--- +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
      
>Release-Note:
>Audit-Trail:
>Unformatted:

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?200205231132.g4NBWlsI021289>