From nobody@www.freebsd.org  Thu May 23 04:32:57 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 38CD637B47C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 23 May 2002 04:32:48 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g4NBWlhG021290
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 23 May 2002 04:32:47 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g4NBWlsI021289;
	Thu, 23 May 2002 04:32:47 -0700 (PDT)
Message-Id: <200205231132.g4NBWlsI021289@www.freebsd.org>
Date: Thu, 23 May 2002 04:32:47 -0700 (PDT)
From: Shoichi Sakane <sakane@kame.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: the package of totd-1.3_1.tgz seems incorrect.
X-Send-Pr-Version: www-1.0

>Number:         38451
>Category:       ports
>Synopsis:       the package of totd-1.3_1.tgz seems incorrect.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kris
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 23 04:40:01 PDT 2002
>Closed-Date:    Fri Aug 23 20:31:57 PDT 2002
>Last-Modified:  Fri Aug 23 20:31:57 PDT 2002
>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:
Responsible-Changed-From-To: freebsd-ports->kris 
Responsible-Changed-By: ijliao 
Responsible-Changed-When: Thu May 23 07:13:12 PDT 2002 
Responsible-Changed-Why:  
over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38451 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Fri Aug 23 20:31:21 PDT 2002 
State-Changed-Why:  
Update committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38451 
>Unformatted:
