NetBSD Problem Report #38958

From paul@whooppee.com  Sun Jun 15 13:46:42 2008
Return-Path: <paul@whooppee.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id D48F363B8E3
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 15 Jun 2008 13:46:42 +0000 (UTC)
Message-Id: <20080615134642.6A3FA5848@quicky.whooppee.com>
Date: Sun, 15 Jun 2008 06:46:42 -0700 (PDT)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@gnats.NetBSD.org
Subject: sysutils/amanda - bad value /usr/adm/amanda for indexdir
X-Send-Pr-Version: 3.95

>Number:         38958
>Category:       pkg
>Synopsis:       amanda should use /usr/pkg/amanda for indexdir
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gdt
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 15 13:50:01 +0000 2008
>Closed-Date:    Sun Aug 09 23:17:07 +0000 2015
>Last-Modified:  Sun Aug 09 23:17:07 +0000 2015
>Originator:     Paul Goyette
>Release:        NetBSD 4.99.63
>Organization:
----------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul@whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette@juniper.net |
----------------------------------------------------------------------
>Environment:


System: NetBSD quicky.whooppee.com 4.99.63 NetBSD 4.99.63 (QUICKY (ASUS M2N32 WS) 2008-05-30 21:57:38) #0: Fri May 30 16:27:33 PDT 2008 paul@speedy.whooppee.com:/build/obj/amd64/sys/arch/amd64/compile/QUICKY amd64
Architecture: x86_64
Machine: amd64
>Description:
	The amanda packages currently use a default of /usr/adm/amanda
	for the location of the indexdir.  For NetBSD, this should change
	to /usr/pkg/etc/amanda

>How-To-Repeat:
	Create an amanda.conf without specifying an explicit value for
	indexdir.  Both the amcheck and amdump programs will try to use
	the non-existent /usr/adm/amanda as the default indexdir

>Fix:


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->gdt
Responsible-Changed-By: gdt@NetBSD.org
Responsible-Changed-When: Sun, 15 Jun 2008 15:16:01 +0000
Responsible-Changed-Why:
gdt will deal
.


From: Klaus Heinz <k.heinz@junacht.kh-22.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/38958: sysutils/amanda - bad value /usr/adm/amanda for indexdir
Date: Sun, 15 Jun 2008 22:18:04 +0200

 paul@whooppee.com wrote:
 > 	The amanda packages currently use a default of /usr/adm/amanda
 > 	for the location of the indexdir.  For NetBSD, this should change
 > 	to /usr/pkg/etc/amanda

 IMO, something like /var/amanda (or even /var/lib/amanda...) would be more
 appropriate. $PREFIX/etc/* should contain configuration files, not
 backup history.

 ciao
      Klaus

From: Sergey Svishchev <svs@ropnet.ru>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/38958
Date: Wed, 15 Aug 2012 22:43:18 +0400

 Other directories are not hardcoded, btw.

 -- 
 Sergey Svishchev

From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/38958 CVS commit: pkgsrc/sysutils/amanda-common
Date: Sun, 9 Aug 2015 22:50:10 +0000

 Module Name:	pkgsrc
 Committed By:	dholland
 Date:		Sun Aug  9 22:50:10 UTC 2015

 Modified Files:
 	pkgsrc/sysutils/amanda-common: Makefile distinfo
 Added Files:
 	pkgsrc/sysutils/amanda-common/patches: patch-common-src_conffile.c
 	    patch-example_amanda.conf.in patch-example_chg-multi-conf
 	    patch-example_template.d_advanced.conf.in
 	    patch-man_xml-source_amanda.conf.5.xml

 Log Message:
 Remove references to /usr/adm, as nobody has shipped a /usr/adm
 directory in their OS for probably some twenty years. Use /var
 instead. In particular, fix the defaults for CNF_INFOFILE, CNF_LOGDIR,
 and CNF_INDEXDIR to use the configured LOCALSTATEDIR, which in pkgsrc
 will be ${VARBASE}/amanda, instead of hardwiring /usr/adm/amanda.

 PR 38958.

 PKGREVISION -> 9.


 To generate a diff of this commit:
 cvs rdiff -u -r1.71 -r1.72 pkgsrc/sysutils/amanda-common/Makefile
 cvs rdiff -u -r1.17 -r1.18 pkgsrc/sysutils/amanda-common/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/sysutils/amanda-common/patches/patch-common-src_conffile.c \
     pkgsrc/sysutils/amanda-common/patches/patch-example_amanda.conf.in \
     pkgsrc/sysutils/amanda-common/patches/patch-example_chg-multi-conf \
     pkgsrc/sysutils/amanda-common/patches/patch-example_template.d_advanced.conf.in \
     pkgsrc/sysutils/amanda-common/patches/patch-man_xml-source_amanda.conf.5.xml

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 09 Aug 2015 23:17:07 +0000
State-Changed-Why:
Fixed.

I didn't change the machinery that puts PKG_SYSCONFDIR into one or more of
the example configs for things that according to the discussion here should
probably be in /var. That can be done easily if the consensus is in favor,
or the package maintainer thinks it should. However, /usr/adm no longer
appears in the package.


>Unformatted:

 Why etc?  Shouldn't this be in VARBASE as /usr/pkg/var/amanda?
 But agreed that /usr/adm/amanda is goofy. 	

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.