From owner-freebsd-ports Thu May 23 4:40:12 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BBBF437B40F for ; Thu, 23 May 2002 04:40:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4NBe1t87879; Thu, 23 May 2002 04:40:01 -0700 (PDT) (envelope-from gnats) Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117]) by hub.freebsd.org (Postfix) with ESMTP id 38CD637B47C for ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/38451: the package of totd-1.3_1.tgz seems incorrect. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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